2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
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>
647 program_transform_name
715 PYTHON_GETPATH_CFLAGS
772 enable_option_checking
786 enable_mzschemeinterp
790 with_python_config_dir
824 ac_precious_vars
='build_alias
836 # Initialize some variables set by options.
838 ac_init_version
=false
839 ac_unrecognized_opts
=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name
=s
,x
,x
,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir
='${exec_prefix}/bin'
865 sbindir
='${exec_prefix}/sbin'
866 libexecdir
='${exec_prefix}/libexec'
867 datarootdir
='${prefix}/share'
868 datadir
='${datarootdir}'
869 sysconfdir
='${prefix}/etc'
870 sharedstatedir
='${prefix}/com'
871 localstatedir
='${prefix}/var'
872 includedir
='${prefix}/include'
873 oldincludedir
='/usr/include'
874 docdir
='${datarootdir}/doc/${PACKAGE}'
875 infodir
='${datarootdir}/info'
880 libdir
='${exec_prefix}/lib'
881 localedir
='${datarootdir}/locale'
882 mandir
='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\
$ac_option
896 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
908 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
911 -build |
--build |
--buil |
--bui |
--bu)
912 ac_prev
=build_alias
;;
913 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
914 build_alias
=$ac_optarg ;;
916 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
917 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
918 ac_prev
=cache_file
;;
919 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
920 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
921 cache_file
=$ac_optarg ;;
924 cache_file
=config.cache
;;
926 -datadir |
--datadir |
--datadi |
--datad)
928 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
929 datadir
=$ac_optarg ;;
931 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
932 |
--dataroo |
--dataro |
--datar)
933 ac_prev
=datarootdir
;;
934 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
935 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
936 datarootdir
=$ac_optarg ;;
938 -disable-* |
--disable-*)
939 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
942 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
943 { (exit 1); exit 1; }; }
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=no
;;
955 -docdir |
--docdir |
--docdi |
--doc |
--do)
957 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
960 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
962 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
965 -enable-* |
--enable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig
=$ac_useropt
972 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep
=', ';;
980 eval enable_
$ac_useropt=\
$ac_optarg ;;
982 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
983 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
984 |
--exec |
--exe |
--ex)
985 ac_prev
=exec_prefix
;;
986 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
987 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
988 |
--exec=* |
--exe=* |
--ex=*)
989 exec_prefix
=$ac_optarg ;;
991 -gas |
--gas |
--ga |
--g)
992 # Obsolete; use --with-gas.
995 -help |
--help |
--hel |
--he |
-h)
997 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
998 ac_init_help
=recursive
;;
999 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1000 ac_init_help
=short
;;
1002 -host |
--host |
--hos |
--ho)
1003 ac_prev
=host_alias
;;
1004 -host=* |
--host=* |
--hos=* |
--ho=*)
1005 host_alias
=$ac_optarg ;;
1007 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1009 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1011 htmldir
=$ac_optarg ;;
1013 -includedir |
--includedir |
--includedi |
--included |
--include \
1014 |
--includ |
--inclu |
--incl |
--inc)
1015 ac_prev
=includedir
;;
1016 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1017 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1018 includedir
=$ac_optarg ;;
1020 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1022 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1023 infodir
=$ac_optarg ;;
1025 -libdir |
--libdir |
--libdi |
--libd)
1027 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1028 libdir
=$ac_optarg ;;
1030 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1031 |
--libexe |
--libex |
--libe)
1032 ac_prev
=libexecdir
;;
1033 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1034 |
--libexe=* |
--libex=* |
--libe=*)
1035 libexecdir
=$ac_optarg ;;
1037 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1038 ac_prev
=localedir
;;
1039 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1040 localedir
=$ac_optarg ;;
1042 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1043 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1044 ac_prev
=localstatedir
;;
1045 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1046 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1047 localstatedir
=$ac_optarg ;;
1049 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1051 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1052 mandir
=$ac_optarg ;;
1054 -nfp |
--nfp |
--nf)
1055 # Obsolete; use --without-fp.
1058 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1059 |
--no-cr |
--no-c |
-n)
1062 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1063 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1066 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1067 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1068 |
--oldin |
--oldi |
--old |
--ol |
--o)
1069 ac_prev
=oldincludedir
;;
1070 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1071 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1072 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1073 oldincludedir
=$ac_optarg ;;
1075 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1077 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1078 prefix
=$ac_optarg ;;
1080 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1081 |
--program-pre |
--program-pr |
--program-p)
1082 ac_prev
=program_prefix
;;
1083 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1084 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1085 program_prefix
=$ac_optarg ;;
1087 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1088 |
--program-suf |
--program-su |
--program-s)
1089 ac_prev
=program_suffix
;;
1090 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1091 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1092 program_suffix
=$ac_optarg ;;
1094 -program-transform-name |
--program-transform-name \
1095 |
--program-transform-nam |
--program-transform-na \
1096 |
--program-transform-n |
--program-transform- \
1097 |
--program-transform |
--program-transfor \
1098 |
--program-transfo |
--program-transf \
1099 |
--program-trans |
--program-tran \
1100 |
--progr-tra |
--program-tr |
--program-t)
1101 ac_prev
=program_transform_name
;;
1102 -program-transform-name=* |
--program-transform-name=* \
1103 |
--program-transform-nam=* |
--program-transform-na=* \
1104 |
--program-transform-n=* |
--program-transform-=* \
1105 |
--program-transform=* |
--program-transfor=* \
1106 |
--program-transfo=* |
--program-transf=* \
1107 |
--program-trans=* |
--program-tran=* \
1108 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1109 program_transform_name
=$ac_optarg ;;
1111 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1113 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1114 pdfdir
=$ac_optarg ;;
1116 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1118 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1121 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1122 |
-silent |
--silent |
--silen |
--sile |
--sil)
1125 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1127 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1129 sbindir
=$ac_optarg ;;
1131 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1132 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1133 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1135 ac_prev
=sharedstatedir
;;
1136 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1137 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1138 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1140 sharedstatedir
=$ac_optarg ;;
1142 -site |
--site |
--sit)
1144 -site=* |
--site=* |
--sit=*)
1147 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1149 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1150 srcdir
=$ac_optarg ;;
1152 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1153 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1154 ac_prev
=sysconfdir
;;
1155 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1156 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1157 sysconfdir
=$ac_optarg ;;
1159 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1160 ac_prev
=target_alias
;;
1161 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1162 target_alias
=$ac_optarg ;;
1164 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1167 -version |
--version |
--versio |
--versi |
--vers |
-V)
1168 ac_init_version
=: ;;
1171 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig
=$ac_useropt
1177 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep
=', ';;
1185 eval with_
$ac_useropt=\
$ac_optarg ;;
1187 -without-* |
--without-*)
1188 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1191 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_useropt_orig
=$ac_useropt
1194 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep
=', ';;
1202 eval with_
$ac_useropt=no
;;
1205 # Obsolete; use --with-x.
1208 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1209 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1210 ac_prev
=x_includes
;;
1211 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1212 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1213 x_includes
=$ac_optarg ;;
1215 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1216 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1217 ac_prev
=x_libraries
;;
1218 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1219 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1220 x_libraries
=$ac_optarg ;;
1222 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1223 Try \`$0 --help' for more information." >&2
1224 { (exit 1); exit 1; }; }
1228 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1231 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1232 { (exit 1); exit 1; }; }
1233 eval $ac_envvar=\
$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 if test -n "$ac_prev"; then
1248 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1249 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1250 { (exit 1); exit 1; }; }
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1256 fatal
) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1257 { (exit 1); exit 1; }; } ;;
1258 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 # Check all directory arguments for consistency.
1263 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val
=\$
$ac_var
1269 # Remove trailing slashes.
1272 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\
$ac_val;;
1275 # Be sure to have absolute directory names.
1277 [\\/$
]* | ?
:[\\/]* ) continue;;
1278 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1280 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target
=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x
; then
1293 if test "x$build_alias" = x
; then
1294 cross_compiling
=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1305 test "$silent" = yes && exec 6>/dev
/null
1308 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di
=`ls -di .` &&
1310 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1311 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted
=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir
=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1350 ac_srcdir_defaulted
=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1354 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355 { (exit 1); exit 1; }; }
1357 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1360 { (exit 1); exit 1; }; }
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1370 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 for ac_var
in $ac_precious_vars; do
1373 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1375 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1386 \`configure' configures this package to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1444 --x-includes=DIR X include files are
in DIR
1445 --x-libraries=DIR X library files are
in DIR
1449 if test -n "$ac_init_help"; then
1454 --disable-option-checking ignore unrecognized
--enable/--with options
1455 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1456 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1457 --disable-darwin Disable Darwin
(Mac OS X
) support.
1458 --disable-selinux Don
't check for SELinux support.
1459 --disable-xsmp Disable XSMP session management
1460 --disable-xsmp-interact Disable XSMP interaction
1461 --enable-mzschemeinterp Include MzScheme interpreter.
1462 --enable-perlinterp Include Perl interpreter.
1463 --enable-pythoninterp Include Python interpreter.
1464 --enable-tclinterp Include Tcl interpreter.
1465 --enable-rubyinterp Include Ruby interpreter.
1466 --enable-cscope Include cscope interface.
1467 --enable-workshop Include Sun Visual Workshop support.
1468 --disable-netbeans Disable NetBeans integration support.
1469 --enable-sniff Include Sniff interface.
1470 --enable-multibyte Include multibyte editing support.
1471 --enable-hangulinput Include Hangul input support.
1472 --enable-xim Include XIM input support.
1473 --enable-fontset Include X fontset output support.
1474 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1475 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1476 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1477 --enable-gnome-check If GTK GUI, check for GNOME default=no
1478 --enable-motif-check If auto-select GUI, check for Motif default=yes
1479 --enable-athena-check If auto-select GUI, check for Athena default=yes
1480 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1481 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1482 --disable-gtktest Do not try to compile and run a test GTK program
1483 --disable-acl Don't check
for ACL support.
1484 --disable-gpm Don
't use gpm (Linux mouse daemon).
1485 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1486 --disable-nls Don
't support NLS (gettext()).
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-mac-arch=ARCH current, intel, ppc or both
1492 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1493 --without-local-dir do not search /usr/local for local libraries.
1494 --with-vim-name=NAME what to call the Vim executable
1495 --with-ex-name=NAME what to call the Ex executable
1496 --with-view-name=NAME what to call the View executable
1497 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1498 --with-modified-by=NAME name of who modified a release version
1499 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1500 --with-compiledby=NAME name to show in :version message
1501 --with-plthome=PLTHOME Use PLTHOME.
1502 --with-python-config-dir=PATH Python's config directory
1503 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1504 --with-x use the X Window System
1505 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1506 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1507 --with-gnome-includes=DIR Specify location of GNOME headers
1508 --with-gnome-libs=DIR Specify location of GNOME libs
1509 --with-gnome Specify prefix
for GNOME files
1510 --with-motif-lib=STRING Library
for Motif
1511 --with-tlib=library terminal library to be used
1513 Some influential environment variables
:
1514 CC C compiler
command
1515 CFLAGS C compiler flags
1516 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1517 nonstandard directory
<lib dir
>
1518 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1519 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1520 you have headers
in a nonstandard directory
<include dir
>
1522 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1524 Use these variables to override the choices made by
`configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1531 if test "$ac_init_help" = "recursive"; then
1532 # If there are subdirs, report their specific --help.
1533 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534 test -d "$ac_dir" ||
1535 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1543 # A ".." for each directory in $ac_dir_suffix.
1544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1545 case $ac_top_builddir_sub in
1546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1556 .) # We are building in place.
1558 ac_top_srcdir=$ac_top_builddir_sub
1559 ac_abs_top_srcdir=$ac_pwd ;;
1560 [\\/]* | ?:[\\/]* ) # Absolute name.
1561 ac_srcdir=$srcdir$ac_dir_suffix;
1562 ac_top_srcdir=$srcdir
1563 ac_abs_top_srcdir=$srcdir ;;
1565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566 ac_top_srcdir=$ac_top_build_prefix$srcdir
1567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571 cd "$ac_dir" || { ac_status=$?; continue; }
1572 # Check for guested configure.
1573 if test -f "$ac_srcdir/configure.gnu"; then
1575 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576 elif test -f "$ac_srcdir/configure"; then
1578 $SHELL "$ac_srcdir/configure" --help=recursive
1580 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 cd "$ac_pwd" || { ac_status=$?; break; }
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1590 generated by GNU Autoconf 2.62
1592 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1593 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1599 cat >auto/config.log <<_ACEOF
1600 This file contains any messages produced by compilers while
1601 running configure, to aid debugging if configure makes a mistake.
1603 It was created by $as_me, which was
1604 generated by GNU Autoconf 2.62. Invocation command line was
1609 exec 5>>auto/config.log
1616 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1617 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1618 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1619 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1620 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1622 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1623 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1625 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1626 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1627 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1628 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1629 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1631 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 test -z "$as_dir" && as_dir=.
1640 $as_echo "PATH: $as_dir"
1656 # Keep a trace of the command line.
1657 # Strip out --no-create and --no-recursion so they do not pile up.
1658 # Strip out --silent because we don't want to record it for future runs.
1659 # Also quote any args containing shell meta-characters.
1660 # Make two passes to allow for proper duplicate-argument suppression.
1664 ac_must_keep_next=false
1670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1672 | -silent | --silent | --silen | --sile | --sil)
1675 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1678 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1680 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1681 if test $ac_must_keep_next = true; then
1682 ac_must_keep_next=false # Got value, back to normal.
1685 *=* | --config-cache | -C | -disable-* | --disable-* \
1686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1688 | -with-* | --with-* | -without-* | --without-* | --x)
1689 case "$ac_configure_args0 " in
1690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 -* ) ac_must_keep_next=true ;;
1696 ac_configure_args="$ac_configure_args '$ac_arg'"
1701 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1702 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1704 # When interrupted or exit'd, cleanup temporary files, and complete
1705 # config.log. We remove comments because anyway the quotes in there
1706 # would cause problems or look ugly.
1707 # WARNING: Use '\'' to represent an apostrophe within the trap.
1708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1709 trap 'exit_status=$?
1710 # Save into config.log some information that might help in debugging.
1715 ## ---------------- ##
1716 ## Cache variables. ##
1717 ## ---------------- ##
1720 # The following way of writing the cache mishandles newlines in values,
1722 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1723 eval ac_val=\$$ac_var
1727 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1728 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 _ | IFS | as_nl) ;; #(
1732 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1733 *) $as_unset $ac_var ;;
1738 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1739 *${as_nl}ac_space=\ *)
1741 "s/'\''/'\''\\\\'\'''\''/g;
1742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1753 ## ----------------- ##
1754 ## Output variables. ##
1755 ## ----------------- ##
1758 for ac_var in $ac_subst_vars
1760 eval ac_val=\$$ac_var
1762 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 $as_echo "$ac_var='\''$ac_val'\''"
1768 if test -n "$ac_subst_files"; then
1770 ## ------------------- ##
1771 ## File substitutions. ##
1772 ## ------------------- ##
1775 for ac_var in $ac_subst_files
1777 eval ac_val=\$$ac_var
1779 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781 $as_echo "$ac_var='\''$ac_val'\''"
1786 if test -s confdefs.h; then
1796 test "$ac_signal" != 0 &&
1797 $as_echo "$as_me: caught signal $ac_signal"
1798 $as_echo "$as_me: exit $exit_status"
1800 rm -f core *.core core.conftest.* &&
1801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 for ac_signal in 1 2 13 15; do
1805 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1810 rm -f -r conftest* confdefs.h
1812 # Predefined preprocessor variables.
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_NAME "$PACKAGE_NAME"
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_STRING "$PACKAGE_STRING"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1839 # Let the site file select an alternate cache file if it wants to.
1840 # Prefer an explicitly selected file to automatically selected ones.
1843 if test -n "$CONFIG_SITE"; then
1844 ac_site_file1=$CONFIG_SITE
1845 elif test "x$prefix" != xNONE; then
1846 ac_site_file1=$prefix/share/config.site
1847 ac_site_file2=$prefix/etc/config.site
1849 ac_site_file1=$ac_default_prefix/share/config.site
1850 ac_site_file2=$ac_default_prefix/etc/config.site
1852 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1854 test "x$ac_site_file" = xNONE && continue
1855 if test -r "$ac_site_file"; then
1856 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1857 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1858 sed 's/^/| /' "$ac_site_file" >&5
1863 if test -r "$cache_file"; then
1864 # Some versions of bash will fail to source /dev/null (special
1865 # files actually), so we avoid doing that.
1866 if test -f "$cache_file"; then
1867 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1868 $as_echo "$as_me: loading cache $cache_file" >&6;}
1870 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1871 *) . "./$cache_file";;
1875 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1876 $as_echo "$as_me: creating cache $cache_file" >&6;}
1880 # Check that the precious variables saved in the cache have kept the same
1882 ac_cache_corrupted=false
1883 for ac_var in $ac_precious_vars; do
1884 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1885 eval ac_new_set=\$ac_env_${ac_var}_set
1886 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1887 eval ac_new_val=\$ac_env_${ac_var}_value
1888 case $ac_old_set,$ac_new_set in
1890 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1891 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1892 ac_cache_corrupted=: ;;
1894 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1895 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1896 ac_cache_corrupted=: ;;
1899 if test "x$ac_old_val" != "x$ac_new_val"; then
1900 # differences in whitespace do not lead to failure.
1901 ac_old_val_w=`echo x
$ac_old_val`
1902 ac_new_val_w=`echo x
$ac_new_val`
1903 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1904 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1905 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1906 ac_cache_corrupted=:
1908 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1909 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1910 eval $ac_var=\$ac_old_val
1912 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1913 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1914 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1915 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1918 # Pass precious variables to config.status.
1919 if test "$ac_new_set" = set; then
1921 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1922 *) ac_arg=$ac_var=$ac_new_val ;;
1924 case " $ac_configure_args " in
1925 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1926 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1930 if $ac_cache_corrupted; then
1931 { $as_echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1932 $as_echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1933 { { $as_echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1934 $as_echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1935 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1964 cat >>confdefs.h <<\_ACEOF
1968 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1969 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
1971 ac_make=`$as_echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1972 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1973 $as_echo_n "(cached) " >&6
1975 cat >conftest.make <<\_ACEOF
1978 @echo '@@@%%%=$(MAKE)=@@@%%%'
1980 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1981 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
1983 eval ac_cv_prog_make_${ac_make}_set=yes;;
1985 eval ac_cv_prog_make_${ac_make}_set=no;;
1989 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1990 { $as_echo "$as_me:$LINENO: result: yes" >&5
1991 $as_echo "yes" >&6; }
1994 { $as_echo "$as_me:$LINENO: result: no" >&5
1995 $as_echo "no" >&6; }
1996 SET_MAKE="MAKE=${MAKE-make}"
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 $as_echo_n "checking for $ac_word... " >&6; }
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011 $as_echo_n "(cached) " >&6
2013 if test -n "$CC"; then
2014 ac_cv_prog_CC="$CC" # Let the user override the test.
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 if test -n "$CC"; then
2035 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2036 $as_echo "$CC" >&6; }
2038 { $as_echo "$as_me:$LINENO: result: no" >&5
2039 $as_echo "no" >&6; }
2044 if test -z "$ac_cv_prog_CC"; then
2046 # Extract the first word of "gcc", so it can be a program name with args.
2047 set dummy gcc; ac_word=$2
2048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 $as_echo_n "checking for $ac_word... " >&6; }
2050 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2051 $as_echo_n "(cached) " >&6
2053 if test -n "$ac_ct_CC"; then
2054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_ac_ct_CC="gcc"
2064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2074 if test -n "$ac_ct_CC"; then
2075 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2076 $as_echo "$ac_ct_CC" >&6; }
2078 { $as_echo "$as_me:$LINENO: result: no" >&5
2079 $as_echo "no" >&6; }
2082 if test "x$ac_ct_CC" = x; then
2085 case $cross_compiling:$ac_tool_warned in
2087 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2088 whose name does not start with the host triplet. If you think this
2089 configuration is useful to you, please write to autoconf@gnu.org." >&5
2090 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2091 whose name does not start with the host triplet. If you think this
2092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2093 ac_tool_warned=yes ;;
2101 if test -z "$CC"; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}cc; ac_word=$2
2105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 $as_echo_n "checking for $ac_word... " >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 $as_echo_n "(cached) " >&6
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2120 ac_cv_prog_CC="${ac_tool_prefix}cc"
2121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131 if test -n "$CC"; then
2132 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2133 $as_echo "$CC" >&6; }
2135 { $as_echo "$as_me:$LINENO: result: no" >&5
2136 $as_echo "no" >&6; }
2142 if test -z "$CC"; then
2143 # Extract the first word of "cc", so it can be a program name with args.
2144 set dummy cc; ac_word=$2
2145 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 $as_echo_n "checking for $ac_word... " >&6; }
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148 $as_echo_n "(cached) " >&6
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 test -z "$as_dir" && as_dir=.
2159 for ac_exec_ext in '' $ac_executable_extensions; do
2160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2161 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2162 ac_prog_rejected=yes
2166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173 if test $ac_prog_rejected = yes; then
2174 # We found a bogon in the path, so make sure we never use it.
2175 set dummy $ac_cv_prog_CC
2177 if test $# != 0; then
2178 # We chose a different compiler from the bogus one.
2179 # However, it has the same basename, so the bogon will be chosen
2180 # first if we set CC to just the basename; use the full file name.
2182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2188 if test -n "$CC"; then
2189 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2190 $as_echo "$CC" >&6; }
2192 { $as_echo "$as_me:$LINENO: result: no" >&5
2193 $as_echo "no" >&6; }
2198 if test -z "$CC"; then
2199 if test -n "$ac_tool_prefix"; then
2200 for ac_prog in cl.exe
2202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2204 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 $as_echo_n "checking for $ac_word... " >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207 $as_echo_n "(cached) " >&6
2209 if test -n "$CC"; then
2210 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230 if test -n "$CC"; then
2231 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2232 $as_echo "$CC" >&6; }
2234 { $as_echo "$as_me:$LINENO: result: no" >&5
2235 $as_echo "no" >&6; }
2239 test -n "$CC" && break
2242 if test -z "$CC"; then
2244 for ac_prog in cl.exe
2246 # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2251 $as_echo_n "(cached) " >&6
2253 if test -n "$ac_ct_CC"; then
2254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_ac_ct_CC="$ac_prog"
2264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2274 if test -n "$ac_ct_CC"; then
2275 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2276 $as_echo "$ac_ct_CC" >&6; }
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2283 test -n "$ac_ct_CC" && break
2286 if test "x$ac_ct_CC" = x; then
2289 case $cross_compiling:$ac_tool_warned in
2291 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2292 whose name does not start with the host triplet. If you think this
2293 configuration is useful to you, please write to autoconf@gnu.org." >&5
2294 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2295 whose name does not start with the host triplet. If you think this
2296 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2297 ac_tool_warned=yes ;;
2306 test -z "$CC" && { { $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
: C compiler cannot create executables
2441 See \
`config.log' for more details." >&5
2442 $as_echo "$as_me: error: C compiler cannot create executables
2443 See \`config.log
' for more details." >&2;}
2444 { (exit 77); exit 77; }; }
2447 ac_exeext=$ac_cv_exeext
2449 # Check that the compiler produces executables we can run. If not, either
2450 # the compiler is broken, or we cross compile.
2451 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2452 $as_echo_n "checking whether the C compiler works... " >&6; }
2453 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2454 # If not cross compiling, check that we can run a simple program.
2455 if test "$cross_compiling" != yes; then
2456 if { ac_try='.
/$ac_file'
2457 { (case "(($ac_try" in
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2462 $as_echo "$ac_try_echo") >&5
2463 (eval "$ac_try") 2>&5
2465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2469 if test "$cross_compiling" = maybe; then
2472 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2473 If you meant to cross compile, use \`--host'.
2474 See \
`config.log' for more details." >&5
2475 $as_echo "$as_me: error: cannot run C compiled programs.
2476 If you meant to cross compile, use \`--host'.
2477 See \`config.log' for more details.
" >&2;}
2478 { (exit 1); exit 1; }; }
2482 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2483 $as_echo "yes" >&6; }
2485 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2486 ac_clean_files=$ac_clean_files_save
2487 # Check that the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2490 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2491 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2492 $as_echo "$cross_compiling" >&6; }
2494 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2495 $as_echo_n "checking
for suffix of executables...
" >&6; }
2496 if { (ac_try="$ac_link"
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2502 $as_echo "$ac_try_echo") >&5
2503 (eval "$ac_link") 2>&5
2505 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2506 (exit $ac_status); }; then
2507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2509 # work properly (i.e., refer to `conftest.exe'), while it won't with
2511 for ac_file in conftest.exe conftest conftest.*; do
2512 test -f "$ac_file" || continue
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2521 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2522 See \
`config.log' for more details." >&5
2523 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2524 See \`config.log
' for more details." >&2;}
2525 { (exit 1); exit 1; }; }
2528 rm -f conftest$ac_cv_exeext
2529 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2530 $as_echo "$ac_cv_exeext" >&6; }
2532 rm -f conftest.$ac_ext
2533 EXEEXT=$ac_cv_exeext
2535 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2536 $as_echo_n "checking for suffix of object files... " >&6; }
2537 if test "${ac_cv_objext+set}" = set; then
2538 $as_echo_n "(cached) " >&6
2540 cat >conftest.$ac_ext <<_ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h. */
2555 rm -f conftest.o conftest.obj
2556 if { (ac_try="$ac_compile"
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2562 $as_echo "$ac_try_echo") >&5
2563 (eval "$ac_compile") 2>&5
2565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; then
2567 for ac_file in conftest.o conftest.obj conftest.*; do
2568 test -f "$ac_file" || continue;
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2571 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2576 $as_echo "$as_me: failed program was:" >&5
2577 sed 's
/^
/|
/' conftest.$ac_ext >&5
2579 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details.
" >&5
2581 $as_echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2582 See \
`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2588 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589 $as_echo "$ac_cv_objext" >&6; }
2590 OBJEXT=$ac_cv_objext
2592 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2594 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2595 $as_echo_n "(cached) " >&6
2597 cat >conftest.$ac_ext <<_ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2619 *) ac_try_echo
=$ac_try;;
2621 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compile") 2>conftest.er1
2625 grep -v '^ *+' conftest.er1
>conftest.err
2627 cat conftest.err
>&5
2628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } && {
2630 test -z "$ac_c_werror_flag" ||
2631 test ! -s conftest.err
2632 } && test -s conftest.
$ac_objext; then
2635 $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.
$ac_ext >&5
2641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2642 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2645 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2647 if test $ac_compiler_gnu = yes; then
2652 ac_test_CFLAGS
=${CFLAGS+set}
2653 ac_save_CFLAGS
=$CFLAGS
2654 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657 $as_echo_n "(cached) " >&6
2659 ac_save_c_werror_flag
=$ac_c_werror_flag
2660 ac_c_werror_flag
=yes
2663 cat >conftest.
$ac_ext <<_ACEOF
2666 cat confdefs.h
>>conftest.
$ac_ext
2667 cat >>conftest.
$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.
$ac_objext
2679 if { (ac_try
="$ac_compile"
2681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2685 $as_echo "$ac_try_echo") >&5
2686 (eval "$ac_compile") 2>conftest.er1
2688 grep -v '^ *+' conftest.er1 >conftest.err
2690 cat conftest.err >&5
2691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } && {
2693 test -z "$ac_c_werror_flag" ||
2694 test ! -s conftest.err
2695 } && test -s conftest.$ac_objext; then
2698 $as_echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2721 *) ac_try_echo
=$ac_try;;
2723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2724 $as_echo "$ac_try_echo") >&5
2725 (eval "$ac_compile") 2>conftest.er1
2727 grep -v '^ *+' conftest.er1
>conftest.err
2729 cat conftest.err
>&5
2730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); } && {
2732 test -z "$ac_c_werror_flag" ||
2733 test ! -s conftest.err
2734 } && test -s conftest.
$ac_objext; then
2737 $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.
$ac_ext >&5
2740 ac_c_werror_flag
=$ac_save_c_werror_flag
2742 cat >conftest.
$ac_ext <<_ACEOF
2745 cat confdefs.h
>>conftest.
$ac_ext
2746 cat >>conftest.
$ac_ext <<_ACEOF
2747 /* end confdefs.h. */
2757 rm -f conftest.
$ac_objext
2758 if { (ac_try
="$ac_compile"
2760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2767 grep -v '^ *+' conftest.er1 >conftest.err
2769 cat conftest.err >&5
2770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2777 $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 ac_c_werror_flag=$ac_save_c_werror_flag
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2793 $as_echo "$ac_cv_prog_cc_g" >&6; }
2794 if test "$ac_test_CFLAGS" = set; then
2795 CFLAGS=$ac_save_CFLAGS
2796 elif test $ac_cv_prog_cc_g = yes; then
2797 if test "$GCC" = yes; then
2803 if test "$GCC" = yes; then
2809 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2811 if test "${ac_cv_prog_cc_c89+set}" = set; then
2812 $as_echo_n "(cached) " >&6
2814 ac_cv_prog_cc_c89=no
2816 cat >conftest.$ac_ext <<_ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2824 #include <sys/types.h>
2825 #include <sys/stat.h>
2826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2827 struct buf { int x; };
2828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2829 static char *e (p, i)
2835 static char *f (char * (*g) (char **, int), char **p, ...)
2840 s = g (p, va_arg (v,int));
2845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2846 function prototypes and stuff, but not '\xHH' hex character constants.
2847 These don't provoke an error unfortunately, instead are silently treated
2848 as 'x'. The following induces an error, until -std is added to get
2849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2850 array size at least. It's necessary to write '\x00'==0 to get something
2851 that's true only with -std. */
2852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2855 inside strings and character constants. */
2857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2859 int test (int i, double x);
2860 struct s1 {int (*f) (int a);};
2861 struct s2 {int (*f) (double a);};
2862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2876 CC="$ac_save_CC $ac_arg"
2877 rm -f conftest.$ac_objext
2878 if { (ac_try="$ac_compile"
2880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2881 *) ac_try_echo
=$ac_try;;
2883 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2884 $as_echo "$ac_try_echo") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2887 grep -v '^ *+' conftest.er1
>conftest.err
2889 cat conftest.err
>&5
2890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } && {
2892 test -z "$ac_c_werror_flag" ||
2893 test ! -s conftest.err
2894 } && test -s conftest.
$ac_objext; then
2895 ac_cv_prog_cc_c89
=$ac_arg
2897 $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.
$ac_ext >&5
2903 rm -f core conftest.err conftest.
$ac_objext
2904 test "x$ac_cv_prog_cc_c89" != "xno" && break
2906 rm -f conftest.
$ac_ext
2911 case "x$ac_cv_prog_cc_c89" in
2913 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2914 $as_echo "none needed" >&6; } ;;
2916 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2917 $as_echo "unsupported" >&6; } ;;
2919 CC
="$CC $ac_cv_prog_cc_c89"
2920 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2926 ac_cpp
='$CPP $CPPFLAGS'
2927 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2931 ac_cpp
='$CPP $CPPFLAGS'
2932 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2935 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2936 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2937 # On Suns, sometimes $CPP names a directory.
2938 if test -n "$CPP" && test -d "$CPP"; then
2941 if test -z "$CPP"; then
2942 if test "${ac_cv_prog_CPP+set}" = set; then
2943 $as_echo_n "(cached) " >&6
2945 # Double quotes because CPP needs to be expanded
2946 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2949 for ac_c_preproc_warn_flag
in '' yes
2951 # Use a header file that comes with gcc, so configuring glibc
2952 # with a fresh cross-compiler works.
2953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2954 # <limits.h> exists even on freestanding compilers.
2955 # On the NeXT, cc -E runs the code through the compiler's parser,
2956 # not just through cpp. "Syntax error" is here to catch this case.
2957 cat >conftest.
$ac_ext <<_ACEOF
2960 cat confdefs.h
>>conftest.
$ac_ext
2961 cat >>conftest.
$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2964 # include <limits.h>
2966 # include <assert.h>
2970 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976 $as_echo "$ac_try_echo") >&5
2977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null && {
2984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2992 # Broken: fails on valid input.
2996 rm -f conftest.err conftest.$ac_ext
2998 # OK, works on sane cases. Now check whether nonexistent headers
2999 # can be detected and how.
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <ac_nonexistent.h>
3008 if { (ac_try="$ac_cpp conftest.$ac_ext"
3010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3011 *) ac_try_echo
=$ac_try;;
3013 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3014 $as_echo "$ac_try_echo") >&5
3015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3017 grep -v '^ *+' conftest.er1
>conftest.err
3019 cat conftest.err
>&5
3020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); } >/dev
/null
&& {
3022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3023 test ! -s conftest.err
3025 # Broken: success on invalid input.
3028 $as_echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.
$ac_ext >&5
3031 # Passes both tests.
3036 rm -f conftest.err conftest.
$ac_ext
3039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3040 rm -f conftest.err conftest.
$ac_ext
3041 if $ac_preproc_ok; then
3053 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3054 $as_echo "$CPP" >&6; }
3056 for ac_c_preproc_warn_flag
in '' yes
3058 # Use a header file that comes with gcc, so configuring glibc
3059 # with a fresh cross-compiler works.
3060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061 # <limits.h> exists even on freestanding compilers.
3062 # On the NeXT, cc -E runs the code through the compiler's parser,
3063 # not just through cpp. "Syntax error" is here to catch this case.
3064 cat >conftest.
$ac_ext <<_ACEOF
3067 cat confdefs.h
>>conftest.
$ac_ext
3068 cat >>conftest.
$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3071 # include <limits.h>
3073 # include <assert.h>
3077 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083 $as_echo "$ac_try_echo") >&5
3084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null && {
3091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 # Broken: fails on valid input.
3103 rm -f conftest.err conftest.$ac_ext
3105 # OK, works on sane cases. Now check whether nonexistent headers
3106 # can be detected and how.
3107 cat >conftest.$ac_ext <<_ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113 #include <ac_nonexistent.h>
3115 if { (ac_try="$ac_cpp conftest.$ac_ext"
3117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3118 *) ac_try_echo
=$ac_try;;
3120 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3121 $as_echo "$ac_try_echo") >&5
3122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3124 grep -v '^ *+' conftest.er1
>conftest.err
3126 cat conftest.err
>&5
3127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } >/dev
/null
&& {
3129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3130 test ! -s conftest.err
3132 # Broken: success on invalid input.
3135 $as_echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.
$ac_ext >&5
3138 # Passes both tests.
3143 rm -f conftest.err conftest.
$ac_ext
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.
$ac_ext
3148 if $ac_preproc_ok; then
3151 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3152 See \`config.log' for more details." >&5
3153 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; }
3159 ac_cpp
='$CPP $CPPFLAGS'
3160 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3165 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3166 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3167 if test "${ac_cv_path_GREP+set}" = set; then
3168 $as_echo_n "(cached) " >&6
3170 if test -z "$GREP"; then
3171 ac_path_GREP_found
=false
3172 # Loop through the user's path and test for each of PROGNAME-LIST
3173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3174 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3177 test -z "$as_dir" && as_dir
=.
3178 for ac_prog
in grep ggrep
; do
3179 for ac_exec_ext
in '' $ac_executable_extensions; do
3180 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3181 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3182 # Check for GNU ac_path_GREP and select it if it is found.
3183 # Check for GNU $ac_path_GREP
3184 case `"$ac_path_GREP" --version 2>&1` in
3186 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3189 $as_echo_n 0123456789 >"conftest.in"
3192 cat "conftest.in" "conftest.in" >"conftest.tmp"
3193 mv "conftest.tmp" "conftest.in"
3194 cp "conftest.in" "conftest.nl"
3195 $as_echo 'GREP' >> "conftest.nl"
3196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3197 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3198 ac_count
=`expr $ac_count + 1`
3199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3200 # Best one so far, save it but keep looking for a better one
3201 ac_cv_path_GREP
="$ac_path_GREP"
3202 ac_path_GREP_max
=$ac_count
3204 # 10*(2^10) chars as input seems more than enough
3205 test $ac_count -gt 10 && break
3207 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3210 $ac_path_GREP_found && break 3
3215 if test -z "$ac_cv_path_GREP"; then
3216 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3217 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3218 { (exit 1); exit 1; }; }
3221 ac_cv_path_GREP
=$GREP
3225 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3226 $as_echo "$ac_cv_path_GREP" >&6; }
3227 GREP
="$ac_cv_path_GREP"
3230 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3231 $as_echo_n "checking for egrep... " >&6; }
3232 if test "${ac_cv_path_EGREP+set}" = set; then
3233 $as_echo_n "(cached) " >&6
3235 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3236 then ac_cv_path_EGREP
="$GREP -E"
3238 if test -z "$EGREP"; then
3239 ac_path_EGREP_found
=false
3240 # Loop through the user's path and test for each of PROGNAME-LIST
3241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3245 test -z "$as_dir" && as_dir
=.
3246 for ac_prog
in egrep; do
3247 for ac_exec_ext
in '' $ac_executable_extensions; do
3248 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3250 # Check for GNU ac_path_EGREP and select it if it is found.
3251 # Check for GNU $ac_path_EGREP
3252 case `"$ac_path_EGREP" --version 2>&1` in
3254 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3257 $as_echo_n 0123456789 >"conftest.in"
3260 cat "conftest.in" "conftest.in" >"conftest.tmp"
3261 mv "conftest.tmp" "conftest.in"
3262 cp "conftest.in" "conftest.nl"
3263 $as_echo 'EGREP' >> "conftest.nl"
3264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3265 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3266 ac_count
=`expr $ac_count + 1`
3267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3268 # Best one so far, save it but keep looking for a better one
3269 ac_cv_path_EGREP
="$ac_path_EGREP"
3270 ac_path_EGREP_max
=$ac_count
3272 # 10*(2^10) chars as input seems more than enough
3273 test $ac_count -gt 10 && break
3275 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3278 $ac_path_EGREP_found && break 3
3283 if test -z "$ac_cv_path_EGREP"; then
3284 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3285 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3286 { (exit 1); exit 1; }; }
3289 ac_cv_path_EGREP
=$EGREP
3294 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3295 $as_echo "$ac_cv_path_EGREP" >&6; }
3296 EGREP
="$ac_cv_path_EGREP"
3299 cat >conftest.
$ac_ext <<_ACEOF
3302 cat confdefs.h
>>conftest.
$ac_ext
3303 cat >>conftest.
$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3308 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3309 $as_echo_n "checking for library containing strerror... " >&6; }
3310 if test "${ac_cv_search_strerror+set}" = set; then
3311 $as_echo_n "(cached) " >&6
3313 ac_func_search_save_LIBS
=$LIBS
3314 cat >conftest.
$ac_ext <<_ACEOF
3317 cat confdefs.h
>>conftest.
$ac_ext
3318 cat >>conftest.
$ac_ext <<_ACEOF
3319 /* end confdefs.h. */
3321 /* Override any GCC internal prototype to avoid an error.
3322 Use char because int might match the return type of a GCC
3323 builtin and then its argument prototype would still apply. */
3336 for ac_lib
in '' cposix
; do
3337 if test -z "$ac_lib"; then
3338 ac_res
="none required"
3341 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3343 rm -f conftest.
$ac_objext conftest
$ac_exeext
3344 if { (ac_try
="$ac_link"
3346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3350 $as_echo "$ac_try_echo") >&5
3351 (eval "$ac_link") 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } && {
3358 test -z "$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3360 } && test -s conftest$ac_exeext && {
3361 test "$cross_compiling" = yes ||
3362 $as_test_x conftest$ac_exeext
3364 ac_cv_search_strerror=$ac_res
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -rf conftest.dSYM
3373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3375 if test "${ac_cv_search_strerror+set}" = set; then
3379 if test "${ac_cv_search_strerror+set}" = set; then
3382 ac_cv_search_strerror=no
3385 LIBS=$ac_func_search_save_LIBS
3387 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3388 $as_echo "$ac_cv_search_strerror" >&6; }
3389 ac_res=$ac_cv_search_strerror
3390 if test "$ac_res" != no; then
3391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3394 for ac_prog in gawk mawk nawk awk
3396 # Extract the first word of "$ac_prog", so it can be a program name with args.
3397 set dummy $ac_prog; ac_word=$2
3398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if test "${ac_cv_prog_AWK+set}" = set; then
3401 $as_echo_n "(cached) " >&6
3403 if test -n "$AWK"; then
3404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413 ac_cv_prog_AWK="$ac_prog"
3414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 if test -n "$AWK"; then
3425 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3426 $as_echo "$AWK" >&6; }
3428 { $as_echo "$as_me:$LINENO: result: no" >&5
3429 $as_echo "no" >&6; }
3433 test -n "$AWK" && break
3436 # Extract the first word of "strip", so it can be a program name with args.
3437 set dummy strip; ac_word=$2
3438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if test "${ac_cv_prog_STRIP+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3443 if test -n "$STRIP"; then
3444 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453 ac_cv_prog_STRIP="strip"
3454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3464 STRIP=$ac_cv_prog_STRIP
3465 if test -n "$STRIP"; then
3466 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3467 $as_echo "$STRIP" >&6; }
3469 { $as_echo "$as_me:$LINENO: result: no" >&5
3470 $as_echo "no" >&6; }
3477 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3478 $as_echo_n "checking for ANSI C header files... " >&6; }
3479 if test "${ac_cv_header_stdc+set}" = set; then
3480 $as_echo_n "(cached) " >&6
3482 cat >conftest.$ac_ext <<_ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3501 rm -f conftest.$ac_objext
3502 if { (ac_try="$ac_compile"
3504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3505 *) ac_try_echo
=$ac_try;;
3507 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3508 $as_echo "$ac_try_echo") >&5
3509 (eval "$ac_compile") 2>conftest.er1
3511 grep -v '^ *+' conftest.er1
>conftest.err
3513 cat conftest.err
>&5
3514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } && {
3516 test -z "$ac_c_werror_flag" ||
3517 test ! -s conftest.err
3518 } && test -s conftest.
$ac_objext; then
3519 ac_cv_header_stdc
=yes
3521 $as_echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.
$ac_ext >&5
3524 ac_cv_header_stdc
=no
3527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3529 if test $ac_cv_header_stdc = yes; then
3530 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3531 cat >conftest.
$ac_ext <<_ACEOF
3534 cat confdefs.h
>>conftest.
$ac_ext
3535 cat >>conftest.
$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 $EGREP "memchr" >/dev
/null
2>&1; then
3544 ac_cv_header_stdc
=no
3550 if test $ac_cv_header_stdc = yes; then
3551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3552 cat >conftest.
$ac_ext <<_ACEOF
3555 cat confdefs.h
>>conftest.
$ac_ext
3556 cat >>conftest.
$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3562 $EGREP "free" >/dev
/null
2>&1; then
3565 ac_cv_header_stdc
=no
3571 if test $ac_cv_header_stdc = yes; then
3572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3573 if test "$cross_compiling" = yes; then
3576 cat >conftest.
$ac_ext <<_ACEOF
3579 cat confdefs.h
>>conftest.
$ac_ext
3580 cat >>conftest.
$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3584 #if ((' ' & 0x0FF) == 0x020)
3585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3588 # define ISLOWER(c) \
3589 (('a' <= (c) && (c) <= 'i') \
3590 || ('j' <= (c) && (c) <= 'r') \
3591 || ('s' <= (c) && (c) <= 'z'))
3592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3600 for (i = 0; i < 256; i++)
3601 if (XOR (islower (i), ISLOWER (i))
3602 || toupper (i) != TOUPPER (i))
3607 rm -f conftest
$ac_exeext
3608 if { (ac_try
="$ac_link"
3610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614 $as_echo "$ac_try_echo") >&5
3615 (eval "$ac_link") 2>&5
3617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3619 { (case "(($ac_try" in
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_try") 2>&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; }; then
3631 $as_echo "$as_me: program exited with status $ac_status" >&5
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.
$ac_ext >&5
3636 ac_cv_header_stdc
=no
3638 rm -rf conftest.dSYM
3639 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3645 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3646 $as_echo "$ac_cv_header_stdc" >&6; }
3647 if test $ac_cv_header_stdc = yes; then
3649 cat >>confdefs.h
<<\_ACEOF
3650 #define STDC_HEADERS 1
3655 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3656 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3657 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3658 $as_echo_n "(cached) " >&6
3660 cat >conftest.
$ac_ext <<_ACEOF
3663 cat confdefs.h
>>conftest.
$ac_ext
3664 cat >>conftest.
$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3666 #include <sys/types.h>
3667 #include <sys/wait.h>
3669 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3672 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3680 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3685 rm -f conftest.
$ac_objext
3686 if { (ac_try
="$ac_compile"
3688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3692 $as_echo "$ac_try_echo") >&5
3693 (eval "$ac_compile") 2>conftest.er1
3695 grep -v '^ *+' conftest.er1 >conftest.err
3697 cat conftest.err >&5
3698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); } && {
3700 test -z "$ac_c_werror_flag" ||
3701 test ! -s conftest.err
3702 } && test -s conftest.$ac_objext; then
3703 ac_cv_header_sys_wait_h=yes
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3708 ac_cv_header_sys_wait_h=no
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3714 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3715 if test $ac_cv_header_sys_wait_h = yes; then
3717 cat >>confdefs.h <<\_ACEOF
3718 #define HAVE_SYS_WAIT_H 1
3724 if test -z "$CFLAGS"; then
3726 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3728 if test "$GCC" = yes; then
3729 gccversion=`"$CC" -dumpversion`
3730 if test "x$gccversion" = "x"; then
3731 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3733 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3734 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3735 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3737 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3738 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3739 CFLAGS="$CFLAGS -fno-strength-reduce"
3744 if test "$cross_compiling" = yes; then
3745 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3746 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3749 test "$GCC" = yes && CPP_MM=M;
3751 if test -f ./toolcheck; then
3752 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3753 $as_echo "$as_me: checking for buggy tools..." >&6;}
3757 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3759 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3760 $as_echo_n "checking for BeOS... " >&6; }
3762 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3763 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3764 $as_echo "yes" >&6; };;
3765 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3766 $as_echo "no" >&6; };;
3769 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3770 $as_echo_n "checking for QNX... " >&6; }
3772 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3773 test -z "$with_x" && with_x=no
3774 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3775 $as_echo "yes" >&6; };;
3776 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3777 $as_echo "no" >&6; };;
3780 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3781 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3782 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3783 { $as_echo "$as_me:$LINENO: result: yes" >&5
3784 $as_echo "yes" >&6; }
3786 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3787 $as_echo_n "checking --disable-darwin argument... " >&6; }
3788 # Check whether --enable-darwin was given.
3789 if test "${enable_darwin+set}" = set; then
3790 enableval=$enable_darwin;
3795 if test "$enable_darwin" = "yes"; then
3796 { $as_echo "$as_me:$LINENO: result: no" >&5
3797 $as_echo "no" >&6; }
3798 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3799 $as_echo_n "checking if Darwin files are there... " >&6; }
3800 if test -f os_macosx.c; then
3801 { $as_echo "$as_me:$LINENO: result: yes" >&5
3802 $as_echo "yes" >&6; }
3804 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3805 $as_echo "no, Darwin support disabled" >&6; }
3809 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3810 $as_echo "yes, Darwin support excluded" >&6; }
3813 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3814 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3816 # Check whether --with-mac-arch was given.
3817 if test "${with_mac_arch+set}" = set; then
3818 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3819 $as_echo "$MACARCH" >&6; }
3821 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3822 $as_echo "defaulting to $MACARCH" >&6; }
3826 if test "x$MACARCH" = "xboth"; then
3827 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3828 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3829 save_cppflags="$CPPFLAGS"
3830 save_cflags="$CFLAGS"
3831 save_ldflags="$LDFLAGS"
3832 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3848 rm -f conftest.$ac_objext conftest$ac_exeext
3849 if { (ac_try="$ac_link"
3851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3852 *) ac_try_echo
=$ac_try;;
3854 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3855 $as_echo "$ac_try_echo") >&5
3856 (eval "$ac_link") 2>conftest.er1
3858 grep -v '^ *+' conftest.er1
>conftest.err
3860 cat conftest.err
>&5
3861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest
$ac_exeext && {
3866 test "$cross_compiling" = yes ||
3867 $as_test_x conftest
$ac_exeext
3869 { $as_echo "$as_me:$LINENO: result: found" >&5
3870 $as_echo "found" >&6; }
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3875 { $as_echo "$as_me:$LINENO: result: not found" >&5
3876 $as_echo "not found" >&6; }
3877 CFLAGS
="$save_cflags"
3878 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3879 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3880 CPPFLAGS
="$CPPFLAGS -arch i386"
3881 LDFLAGS
="$save_ldflags -arch i386"
3882 cat >conftest.
$ac_ext <<_ACEOF
3885 cat confdefs.h
>>conftest.
$ac_ext
3886 cat >>conftest.
$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3897 rm -f conftest.
$ac_objext conftest
$ac_exeext
3898 if { (ac_try
="$ac_link"
3900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3901 *) ac_try_echo=$ac_try;;
3903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3904 $as_echo "$ac_try_echo") >&5
3905 (eval "$ac_link") 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest$ac_exeext && {
3915 test "$cross_compiling" = yes ||
3916 $as_test_x conftest$ac_exeext
3918 { $as_echo "$as_me:$LINENO: result: yes" >&5
3919 $as_echo "yes" >&6; }; MACARCH="intel"
3921 $as_echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 { $as_echo "$as_me:$LINENO: result: no" >&5
3925 $as_echo "no" >&6; }
3927 CPPFLAGS="$save_cppflags -arch ppc"
3928 LDFLAGS="$save_ldflags -arch ppc"
3931 rm -rf conftest.dSYM
3932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3933 conftest$ac_exeext conftest.$ac_ext
3936 rm -rf conftest.dSYM
3937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3938 conftest$ac_exeext conftest.$ac_ext
3939 elif test "x$MACARCH" = "xintel"; then
3940 CPPFLAGS="$CPPFLAGS -arch intel"
3941 LDFLAGS="$LDFLAGS -arch intel"
3942 elif test "x$MACARCH" = "xppc"; then
3943 CPPFLAGS="$CPPFLAGS -arch ppc"
3944 LDFLAGS="$LDFLAGS -arch ppc"
3947 if test "$enable_darwin" = "yes"; then
3949 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3950 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3951 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3952 if test "x$MACARCH" = "xboth"; then
3953 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3955 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3969 inttypes.h stdint.h unistd.h
3971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3972 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3973 $as_echo_n "checking for $ac_header... " >&6; }
3974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3975 $as_echo_n "(cached) " >&6
3977 cat >conftest.$ac_ext <<_ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 $ac_includes_default
3985 #include <$ac_header>
3987 rm -f conftest.$ac_objext
3988 if { (ac_try="$ac_compile"
3990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3991 *) ac_try_echo
=$ac_try;;
3993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3994 $as_echo "$ac_try_echo") >&5
3995 (eval "$ac_compile") 2>conftest.er1
3997 grep -v '^ *+' conftest.er1
>conftest.err
3999 cat conftest.err
>&5
4000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); } && {
4002 test -z "$ac_c_werror_flag" ||
4003 test ! -s conftest.err
4004 } && test -s conftest.
$ac_objext; then
4005 eval "$as_ac_Header=yes"
4007 $as_echo "$as_me: failed program was:" >&5
4008 sed 's/^/| /' conftest.
$ac_ext >&5
4010 eval "$as_ac_Header=no"
4013 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4015 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4016 $as_echo "$as_val"'`
4017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4018 $as_echo "$ac_res" >&6; }
4019 if test `eval 'as_val=${'$as_ac_Header'}
4020 $as_echo "$as_val"'` = yes; then
4021 cat >>confdefs.h
<<_ACEOF
4022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4030 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4031 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4032 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4033 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4034 $as_echo_n "(cached) " >&6
4036 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4037 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4039 # Is the header compilable?
4040 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4041 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4042 cat >conftest.
$ac_ext <<_ACEOF
4045 cat confdefs.h
>>conftest.
$ac_ext
4046 cat >>conftest.
$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 $ac_includes_default
4049 #include <Carbon/Carbon.h>
4051 rm -f conftest.
$ac_objext
4052 if { (ac_try
="$ac_compile"
4054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058 $as_echo "$ac_try_echo") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 ac_header_compiler=yes
4071 $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 ac_header_compiler=no
4077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4078 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4079 $as_echo "$ac_header_compiler" >&6; }
4081 # Is the header present?
4082 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4083 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4084 cat >conftest.$ac_ext <<_ACEOF
4087 cat confdefs.h >>conftest.$ac_ext
4088 cat >>conftest.$ac_ext <<_ACEOF
4089 /* end confdefs.h. */
4090 #include <Carbon/Carbon.h>
4092 if { (ac_try="$ac_cpp conftest.$ac_ext"
4094 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4095 *) ac_try_echo
=$ac_try;;
4097 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4098 $as_echo "$ac_try_echo") >&5
4099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4101 grep -v '^ *+' conftest.er1
>conftest.err
4103 cat conftest.err
>&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } >/dev
/null
&& {
4106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4109 ac_header_preproc
=yes
4111 $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.
$ac_ext >&5
4114 ac_header_preproc
=no
4117 rm -f conftest.err conftest.
$ac_ext
4118 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4119 $as_echo "$ac_header_preproc" >&6; }
4121 # So? What about this header?
4122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4124 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4125 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4126 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4127 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4128 ac_header_preproc
=yes
4131 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4132 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4133 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4134 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4135 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4136 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4137 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4138 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4139 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4140 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4141 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4142 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4146 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4147 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4148 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4149 $as_echo_n "(cached) " >&6
4151 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4153 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4154 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4157 if test $ac_cv_header_Carbon_Carbon_h = yes; then
4162 if test "x$CARBON" = "xyes"; then
4163 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
4169 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4170 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4174 { $as_echo "$as_me:$LINENO: result: no" >&5
4175 $as_echo "no" >&6; }
4181 if test "$cross_compiling" = no
; then
4182 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4183 $as_echo_n "checking --with-local-dir argument... " >&6; }
4184 have_local_include
=''
4187 # Check whether --with-local-dir was given.
4188 if test "${with_local_dir+set}" = set; then
4189 withval
=$with_local_dir;
4190 local_dir
="$withval"
4194 # avoid adding local dir to LDFLAGS and CPPFLAGS
4198 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4199 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4200 { (exit 1); exit 1; }; } ;;
4202 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4203 $as_echo "$local_dir" >&6; }
4207 local_dir
=/usr
/local
4208 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4209 $as_echo "Defaulting to $local_dir" >&6; }
4213 if test "$GCC" = yes -a "$local_dir" != no
; then
4214 echo 'void f(){}' > conftest.c
4215 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4216 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4217 rm -f conftest.c conftest.o
4219 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4220 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4221 if test "$tt" = "$LDFLAGS"; then
4222 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4225 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4226 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4227 if test "$tt" = "$CPPFLAGS"; then
4228 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4233 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4234 $as_echo_n "checking --with-vim-name argument... " >&6; }
4236 # Check whether --with-vim-name was given.
4237 if test "${with_vim_name+set}" = set; then
4238 withval
=$with_vim_name; VIMNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4239 $as_echo "$VIMNAME" >&6; }
4241 VIMNAME
="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4242 $as_echo "Defaulting to $VIMNAME" >&6; }
4246 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4247 $as_echo_n "checking --with-ex-name argument... " >&6; }
4249 # Check whether --with-ex-name was given.
4250 if test "${with_ex_name+set}" = set; then
4251 withval
=$with_ex_name; EXNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4252 $as_echo "$EXNAME" >&6; }
4254 EXNAME
="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4255 $as_echo "Defaulting to ex" >&6; }
4259 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4260 $as_echo_n "checking --with-view-name argument... " >&6; }
4262 # Check whether --with-view-name was given.
4263 if test "${with_view_name+set}" = set; then
4264 withval
=$with_view_name; VIEWNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4265 $as_echo "$VIEWNAME" >&6; }
4267 VIEWNAME
="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4268 $as_echo "Defaulting to view" >&6; }
4273 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4274 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4276 # Check whether --with-global-runtime was given.
4277 if test "${with_global_runtime+set}" = set; then
4278 withval
=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4279 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4280 #define RUNTIME_GLOBAL "$withval"
4284 { $as_echo "$as_me:$LINENO: result: no" >&5
4285 $as_echo "no" >&6; }
4289 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4290 $as_echo_n "checking --with-modified-by argument... " >&6; }
4292 # Check whether --with-modified-by was given.
4293 if test "${with_modified_by+set}" = set; then
4294 withval
=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4295 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4296 #define MODIFIED_BY "$withval"
4300 { $as_echo "$as_me:$LINENO: result: no" >&5
4301 $as_echo "no" >&6; }
4305 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4306 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4307 cat >conftest.
$ac_ext <<_ACEOF
4310 cat confdefs.h
>>conftest.
$ac_ext
4311 cat >>conftest.
$ac_ext <<_ACEOF
4312 /* end confdefs.h. */
4317 /* TryCompile function for CharSet.
4318 Treat any failure as ASCII for compatibility with existing art.
4319 Use compile-time rather than run-time tests for cross-compiler
4322 make an error "Character set is not EBCDIC"
4328 rm -f conftest.
$ac_objext
4329 if { (ac_try
="$ac_compile"
4331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4335 $as_echo "$ac_try_echo") >&5
4336 (eval "$ac_compile") 2>conftest.er1
4338 grep -v '^ *+' conftest.er1 >conftest.err
4340 cat conftest.err >&5
4341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && {
4343 test -z "$ac_c_werror_flag" ||
4344 test ! -s conftest.err
4345 } && test -s conftest.$ac_objext; then
4346 # TryCompile action if true
4349 $as_echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 # TryCompile action if false
4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357 # end of TryCompile ])
4358 # end of CacheVal CvEbcdic
4359 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4360 $as_echo "$cf_cv_ebcdic" >&6; }
4361 case "$cf_cv_ebcdic" in #(vi
4362 yes) cat >>confdefs.h <<\_ACEOF
4368 *) line_break='"\\012"';;
4372 if test "$cf_cv_ebcdic" = "yes"; then
4373 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4374 $as_echo_n "checking for OS/390 Unix... " >&6; }
4376 OS/390) OS390Unix="yes";
4377 if test "$CC" = "cc"; then
4381 if test "$CC" = "c89"; then
4388 if test "$ccm" != "1"; then
4390 echo "------------------------------------------"
4391 echo " On OS/390 Unix, the environment variable"
4392 echo " __CC_${ccn}MODE must be set to \"1\"!"
4394 echo " export _CC_${ccn}MODE=1"
4395 echo " and then call configure again."
4396 echo "------------------------------------------"
4399 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4400 { $as_echo "$as_me:$LINENO: result: yes" >&5
4401 $as_echo "yes" >&6; }
4404 { $as_echo "$as_me:$LINENO: result: no" >&5
4405 $as_echo "no" >&6; }
4410 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4411 $as_echo_n "checking --disable-selinux argument... " >&6; }
4412 # Check whether --enable-selinux was given.
4413 if test "${enable_selinux+set}" = set; then
4414 enableval=$enable_selinux;
4416 enable_selinux="yes"
4419 if test "$enable_selinux" = "yes"; then
4420 { $as_echo "$as_me:$LINENO: result: no" >&5
4421 $as_echo "no" >&6; }
4422 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4423 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4424 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4427 ac_check_lib_save_LIBS=$LIBS
4428 LIBS="-lselinux $LIBS"
4429 cat >conftest.$ac_ext <<_ACEOF
4432 cat confdefs.h >>conftest.$ac_ext
4433 cat >>conftest.$ac_ext <<_ACEOF
4434 /* end confdefs.h. */
4436 /* Override any GCC internal prototype to avoid an error.
4437 Use char because int might match the return type of a GCC
4438 builtin and then its argument prototype would still apply. */
4442 char is_selinux_enabled ();
4446 return is_selinux_enabled ();
4451 rm -f conftest.$ac_objext conftest$ac_exeext
4452 if { (ac_try="$ac_link"
4454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4455 *) ac_try_echo
=$ac_try;;
4457 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4458 $as_echo "$ac_try_echo") >&5
4459 (eval "$ac_link") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1
>conftest.err
4463 cat conftest.err
>&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest
$ac_exeext && {
4469 test "$cross_compiling" = yes ||
4470 $as_test_x conftest
$ac_exeext
4472 ac_cv_lib_selinux_is_selinux_enabled
=yes
4474 $as_echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.
$ac_ext >&5
4477 ac_cv_lib_selinux_is_selinux_enabled
=no
4480 rm -rf conftest.dSYM
4481 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4482 conftest
$ac_exeext conftest.
$ac_ext
4483 LIBS
=$ac_check_lib_save_LIBS
4485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4486 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4487 if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
4488 LIBS
="$LIBS -lselinux"
4489 cat >>confdefs.h
<<\_ACEOF
4490 #define HAVE_SELINUX 1
4496 { $as_echo "$as_me:$LINENO: result: yes" >&5
4497 $as_echo "yes" >&6; }
4501 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4502 $as_echo_n "checking --with-features argument... " >&6; }
4504 # Check whether --with-features was given.
4505 if test "${with_features+set}" = set; then
4506 withval
=$with_features; features
="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4507 $as_echo "$features" >&6; }
4509 features
="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4510 $as_echo "Defaulting to normal" >&6; }
4517 tiny
) cat >>confdefs.h
<<\_ACEOF
4521 small
) cat >>confdefs.h
<<\_ACEOF
4522 #define FEAT_SMALL 1
4525 normal
) cat >>confdefs.h
<<\_ACEOF
4526 #define FEAT_NORMAL 1
4528 dovimdiff
="installvimdiff";
4529 dogvimdiff
="installgvimdiff" ;;
4530 big
) cat >>confdefs.h
<<\_ACEOF
4533 dovimdiff
="installvimdiff";
4534 dogvimdiff
="installgvimdiff" ;;
4535 huge
) cat >>confdefs.h
<<\_ACEOF
4538 dovimdiff
="installvimdiff";
4539 dogvimdiff
="installgvimdiff" ;;
4540 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4541 $as_echo "Sorry, $features is not supported" >&6; } ;;
4547 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4548 $as_echo_n "checking --with-compiledby argument... " >&6; }
4550 # Check whether --with-compiledby was given.
4551 if test "${with_compiledby+set}" = set; then
4552 withval
=$with_compiledby; compiledby
="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4553 $as_echo "$withval" >&6; }
4555 compiledby
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4556 $as_echo "no" >&6; }
4561 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4562 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4563 # Check whether --enable-xsmp was given.
4564 if test "${enable_xsmp+set}" = set; then
4565 enableval
=$enable_xsmp;
4571 if test "$enable_xsmp" = "yes"; then
4572 { $as_echo "$as_me:$LINENO: result: no" >&5
4573 $as_echo "no" >&6; }
4574 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4575 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4576 # Check whether --enable-xsmp-interact was given.
4577 if test "${enable_xsmp_interact+set}" = set; then
4578 enableval
=$enable_xsmp_interact;
4580 enable_xsmp_interact
="yes"
4583 if test "$enable_xsmp_interact" = "yes"; then
4584 { $as_echo "$as_me:$LINENO: result: no" >&5
4585 $as_echo "no" >&6; }
4586 cat >>confdefs.h
<<\_ACEOF
4587 #define USE_XSMP_INTERACT 1
4591 { $as_echo "$as_me:$LINENO: result: yes" >&5
4592 $as_echo "yes" >&6; }
4595 { $as_echo "$as_me:$LINENO: result: yes" >&5
4596 $as_echo "yes" >&6; }
4599 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4600 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4601 # Check whether --enable-mzschemeinterp was given.
4602 if test "${enable_mzschemeinterp+set}" = set; then
4603 enableval
=$enable_mzschemeinterp;
4605 enable_mzschemeinterp
="no"
4608 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4609 $as_echo "$enable_mzschemeinterp" >&6; }
4611 if test "$enable_mzschemeinterp" = "yes"; then
4614 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4615 $as_echo_n "checking --with-plthome argument... " >&6; }
4617 # Check whether --with-plthome was given.
4618 if test "${with_plthome+set}" = set; then
4619 withval
=$with_plthome; with_plthome
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4620 $as_echo "$with_plthome" >&6; }
4622 with_plthome
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4623 $as_echo "\"no\"" >&6; }
4627 if test "X$with_plthome" != "X"; then
4628 vi_cv_path_mzscheme_pfx
="$with_plthome"
4630 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4631 $as_echo_n "checking PLTHOME environment var... " >&6; }
4632 if test "X$PLTHOME" != "X"; then
4633 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4634 $as_echo "\"$PLTHOME\"" >&6; }
4635 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4637 { $as_echo "$as_me:$LINENO: result: \"not set\"" >&5
4638 $as_echo "\"not set\"" >&6; }
4639 # Extract the first word of "mzscheme", so it can be a program name with args.
4640 set dummy mzscheme
; ac_word
=$2
4641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4646 case $vi_cv_path_mzscheme in
4648 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4655 test -z "$as_dir" && as_dir
=.
4656 for ac_exec_ext
in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4670 if test -n "$vi_cv_path_mzscheme"; then
4671 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4672 $as_echo "$vi_cv_path_mzscheme" >&6; }
4674 { $as_echo "$as_me:$LINENO: result: no" >&5
4675 $as_echo "no" >&6; }
4680 if test "X$vi_cv_path_mzscheme" != "X"; then
4681 lsout
=`ls -l $vi_cv_path_mzscheme`
4682 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4683 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4687 if test "X$vi_cv_path_mzscheme" != "X"; then
4688 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4689 $as_echo_n "checking MzScheme install prefix... " >&6; }
4690 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4691 $as_echo_n "(cached) " >&6
4693 vi_cv_path_mzscheme_pfx
=`
4694 ${vi_cv_path_mzscheme} -evm \
4695 "(display (simplify-path \
4696 (build-path (call-with-values \
4697 (lambda () (split-path (find-system-path (quote exec-file)))) \
4698 (lambda (base name must-be-dir?) base)) (quote up))))"`
4700 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4701 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4702 vi_cv_path_mzscheme_pfx
=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
4708 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4709 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4710 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4711 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4712 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4713 $as_echo "\"yes\"" >&6; }
4715 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4716 $as_echo "\"no\"" >&6; }
4717 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
4718 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... " >&6; }
4719 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4720 { $as_echo "$as_me:$LINENO: result: \"yes\"" >&5
4721 $as_echo "\"yes\"" >&6; }
4724 { $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4725 $as_echo "\"no\"" >&6; }
4726 vi_cv_path_mzscheme_pfx
=
4731 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4732 if test "x$MACOSX" = "xyes"; then
4733 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4734 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4735 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4737 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4738 if test "$GCC" = yes; then
4739 MZSCHEME_LIBS
="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4740 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4741 uname
-r |
grep '^5' >/dev
/null
; then
4742 MZSCHEME_LIBS
="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
4745 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4746 SCHEME_COLLECTS
=lib
/plt
/
4748 MZSCHEME_CFLAGS
="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
4749 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4750 MZSCHEME_SRC
="if_mzsch.c"
4751 MZSCHEME_OBJ
="objects/if_mzsch.o"
4752 MZSCHEME_PRO
="if_mzsch.pro"
4753 cat >>confdefs.h
<<\_ACEOF
4754 #define FEAT_MZSCHEME 1
4766 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4767 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4768 # Check whether --enable-perlinterp was given.
4769 if test "${enable_perlinterp+set}" = set; then
4770 enableval
=$enable_perlinterp;
4772 enable_perlinterp
="no"
4775 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4776 $as_echo "$enable_perlinterp" >&6; }
4777 if test "$enable_perlinterp" = "yes"; then
4779 # Extract the first word of "perl", so it can be a program name with args.
4780 set dummy perl
; ac_word
=$2
4781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4784 $as_echo_n "(cached) " >&6
4786 case $vi_cv_path_perl in
4788 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4791 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir
=.
4796 for ac_exec_ext
in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4810 if test -n "$vi_cv_path_perl"; then
4811 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4812 $as_echo "$vi_cv_path_perl" >&6; }
4814 { $as_echo "$as_me:$LINENO: result: no" >&5
4815 $as_echo "no" >&6; }
4819 if test "X$vi_cv_path_perl" != "X"; then
4820 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4821 $as_echo_n "checking Perl version... " >&6; }
4822 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4823 eval `$vi_cv_path_perl -V:usethreads`
4824 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4827 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4828 eval `$vi_cv_path_perl -V:use5005threads`
4829 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4833 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4834 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4838 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4839 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4842 if test $badthreads = no
; then
4843 { $as_echo "$as_me:$LINENO: result: OK" >&5
4844 $as_echo "OK" >&6; }
4845 eval `$vi_cv_path_perl -V:shrpenv`
4846 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4849 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4851 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4852 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4853 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4854 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4855 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4856 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4857 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4859 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4860 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4863 ldflags_save
=$LDFLAGS
4864 CFLAGS
="$CFLAGS $perlcppflags"
4865 LIBS
="$LIBS $perllibs"
4866 LDFLAGS
="$perlldflags $LDFLAGS"
4867 cat >conftest.
$ac_ext <<_ACEOF
4870 cat confdefs.h
>>conftest.
$ac_ext
4871 cat >>conftest.
$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4882 rm -f conftest.
$ac_objext conftest
$ac_exeext
4883 if { (ac_try
="$ac_link"
4885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4886 *) ac_try_echo=$ac_try;;
4888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4889 $as_echo "$ac_try_echo") >&5
4890 (eval "$ac_link") 2>conftest.er1
4892 grep -v '^ *+' conftest.er1 >conftest.err
4894 cat conftest.err >&5
4895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest$ac_exeext && {
4900 test "$cross_compiling" = yes ||
4901 $as_test_x conftest$ac_exeext
4903 { $as_echo "$as_me:$LINENO: result: yes" >&5
4904 $as_echo "yes" >&6; }; perl_ok=yes
4906 $as_echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4910 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4913 rm -rf conftest.dSYM
4914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4915 conftest$ac_exeext conftest.$ac_ext
4918 LDFLAGS=$ldflags_save
4919 if test $perl_ok = yes; then
4920 if test "X$perlcppflags" != "X"; then
4921 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4923 if test "X$perlldflags" != "X"; then
4924 LDFLAGS="$perlldflags $LDFLAGS"
4927 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4928 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4929 PERL_PRO="if_perl.pro if_perlsfio.pro"
4930 cat >>confdefs.h <<\_ACEOF
4937 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4938 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4942 if test "x$MACOSX" = "xyes"; then
4943 dir=/System/Library/Perl
4944 darwindir=$dir/darwin
4945 if test -d $darwindir; then
4948 dir=/System/Library/Perl/5.8.1
4949 darwindir=$dir/darwin-thread-multi-2level
4950 if test -d $darwindir; then
4954 if test -n "$PERL"; then
4956 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4957 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4958 PERL_LIBS="-L$darwindir/CORE -lperl"
4969 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4970 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
4971 # Check whether --enable-pythoninterp was given.
4972 if test "${enable_pythoninterp+set}" = set; then
4973 enableval=$enable_pythoninterp;
4975 enable_pythoninterp="no"
4978 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4979 $as_echo "$enable_pythoninterp" >&6; }
4980 if test "$enable_pythoninterp" = "yes"; then
4981 # Extract the first word of "python", so it can be a program name with args.
4982 set dummy python; ac_word=$2
4983 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4988 case $vi_cv_path_python in
4990 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5012 if test -n "$vi_cv_path_python"; then
5013 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5014 $as_echo "$vi_cv_path_python" >&6; }
5016 { $as_echo "$as_me:$LINENO: result: no" >&5
5017 $as_echo "no" >&6; }
5021 if test "X$vi_cv_path_python" != "X"; then
5023 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5024 $as_echo_n "checking Python version... " >&6; }
5025 if test "${vi_cv_var_python_version+set}" = set; then
5026 $as_echo_n "(cached) " >&6
5028 vi_cv_var_python_version=`
5029 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5032 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5033 $as_echo "$vi_cv_var_python_version" >&6; }
5035 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5036 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5037 if ${vi_cv_path_python} -c \
5038 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5040 { $as_echo "$as_me:$LINENO: result: yep" >&5
5041 $as_echo "yep" >&6; }
5043 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5044 $as_echo_n "checking Python's install prefix... " >&6; }
5045 if test "${vi_cv_path_python_pfx+set}" = set; then
5046 $as_echo_n "(cached) " >&6
5048 vi_cv_path_python_pfx=`
5049 ${vi_cv_path_python} -c \
5050 "import sys; print sys.prefix"`
5052 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5053 $as_echo "$vi_cv_path_python_pfx" >&6; }
5055 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5056 $as_echo_n "checking Python's execution prefix... " >&6; }
5057 if test "${vi_cv_path_python_epfx+set}" = set; then
5058 $as_echo_n "(cached) " >&6
5060 vi_cv_path_python_epfx=`
5061 ${vi_cv_path_python} -c \
5062 "import sys; print sys.exec_prefix"`
5064 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5065 $as_echo "$vi_cv_path_python_epfx" >&6; }
5068 if test "${vi_cv_path_pythonpath+set}" = set; then
5069 $as_echo_n "(cached) " >&6
5071 vi_cv_path_pythonpath=`
5073 ${vi_cv_path_python} -c \
5074 "import sys, string; print string.join(sys.path,':')"`
5080 # Check whether --with-python-config-dir was given.
5081 if test "${with_python_config_dir+set}" = set; then
5082 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5086 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5087 $as_echo_n "checking Python's configuration directory... " >&6; }
5088 if test "${vi_cv_path_python_conf+set}" = set; then
5089 $as_echo_n "(cached) " >&6
5092 vi_cv_path_python_conf=
5093 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5094 for subdir in lib share; do
5095 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5096 if test -d "$d" && test -f "$d/config.c"; then
5097 vi_cv_path_python_conf="$d"
5103 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5104 $as_echo "$vi_cv_path_python_conf" >&6; }
5106 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5108 if test "X$PYTHON_CONFDIR" = "X"; then
5109 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5110 $as_echo "can't find it!" >&6; }
5113 if test "${vi_cv_path_python_plibs+set}" = set; then
5114 $as_echo_n "(cached) " >&6
5117 tmp_mkf="/tmp/Makefile-conf$$"
5118 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
5120 @echo "python_MODLIBS='$(MODLIBS)'"
5121 @echo "python_LIBS='$(LIBS)'"
5122 @echo "python_SYSLIBS='$(SYSLIBS)'"
5123 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5125 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ |
sed '/ directory /d'`"
5127 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5128 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5129 vi_cv_path_python_plibs="-framework Python"
5131 if test "${vi_cv_var_python_version}" = "1.4"; then
5132 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5134 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5136 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5137 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5143 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5144 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5145 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5147 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}"
5149 PYTHON_SRC="if_python.c"
5150 if test "x$MACOSX" = "xyes"; then
5151 PYTHON_OBJ="objects/if_python.o"
5153 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5155 if test "${vi_cv_var_python_version}" = "1.4"; then
5156 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5158 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5160 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5161 $as_echo_n "checking if -pthread should be used... " >&6; }
5164 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5165 test "$GCC" = yes && threadsafe_flag="-pthread"
5166 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5167 threadsafe_flag="-D_THREAD_SAFE"
5168 thread_lib="-pthread"
5172 if test -n "$threadsafe_flag"; then
5174 CFLAGS="$CFLAGS $threadsafe_flag"
5175 LIBS="$LIBS $thread_lib"
5176 cat >conftest.$ac_ext <<_ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (ac_try="$ac_link"
5194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5195 *) ac_try_echo
=$ac_try;;
5197 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5198 $as_echo "$ac_try_echo") >&5
5199 (eval "$ac_link") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1
>conftest.err
5203 cat conftest.err
>&5
5204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest
$ac_exeext && {
5209 test "$cross_compiling" = yes ||
5210 $as_test_x conftest
$ac_exeext
5212 { $as_echo "$as_me:$LINENO: result: yes" >&5
5213 $as_echo "yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5215 $as_echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.
$ac_ext >&5
5218 { $as_echo "$as_me:$LINENO: result: no" >&5
5219 $as_echo "no" >&6; }; LIBS
=$libs_save_old
5223 rm -rf conftest.dSYM
5224 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5225 conftest
$ac_exeext conftest.
$ac_ext
5228 { $as_echo "$as_me:$LINENO: result: no" >&5
5229 $as_echo "no" >&6; }
5232 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5233 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5236 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5237 LIBS
="$LIBS $PYTHON_LIBS"
5238 cat >conftest.
$ac_ext <<_ACEOF
5241 cat confdefs.h
>>conftest.
$ac_ext
5242 cat >>conftest.
$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5253 rm -f conftest.
$ac_objext conftest
$ac_exeext
5254 if { (ac_try
="$ac_link"
5256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5260 $as_echo "$ac_try_echo") >&5
5261 (eval "$ac_link") 2>conftest.er1
5263 grep -v '^ *+' conftest.er1 >conftest.err
5265 cat conftest.err >&5
5266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } && {
5268 test -z "$ac_c_werror_flag" ||
5269 test ! -s conftest.err
5270 } && test -s conftest$ac_exeext && {
5271 test "$cross_compiling" = yes ||
5272 $as_test_x conftest$ac_exeext
5274 { $as_echo "$as_me:$LINENO: result: yes" >&5
5275 $as_echo "yes" >&6; }; python_ok=yes
5277 $as_echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5281 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5284 rm -rf conftest.dSYM
5285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5286 conftest$ac_exeext conftest.$ac_ext
5289 if test $python_ok = yes; then
5290 cat >>confdefs.h <<\_ACEOF
5291 #define FEAT_PYTHON 1
5304 { $as_echo "$as_me:$LINENO: result: too old" >&5
5305 $as_echo "too old" >&6; }
5316 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5317 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5318 # Check whether --enable-tclinterp was given.
5319 if test "${enable_tclinterp+set}" = set; then
5320 enableval=$enable_tclinterp;
5322 enable_tclinterp="no"
5325 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5326 $as_echo "$enable_tclinterp" >&6; }
5328 if test "$enable_tclinterp" = "yes"; then
5330 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5331 $as_echo_n "checking --with-tclsh argument... " >&6; }
5333 # Check whether --with-tclsh was given.
5334 if test "${with_tclsh+set}" = set; then
5335 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5336 $as_echo "$tclsh_name" >&6; }
5338 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5339 $as_echo "no" >&6; }
5342 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5343 set dummy $tclsh_name; ac_word=$2
5344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5347 $as_echo_n "(cached) " >&6
5349 case $vi_cv_path_tcl in
5351 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5361 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5362 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5373 if test -n "$vi_cv_path_tcl"; then
5374 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5375 $as_echo "$vi_cv_path_tcl" >&6; }
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5384 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5385 tclsh_name="tclsh8.4"
5386 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5387 set dummy $tclsh_name; ac_word=$2
5388 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5391 $as_echo_n "(cached) " >&6
5393 case $vi_cv_path_tcl in
5395 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5417 if test -n "$vi_cv_path_tcl"; then
5418 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5419 $as_echo "$vi_cv_path_tcl" >&6; }
5421 { $as_echo "$as_me:$LINENO: result: no" >&5
5422 $as_echo "no" >&6; }
5427 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5428 tclsh_name="tclsh8.2"
5429 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5430 set dummy $tclsh_name; ac_word=$2
5431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5434 $as_echo_n "(cached) " >&6
5436 case $vi_cv_path_tcl in
5438 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5460 if test -n "$vi_cv_path_tcl"; then
5461 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5462 $as_echo "$vi_cv_path_tcl" >&6; }
5464 { $as_echo "$as_me:$LINENO: result: no" >&5
5465 $as_echo "no" >&6; }
5470 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5471 tclsh_name="tclsh8.0"
5472 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5473 set dummy $tclsh_name; ac_word=$2
5474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5477 $as_echo_n "(cached) " >&6
5479 case $vi_cv_path_tcl in
5481 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5503 if test -n "$vi_cv_path_tcl"; then
5504 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5505 $as_echo "$vi_cv_path_tcl" >&6; }
5507 { $as_echo "$as_me:$LINENO: result: no" >&5
5508 $as_echo "no" >&6; }
5513 if test "X$vi_cv_path_tcl" = "X"; then
5515 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5516 set dummy $tclsh_name; ac_word=$2
5517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5520 $as_echo_n "(cached) " >&6
5522 case $vi_cv_path_tcl in
5524 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5535 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5546 if test -n "$vi_cv_path_tcl"; then
5547 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5548 $as_echo "$vi_cv_path_tcl" >&6; }
5550 { $as_echo "$as_me:$LINENO: result: no" >&5
5551 $as_echo "no" >&6; }
5556 if test "X$vi_cv_path_tcl" != "X"; then
5557 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5558 $as_echo_n "checking Tcl version... " >&6; }
5559 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5560 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5561 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5562 $as_echo "$tclver - OK" >&6; };
5563 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 -`
5565 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5566 $as_echo_n "checking for location of Tcl include... " >&6; }
5567 if test "x$MACOSX" != "xyes"; then
5568 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5570 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5573 for try in $tclinc; do
5574 if test -f "$try/tcl.h"; then
5575 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5576 $as_echo "$try/tcl.h" >&6; }
5581 if test -z "$TCL_INC"; then
5582 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5583 $as_echo "<not found>" >&6; }
5586 if test -z "$SKIP_TCL"; then
5587 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5588 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5589 if test "x$MACOSX" != "xyes"; then
5590 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5591 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5593 tclcnf="/System/Library/Frameworks/Tcl.framework"
5595 for try in $tclcnf; do
5596 if test -f $try/tclConfig.sh; then
5597 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5598 $as_echo "$try/tclConfig.sh" >&6; }
5600 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5601 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'`
5605 if test -z "$TCL_LIBS"; then
5606 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5607 $as_echo "<not found>" >&6; }
5608 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5609 $as_echo_n "checking for Tcl library by myself... " >&6; }
5610 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5611 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5612 for ext in .so .a ; do
5613 for ver in "" $tclver ; do
5614 for try in $tcllib ; do
5616 if test -f $try/lib$trylib ; then
5617 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5618 $as_echo "$try/lib$trylib" >&6; }
5619 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5620 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5621 uname -r | grep '^5' >/dev/null; then
5622 TCL_LIBS="$TCL_LIBS -R $try"
5629 if test -z "$TCL_LIBS"; then
5630 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5631 $as_echo "<not found>" >&6; }
5635 if test -z "$SKIP_TCL"; then
5636 cat >>confdefs.h <<\_ACEOF
5641 TCL_OBJ=objects/if_tcl.o
5643 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5647 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5648 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5658 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5659 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5660 # Check whether --enable-rubyinterp was given.
5661 if test "${enable_rubyinterp+set}" = set; then
5662 enableval=$enable_rubyinterp;
5664 enable_rubyinterp="no"
5667 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5668 $as_echo "$enable_rubyinterp" >&6; }
5669 if test "$enable_rubyinterp" = "yes"; then
5671 # Extract the first word of "ruby", so it can be a program name with args.
5672 set dummy ruby; ac_word=$2
5673 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5676 $as_echo_n "(cached) " >&6
5678 case $vi_cv_path_ruby in
5680 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 test -z "$as_dir" && as_dir=.
5688 for ac_exec_ext in '' $ac_executable_extensions; do
5689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5690 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5691 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5702 if test -n "$vi_cv_path_ruby"; then
5703 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5704 $as_echo "$vi_cv_path_ruby" >&6; }
5706 { $as_echo "$as_me:$LINENO: result: no" >&5
5707 $as_echo "no" >&6; }
5711 if test "X$vi_cv_path_ruby" != "X"; then
5712 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5713 $as_echo_n "checking Ruby version... " >&6; }
5714 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5715 { $as_echo "$as_me:$LINENO: result: OK" >&5
5716 $as_echo "OK" >&6; }
5717 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5718 $as_echo_n "checking Ruby header files... " >&6; }
5719 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5720 if test "X$rubyhdrdir" != "X"; then
5721 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5722 $as_echo "$rubyhdrdir" >&6; }
5723 RUBY_CFLAGS="-I$rubyhdrdir"
5724 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5725 if test "X$rubylibs" != "X"; then
5726 RUBY_LIBS="$rubylibs"
5728 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5729 if test -f "$rubyhdrdir/$librubyarg"; then
5730 librubyarg="$rubyhdrdir/$librubyarg"
5732 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5733 if test -f "$rubylibdir/$librubyarg"; then
5734 librubyarg="$rubylibdir/$librubyarg"
5735 elif test "$librubyarg" = "libruby.a"; then
5738 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5742 if test "X$librubyarg" != "X"; then
5743 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5745 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5746 if test "X$rubyldflags" != "X"; then
5747 LDFLAGS="$rubyldflags $LDFLAGS"
5749 RUBY_SRC="if_ruby.c"
5750 RUBY_OBJ="objects/if_ruby.o"
5751 RUBY_PRO="if_ruby.pro"
5752 cat >>confdefs.h <<\_ACEOF
5757 { $as_echo "$as_me:$LINENO: result: not found" >&5
5758 $as_echo "not found" >&6; }
5761 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5762 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5772 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5773 $as_echo_n "checking --enable-cscope argument... " >&6; }
5774 # Check whether --enable-cscope was given.
5775 if test "${enable_cscope+set}" = set; then
5776 enableval=$enable_cscope;
5781 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5782 $as_echo "$enable_cscope" >&6; }
5783 if test "$enable_cscope" = "yes"; then
5784 cat >>confdefs.h <<\_ACEOF
5785 #define FEAT_CSCOPE 1
5790 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5791 $as_echo_n "checking --enable-workshop argument... " >&6; }
5792 # Check whether --enable-workshop was given.
5793 if test "${enable_workshop+set}" = set; then
5794 enableval=$enable_workshop;
5796 enable_workshop="no"
5799 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5800 $as_echo "$enable_workshop" >&6; }
5801 if test "$enable_workshop" = "yes"; then
5802 cat >>confdefs.h <<\_ACEOF
5803 #define FEAT_SUN_WORKSHOP 1
5806 WORKSHOP_SRC="workshop.c integration.c"
5808 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5810 if test "${enable_gui-xxx}" = xxx; then
5815 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5816 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5817 # Check whether --enable-netbeans was given.
5818 if test "${enable_netbeans+set}" = set; then
5819 enableval=$enable_netbeans;
5821 enable_netbeans="yes"
5824 if test "$enable_netbeans" = "yes"; then
5825 { $as_echo "$as_me:$LINENO: result: no" >&5
5826 $as_echo "no" >&6; }
5828 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5829 $as_echo_n "checking for socket in -lsocket... " >&6; }
5830 if test "${ac_cv_lib_socket_socket+set}" = set; then
5831 $as_echo_n "(cached) " >&6
5833 ac_check_lib_save_LIBS=$LIBS
5834 LIBS="-lsocket $LIBS"
5835 cat >conftest.$ac_ext <<_ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5842 /* Override any GCC internal prototype to avoid an error.
5843 Use char because int might match the return type of a GCC
5844 builtin and then its argument prototype would still apply. */
5857 rm -f conftest.$ac_objext conftest$ac_exeext
5858 if { (ac_try="$ac_link"
5860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5861 *) ac_try_echo
=$ac_try;;
5863 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5864 $as_echo "$ac_try_echo") >&5
5865 (eval "$ac_link") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest
$ac_exeext && {
5875 test "$cross_compiling" = yes ||
5876 $as_test_x conftest
$ac_exeext
5878 ac_cv_lib_socket_socket
=yes
5880 $as_echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.
$ac_ext >&5
5883 ac_cv_lib_socket_socket
=no
5886 rm -rf conftest.dSYM
5887 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5888 conftest
$ac_exeext conftest.
$ac_ext
5889 LIBS
=$ac_check_lib_save_LIBS
5891 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5892 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5893 if test $ac_cv_lib_socket_socket = yes; then
5894 cat >>confdefs.h
<<_ACEOF
5895 #define HAVE_LIBSOCKET 1
5898 LIBS
="-lsocket $LIBS"
5903 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5904 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5905 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5906 $as_echo_n "(cached) " >&6
5908 ac_check_lib_save_LIBS
=$LIBS
5910 cat >conftest.
$ac_ext <<_ACEOF
5913 cat confdefs.h
>>conftest.
$ac_ext
5914 cat >>conftest.
$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5917 /* Override any GCC internal prototype to avoid an error.
5918 Use char because int might match the return type of a GCC
5919 builtin and then its argument prototype would still apply. */
5923 char gethostbyname ();
5927 return gethostbyname ();
5932 rm -f conftest.
$ac_objext conftest
$ac_exeext
5933 if { (ac_try
="$ac_link"
5935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5939 $as_echo "$ac_try_echo") >&5
5940 (eval "$ac_link") 2>conftest.er1
5942 grep -v '^ *+' conftest.er1 >conftest.err
5944 cat conftest.err >&5
5945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest$ac_exeext && {
5950 test "$cross_compiling" = yes ||
5951 $as_test_x conftest$ac_exeext
5953 ac_cv_lib_nsl_gethostbyname=yes
5955 $as_echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 ac_cv_lib_nsl_gethostbyname=no
5961 rm -rf conftest.dSYM
5962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5963 conftest$ac_exeext conftest.$ac_ext
5964 LIBS=$ac_check_lib_save_LIBS
5966 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5967 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5968 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5969 cat >>confdefs.h <<_ACEOF
5970 #define HAVE_LIBNSL 1
5977 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5978 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
5979 cat >conftest.$ac_ext <<_ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5991 #include <netinet/in.h>
5993 #include <sys/types.h>
5994 #include <sys/socket.h>
5995 /* Check bitfields */
5997 unsigned int initDone:1;
6005 /* Check creating a socket. */
6006 struct sockaddr_in server;
6007 (void)socket(AF_INET, SOCK_STREAM, 0);
6009 (void)gethostbyname("microsoft.com");
6010 if (errno == ECONNREFUSED)
6011 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (ac_try="$ac_link"
6020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6021 *) ac_try_echo
=$ac_try;;
6023 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6024 $as_echo "$ac_try_echo") >&5
6025 (eval "$ac_link") 2>conftest.er1
6027 grep -v '^ *+' conftest.er1
>conftest.err
6029 cat conftest.err
>&5
6030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest
$ac_exeext && {
6035 test "$cross_compiling" = yes ||
6036 $as_test_x conftest
$ac_exeext
6038 { $as_echo "$as_me:$LINENO: result: yes" >&5
6039 $as_echo "yes" >&6; }
6041 $as_echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.
$ac_ext >&5
6044 { $as_echo "$as_me:$LINENO: result: no" >&5
6045 $as_echo "no" >&6; }; enable_netbeans
="no"
6048 rm -rf conftest.dSYM
6049 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6050 conftest
$ac_exeext conftest.
$ac_ext
6052 { $as_echo "$as_me:$LINENO: result: yes" >&5
6053 $as_echo "yes" >&6; }
6055 if test "$enable_netbeans" = "yes"; then
6056 cat >>confdefs.h
<<\_ACEOF
6057 #define FEAT_NETBEANS_INTG 1
6060 NETBEANS_SRC
="netbeans.c"
6062 NETBEANS_OBJ
="objects/netbeans.o"
6066 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6067 $as_echo_n "checking --enable-sniff argument... " >&6; }
6068 # Check whether --enable-sniff was given.
6069 if test "${enable_sniff+set}" = set; then
6070 enableval
=$enable_sniff;
6075 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6076 $as_echo "$enable_sniff" >&6; }
6077 if test "$enable_sniff" = "yes"; then
6078 cat >>confdefs.h
<<\_ACEOF
6079 #define FEAT_SNIFF 1
6082 SNIFF_SRC
="if_sniff.c"
6084 SNIFF_OBJ
="objects/if_sniff.o"
6088 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6089 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6090 # Check whether --enable-multibyte was given.
6091 if test "${enable_multibyte+set}" = set; then
6092 enableval
=$enable_multibyte;
6094 enable_multibyte
="no"
6097 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6098 $as_echo "$enable_multibyte" >&6; }
6099 if test "$enable_multibyte" = "yes"; then
6100 cat >>confdefs.h
<<\_ACEOF
6101 #define FEAT_MBYTE 1
6106 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6107 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6108 # Check whether --enable-hangulinput was given.
6109 if test "${enable_hangulinput+set}" = set; then
6110 enableval
=$enable_hangulinput;
6112 enable_hangulinput
="no"
6115 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6116 $as_echo "$enable_hangulinput" >&6; }
6118 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6119 $as_echo_n "checking --enable-xim argument... " >&6; }
6120 # Check whether --enable-xim was given.
6121 if test "${enable_xim+set}" = set; then
6122 enableval
=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6123 $as_echo "$enable_xim" >&6; }
6125 enable_xim
="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6126 $as_echo "defaulting to auto" >&6; }
6130 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6131 $as_echo_n "checking --enable-fontset argument... " >&6; }
6132 # Check whether --enable-fontset was given.
6133 if test "${enable_fontset+set}" = set; then
6134 enableval
=$enable_fontset;
6139 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6140 $as_echo "$enable_fontset" >&6; }
6142 test -z "$with_x" && with_x
=yes
6143 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6144 if test "$with_x" = no
; then
6145 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6146 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6149 # Extract the first word of "xmkmf", so it can be a program name with args.
6150 set dummy xmkmf
; ac_word
=$2
6151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6154 $as_echo_n "(cached) " >&6
6158 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir
=.
6166 for ac_exec_ext
in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 xmkmfpath
=$ac_cv_path_xmkmfpath
6180 if test -n "$xmkmfpath"; then
6181 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6182 $as_echo "$xmkmfpath" >&6; }
6184 { $as_echo "$as_me:$LINENO: result: no" >&5
6185 $as_echo "no" >&6; }
6190 { $as_echo "$as_me:$LINENO: checking for X" >&5
6191 $as_echo_n "checking for X... " >&6; }
6194 # Check whether --with-x was given.
6195 if test "${with_x+set}" = set; then
6199 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6200 if test "x$with_x" = xno
; then
6201 # The user explicitly disabled X.
6204 case $x_includes,$x_libraries in #(
6205 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6206 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
6207 { (exit 1); exit 1; }; };; #(
6208 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6209 $as_echo_n "(cached) " >&6
6211 # One or both of the vars are not set, and there is no cached value.
6212 ac_x_includes
=no ac_x_libraries
=no
6213 rm -f -r conftest.dir
6214 if mkdir conftest.dir
; then
6216 cat >Imakefile
<<'_ACEOF'
6218 @echo incroot='${INCROOT}'
6220 @echo usrlibdir='${USRLIBDIR}'
6222 @echo libdir='${LIBDIR}'
6224 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6226 for ac_var
in incroot usrlibdir libdir
; do
6227 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6229 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6230 for ac_extension
in a so sl dylib la dll
; do
6231 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6232 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6233 ac_im_usrlibdir
=$ac_im_libdir; break
6236 # Screen out bogus values from the imake configuration. They are
6237 # bogus both because they are the default anyway, and because
6238 # using them would break gcc on systems where it needs fixed includes.
6239 case $ac_im_incroot in
6240 /usr
/include
) ac_x_includes
= ;;
6241 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6243 case $ac_im_usrlibdir in
6245 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6249 rm -f -r conftest.dir
6252 # Standard set of common directories for X headers.
6253 # Check X11 before X11Rn because it is often a symlink to the current release.
6265 /usr/local/X11/include
6266 /usr/local/X11R6/include
6267 /usr/local/X11R5/include
6268 /usr/local/X11R4/include
6270 /usr/local/include/X11
6271 /usr/local/include/X11R6
6272 /usr/local/include/X11R5
6273 /usr/local/include/X11R4
6277 /usr/XFree86/include/X11
6281 /usr/unsupported/include
6283 /usr/local/x11r5/include
6284 /usr/lpp/Xamples/include
6286 /usr/openwin/include
6287 /usr/openwin/share/include'
6289 if test "$ac_x_includes" = no
; then
6290 # Guess where to find include files, by looking for Xlib.h.
6291 # First, try using that file with no special directory specified.
6292 cat >conftest.
$ac_ext <<_ACEOF
6295 cat confdefs.h
>>conftest.
$ac_ext
6296 cat >>conftest.
$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6298 #include <X11/Xlib.h>
6300 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6306 $as_echo "$ac_try_echo") >&5
6307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6309 grep -v '^ *+' conftest.er1 >conftest.err
6311 cat conftest.err >&5
6312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); } >/dev/null && {
6314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6315 test ! -s conftest.err
6317 # We can compile using X headers with no special include directory.
6320 $as_echo "$as_me: failed program was:" >&5
6321 sed 's/^/| /' conftest.$ac_ext >&5
6323 for ac_dir in $ac_x_header_dirs; do
6324 if test -r "$ac_dir/X11/Xlib.h"; then
6325 ac_x_includes=$ac_dir
6331 rm -f conftest.err conftest.$ac_ext
6332 fi # $ac_x_includes = no
6334 if test "$ac_x_libraries" = no; then
6335 # Check for the libraries.
6336 # See if we find them without any special options.
6337 # Don't add to $LIBS permanently.
6340 cat >conftest.$ac_ext <<_ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6346 #include <X11/Xlib.h>
6355 rm -f conftest.$ac_objext conftest$ac_exeext
6356 if { (ac_try="$ac_link"
6358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6359 *) ac_try_echo
=$ac_try;;
6361 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6362 $as_echo "$ac_try_echo") >&5
6363 (eval "$ac_link") 2>conftest.er1
6365 grep -v '^ *+' conftest.er1
>conftest.err
6367 cat conftest.err
>&5
6368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } && {
6370 test -z "$ac_c_werror_flag" ||
6371 test ! -s conftest.err
6372 } && test -s conftest
$ac_exeext && {
6373 test "$cross_compiling" = yes ||
6374 $as_test_x conftest
$ac_exeext
6377 # We can link X programs with no special library path.
6380 $as_echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.
$ac_ext >&5
6384 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6386 # Don't even attempt the hair of trying to link an X program!
6387 for ac_extension
in a so sl dylib la dll
; do
6388 if test -r "$ac_dir/libX11.$ac_extension"; then
6389 ac_x_libraries
=$ac_dir
6396 rm -rf conftest.dSYM
6397 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6398 conftest
$ac_exeext conftest.
$ac_ext
6399 fi # $ac_x_libraries = no
6401 case $ac_x_includes,$ac_x_libraries in #(
6403 # Didn't find X, or a directory has "'" in its name.
6404 ac_cv_have_x
="have_x=no";; #(
6406 # Record where we found X for the cache.
6407 ac_cv_have_x
="have_x=yes\
6408 ac_x_includes='$ac_x_includes'\
6409 ac_x_libraries='$ac_x_libraries'"
6415 eval "$ac_cv_have_x"
6418 if test "$have_x" != yes; then
6419 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6420 $as_echo "$have_x" >&6; }
6423 # If each of the values was on the command line, it overrides each guess.
6424 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6425 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6426 # Update the cache value to reflect the command line values.
6427 ac_cv_have_x
="have_x=yes\
6428 ac_x_includes='$x_includes'\
6429 ac_x_libraries='$x_libraries'"
6430 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6431 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6434 if test "$no_x" = yes; then
6435 # Not all programs may use this symbol, but it does not hurt to define it.
6437 cat >>confdefs.h
<<\_ACEOF
6438 #define X_DISPLAY_MISSING 1
6441 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6443 if test -n "$x_includes"; then
6444 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6447 # It would also be nice to do this for all -L options, not just this one.
6448 if test -n "$x_libraries"; then
6449 X_LIBS
="$X_LIBS -L$x_libraries"
6450 # For Solaris; some versions of Sun CC require a space after -R and
6451 # others require no space. Words are not sufficient . . . .
6452 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6453 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6454 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6455 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6456 ac_c_werror_flag
=yes
6457 cat >conftest.
$ac_ext <<_ACEOF
6460 cat confdefs.h
>>conftest.
$ac_ext
6461 cat >>conftest.
$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6472 rm -f conftest.
$ac_objext conftest
$ac_exeext
6473 if { (ac_try
="$ac_link"
6475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6476 *) ac_try_echo=$ac_try;;
6478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6479 $as_echo "$ac_try_echo") >&5
6480 (eval "$ac_link") 2>conftest.er1
6482 grep -v '^ *+' conftest.er1 >conftest.err
6484 cat conftest.err >&5
6485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } && {
6487 test -z "$ac_c_werror_flag" ||
6488 test ! -s conftest.err
6489 } && test -s conftest$ac_exeext && {
6490 test "$cross_compiling" = yes ||
6491 $as_test_x conftest$ac_exeext
6493 { $as_echo "$as_me:$LINENO: result: no" >&5
6494 $as_echo "no" >&6; }
6495 X_LIBS="$X_LIBS -R$x_libraries"
6497 $as_echo "$as_me: failed program was:" >&5
6498 sed 's/^/| /' conftest.$ac_ext >&5
6500 LIBS="$ac_xsave_LIBS -R $x_libraries"
6501 cat >conftest.$ac_ext <<_ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (ac_try="$ac_link"
6519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6520 *) ac_try_echo
=$ac_try;;
6522 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6523 $as_echo "$ac_try_echo") >&5
6524 (eval "$ac_link") 2>conftest.er1
6526 grep -v '^ *+' conftest.er1
>conftest.err
6528 cat conftest.err
>&5
6529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest
$ac_exeext && {
6534 test "$cross_compiling" = yes ||
6535 $as_test_x conftest
$ac_exeext
6537 { $as_echo "$as_me:$LINENO: result: yes" >&5
6538 $as_echo "yes" >&6; }
6539 X_LIBS
="$X_LIBS -R $x_libraries"
6541 $as_echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.
$ac_ext >&5
6544 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6545 $as_echo "neither works" >&6; }
6548 rm -rf conftest.dSYM
6549 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6550 conftest
$ac_exeext conftest.
$ac_ext
6553 rm -rf conftest.dSYM
6554 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6555 conftest
$ac_exeext conftest.
$ac_ext
6556 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6560 # Check for system-dependent libraries X programs must link with.
6561 # Do this before checking for the system-independent R6 libraries
6562 # (-lICE), since we may need -lsocket or whatever for X linking.
6564 if test "$ISC" = yes; then
6565 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6567 # Martyn Johnson says this is needed for Ultrix, if the X
6568 # libraries were built with DECnet support. And Karl Berry says
6569 # the Alpha needs dnet_stub (dnet does not exist).
6570 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6571 cat >conftest.
$ac_ext <<_ACEOF
6574 cat confdefs.h
>>conftest.
$ac_ext
6575 cat >>conftest.
$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6578 /* Override any GCC internal prototype to avoid an error.
6579 Use char because int might match the return type of a GCC
6580 builtin and then its argument prototype would still apply. */
6584 char XOpenDisplay ();
6588 return XOpenDisplay ();
6593 rm -f conftest.
$ac_objext conftest
$ac_exeext
6594 if { (ac_try
="$ac_link"
6596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6597 *) ac_try_echo=$ac_try;;
6599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6600 $as_echo "$ac_try_echo") >&5
6601 (eval "$ac_link") 2>conftest.er1
6603 grep -v '^ *+' conftest.er1 >conftest.err
6605 cat conftest.err >&5
6606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } && {
6608 test -z "$ac_c_werror_flag" ||
6609 test ! -s conftest.err
6610 } && test -s conftest$ac_exeext && {
6611 test "$cross_compiling" = yes ||
6612 $as_test_x conftest$ac_exeext
6616 $as_echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6619 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6620 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6621 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6622 $as_echo_n "(cached) " >&6
6624 ac_check_lib_save_LIBS=$LIBS
6626 cat >conftest.$ac_ext <<_ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6633 /* Override any GCC internal prototype to avoid an error.
6634 Use char because int might match the return type of a GCC
6635 builtin and then its argument prototype would still apply. */
6643 return dnet_ntoa ();
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (ac_try="$ac_link"
6651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6652 *) ac_try_echo
=$ac_try;;
6654 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6655 $as_echo "$ac_try_echo") >&5
6656 (eval "$ac_link") 2>conftest.er1
6658 grep -v '^ *+' conftest.er1
>conftest.err
6660 cat conftest.err
>&5
6661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest
$ac_exeext && {
6666 test "$cross_compiling" = yes ||
6667 $as_test_x conftest
$ac_exeext
6669 ac_cv_lib_dnet_dnet_ntoa
=yes
6671 $as_echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.
$ac_ext >&5
6674 ac_cv_lib_dnet_dnet_ntoa
=no
6677 rm -rf conftest.dSYM
6678 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6679 conftest
$ac_exeext conftest.
$ac_ext
6680 LIBS
=$ac_check_lib_save_LIBS
6682 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6683 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6684 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6685 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6688 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6689 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6690 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6691 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6692 $as_echo_n "(cached) " >&6
6694 ac_check_lib_save_LIBS
=$LIBS
6695 LIBS
="-ldnet_stub $LIBS"
6696 cat >conftest.
$ac_ext <<_ACEOF
6699 cat confdefs.h
>>conftest.
$ac_ext
6700 cat >>conftest.
$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6703 /* Override any GCC internal prototype to avoid an error.
6704 Use char because int might match the return type of a GCC
6705 builtin and then its argument prototype would still apply. */
6713 return dnet_ntoa ();
6718 rm -f conftest.
$ac_objext conftest
$ac_exeext
6719 if { (ac_try
="$ac_link"
6721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6722 *) ac_try_echo=$ac_try;;
6724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6725 $as_echo "$ac_try_echo") >&5
6726 (eval "$ac_link") 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && {
6733 test -z "$ac_c_werror_flag" ||
6734 test ! -s conftest.err
6735 } && test -s conftest$ac_exeext && {
6736 test "$cross_compiling" = yes ||
6737 $as_test_x conftest$ac_exeext
6739 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6741 $as_echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6744 ac_cv_lib_dnet_stub_dnet_ntoa=no
6747 rm -rf conftest.dSYM
6748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6749 conftest$ac_exeext conftest.$ac_ext
6750 LIBS=$ac_check_lib_save_LIBS
6752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6753 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6754 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6755 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6761 rm -rf conftest.dSYM
6762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6763 conftest$ac_exeext conftest.$ac_ext
6764 LIBS="$ac_xsave_LIBS"
6766 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6767 # to get the SysV transport functions.
6768 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6770 # The nsl library prevents programs from opening the X display
6771 # on Irix 5.2, according to T.E. Dickey.
6772 # The functions gethostbyname, getservbyname, and inet_addr are
6773 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6774 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6775 $as_echo_n "checking for gethostbyname... " >&6; }
6776 if test "${ac_cv_func_gethostbyname+set}" = set; then
6777 $as_echo_n "(cached) " >&6
6779 cat >conftest.$ac_ext <<_ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6787 #define gethostbyname innocuous_gethostbyname
6789 /* System header to define __stub macros and hopefully few prototypes,
6790 which can conflict with char gethostbyname (); below.
6791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6792 <limits.h> exists even on freestanding compilers. */
6795 # include <limits.h>
6797 # include <assert.h>
6800 #undef gethostbyname
6802 /* Override any GCC internal prototype to avoid an error.
6803 Use char because int might match the return type of a GCC
6804 builtin and then its argument prototype would still apply. */
6808 char gethostbyname ();
6809 /* The GNU C library defines this for functions which it implements
6810 to always fail with ENOSYS. Some functions are actually named
6811 something starting with __ and the normal name is an alias. */
6812 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6819 return gethostbyname ();
6824 rm -f conftest.$ac_objext conftest$ac_exeext
6825 if { (ac_try="$ac_link"
6827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6828 *) ac_try_echo
=$ac_try;;
6830 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6831 $as_echo "$ac_try_echo") >&5
6832 (eval "$ac_link") 2>conftest.er1
6834 grep -v '^ *+' conftest.er1
>conftest.err
6836 cat conftest.err
>&5
6837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838 (exit $ac_status); } && {
6839 test -z "$ac_c_werror_flag" ||
6840 test ! -s conftest.err
6841 } && test -s conftest
$ac_exeext && {
6842 test "$cross_compiling" = yes ||
6843 $as_test_x conftest
$ac_exeext
6845 ac_cv_func_gethostbyname
=yes
6847 $as_echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.
$ac_ext >&5
6850 ac_cv_func_gethostbyname
=no
6853 rm -rf conftest.dSYM
6854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6855 conftest
$ac_exeext conftest.
$ac_ext
6857 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6858 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6860 if test $ac_cv_func_gethostbyname = no
; then
6861 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6862 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6863 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6864 $as_echo_n "(cached) " >&6
6866 ac_check_lib_save_LIBS
=$LIBS
6868 cat >conftest.
$ac_ext <<_ACEOF
6871 cat confdefs.h
>>conftest.
$ac_ext
6872 cat >>conftest.
$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6875 /* Override any GCC internal prototype to avoid an error.
6876 Use char because int might match the return type of a GCC
6877 builtin and then its argument prototype would still apply. */
6881 char gethostbyname ();
6885 return gethostbyname ();
6890 rm -f conftest.
$ac_objext conftest
$ac_exeext
6891 if { (ac_try
="$ac_link"
6893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6897 $as_echo "$ac_try_echo") >&5
6898 (eval "$ac_link") 2>conftest.er1
6900 grep -v '^ *+' conftest.er1 >conftest.err
6902 cat conftest.err >&5
6903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } && {
6905 test -z "$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 } && test -s conftest$ac_exeext && {
6908 test "$cross_compiling" = yes ||
6909 $as_test_x conftest$ac_exeext
6911 ac_cv_lib_nsl_gethostbyname=yes
6913 $as_echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6916 ac_cv_lib_nsl_gethostbyname=no
6919 rm -rf conftest.dSYM
6920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6921 conftest$ac_exeext conftest.$ac_ext
6922 LIBS=$ac_check_lib_save_LIBS
6924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6925 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6926 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6927 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6930 if test $ac_cv_lib_nsl_gethostbyname = no; then
6931 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6932 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6933 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6934 $as_echo_n "(cached) " >&6
6936 ac_check_lib_save_LIBS=$LIBS
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6945 /* Override any GCC internal prototype to avoid an error.
6946 Use char because int might match the return type of a GCC
6947 builtin and then its argument prototype would still apply. */
6951 char gethostbyname ();
6955 return gethostbyname ();
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (ac_try="$ac_link"
6963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6964 *) ac_try_echo
=$ac_try;;
6966 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6967 $as_echo "$ac_try_echo") >&5
6968 (eval "$ac_link") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1
>conftest.err
6972 cat conftest.err
>&5
6973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest
$ac_exeext && {
6978 test "$cross_compiling" = yes ||
6979 $as_test_x conftest
$ac_exeext
6981 ac_cv_lib_bsd_gethostbyname
=yes
6983 $as_echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.
$ac_ext >&5
6986 ac_cv_lib_bsd_gethostbyname
=no
6989 rm -rf conftest.dSYM
6990 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6991 conftest
$ac_exeext conftest.
$ac_ext
6992 LIBS
=$ac_check_lib_save_LIBS
6994 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6995 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6996 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6997 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7003 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7004 # socket/setsockopt and other routines are undefined under SCO ODT
7005 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7006 # on later versions), says Simon Leinen: it contains gethostby*
7007 # variants that don't use the name server (or something). -lsocket
7008 # must be given before -lnsl if both are needed. We assume that
7009 # if connect needs -lnsl, so does gethostbyname.
7010 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7011 $as_echo_n "checking for connect... " >&6; }
7012 if test "${ac_cv_func_connect+set}" = set; then
7013 $as_echo_n "(cached) " >&6
7015 cat >conftest.
$ac_ext <<_ACEOF
7018 cat confdefs.h
>>conftest.
$ac_ext
7019 cat >>conftest.
$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7023 #define connect innocuous_connect
7025 /* System header to define __stub macros and hopefully few prototypes,
7026 which can conflict with char connect (); below.
7027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7028 <limits.h> exists even on freestanding compilers. */
7031 # include <limits.h>
7033 # include <assert.h>
7038 /* Override any GCC internal prototype to avoid an error.
7039 Use char because int might match the return type of a GCC
7040 builtin and then its argument prototype would still apply. */
7045 /* The GNU C library defines this for functions which it implements
7046 to always fail with ENOSYS. Some functions are actually named
7047 something starting with __ and the normal name is an alias. */
7048 #if defined __stub_connect || defined __stub___connect
7060 rm -f conftest.
$ac_objext conftest
$ac_exeext
7061 if { (ac_try
="$ac_link"
7063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068 (eval "$ac_link") 2>conftest.er1
7070 grep -v '^ *+' conftest.er1 >conftest.err
7072 cat conftest.err >&5
7073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } && {
7075 test -z "$ac_c_werror_flag" ||
7076 test ! -s conftest.err
7077 } && test -s conftest$ac_exeext && {
7078 test "$cross_compiling" = yes ||
7079 $as_test_x conftest$ac_exeext
7081 ac_cv_func_connect=yes
7083 $as_echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_cv_func_connect=no
7089 rm -rf conftest.dSYM
7090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7091 conftest$ac_exeext conftest.$ac_ext
7093 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7094 $as_echo "$ac_cv_func_connect" >&6; }
7096 if test $ac_cv_func_connect = no; then
7097 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7098 $as_echo_n "checking for connect in -lsocket... " >&6; }
7099 if test "${ac_cv_lib_socket_connect+set}" = set; then
7100 $as_echo_n "(cached) " >&6
7102 ac_check_lib_save_LIBS=$LIBS
7103 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7104 cat >conftest.$ac_ext <<_ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7111 /* Override any GCC internal prototype to avoid an error.
7112 Use char because int might match the return type of a GCC
7113 builtin and then its argument prototype would still apply. */
7126 rm -f conftest.$ac_objext conftest$ac_exeext
7127 if { (ac_try="$ac_link"
7129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7130 *) ac_try_echo
=$ac_try;;
7132 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7133 $as_echo "$ac_try_echo") >&5
7134 (eval "$ac_link") 2>conftest.er1
7136 grep -v '^ *+' conftest.er1
>conftest.err
7138 cat conftest.err
>&5
7139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest
$ac_exeext && {
7144 test "$cross_compiling" = yes ||
7145 $as_test_x conftest
$ac_exeext
7147 ac_cv_lib_socket_connect
=yes
7149 $as_echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.
$ac_ext >&5
7152 ac_cv_lib_socket_connect
=no
7155 rm -rf conftest.dSYM
7156 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7157 conftest
$ac_exeext conftest.
$ac_ext
7158 LIBS
=$ac_check_lib_save_LIBS
7160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7161 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7162 if test $ac_cv_lib_socket_connect = yes; then
7163 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7168 # Guillermo Gomez says -lposix is necessary on A/UX.
7169 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7170 $as_echo_n "checking for remove... " >&6; }
7171 if test "${ac_cv_func_remove+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7174 cat >conftest.
$ac_ext <<_ACEOF
7177 cat confdefs.h
>>conftest.
$ac_ext
7178 cat >>conftest.
$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7182 #define remove innocuous_remove
7184 /* System header to define __stub macros and hopefully few prototypes,
7185 which can conflict with char remove (); below.
7186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7187 <limits.h> exists even on freestanding compilers. */
7190 # include <limits.h>
7192 # include <assert.h>
7197 /* Override any GCC internal prototype to avoid an error.
7198 Use char because int might match the return type of a GCC
7199 builtin and then its argument prototype would still apply. */
7204 /* The GNU C library defines this for functions which it implements
7205 to always fail with ENOSYS. Some functions are actually named
7206 something starting with __ and the normal name is an alias. */
7207 #if defined __stub_remove || defined __stub___remove
7219 rm -f conftest.
$ac_objext conftest
$ac_exeext
7220 if { (ac_try
="$ac_link"
7222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7226 $as_echo "$ac_try_echo") >&5
7227 (eval "$ac_link") 2>conftest.er1
7229 grep -v '^ *+' conftest.er1 >conftest.err
7231 cat conftest.err >&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest$ac_exeext && {
7237 test "$cross_compiling" = yes ||
7238 $as_test_x conftest$ac_exeext
7240 ac_cv_func_remove=yes
7242 $as_echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7245 ac_cv_func_remove=no
7248 rm -rf conftest.dSYM
7249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7250 conftest$ac_exeext conftest.$ac_ext
7252 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7253 $as_echo "$ac_cv_func_remove" >&6; }
7255 if test $ac_cv_func_remove = no; then
7256 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7257 $as_echo_n "checking for remove in -lposix... " >&6; }
7258 if test "${ac_cv_lib_posix_remove+set}" = set; then
7259 $as_echo_n "(cached) " >&6
7261 ac_check_lib_save_LIBS=$LIBS
7262 LIBS="-lposix $LIBS"
7263 cat >conftest.$ac_ext <<_ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h. */
7270 /* Override any GCC internal prototype to avoid an error.
7271 Use char because int might match the return type of a GCC
7272 builtin and then its argument prototype would still apply. */
7285 rm -f conftest.$ac_objext conftest$ac_exeext
7286 if { (ac_try="$ac_link"
7288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7289 *) ac_try_echo
=$ac_try;;
7291 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7292 $as_echo "$ac_try_echo") >&5
7293 (eval "$ac_link") 2>conftest.er1
7295 grep -v '^ *+' conftest.er1
>conftest.err
7297 cat conftest.err
>&5
7298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && {
7300 test -z "$ac_c_werror_flag" ||
7301 test ! -s conftest.err
7302 } && test -s conftest
$ac_exeext && {
7303 test "$cross_compiling" = yes ||
7304 $as_test_x conftest
$ac_exeext
7306 ac_cv_lib_posix_remove
=yes
7308 $as_echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.
$ac_ext >&5
7311 ac_cv_lib_posix_remove
=no
7314 rm -rf conftest.dSYM
7315 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7316 conftest
$ac_exeext conftest.
$ac_ext
7317 LIBS
=$ac_check_lib_save_LIBS
7319 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7320 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7321 if test $ac_cv_lib_posix_remove = yes; then
7322 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7327 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7328 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7329 $as_echo_n "checking for shmat... " >&6; }
7330 if test "${ac_cv_func_shmat+set}" = set; then
7331 $as_echo_n "(cached) " >&6
7333 cat >conftest.
$ac_ext <<_ACEOF
7336 cat confdefs.h
>>conftest.
$ac_ext
7337 cat >>conftest.
$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7341 #define shmat innocuous_shmat
7343 /* System header to define __stub macros and hopefully few prototypes,
7344 which can conflict with char shmat (); below.
7345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7346 <limits.h> exists even on freestanding compilers. */
7349 # include <limits.h>
7351 # include <assert.h>
7356 /* Override any GCC internal prototype to avoid an error.
7357 Use char because int might match the return type of a GCC
7358 builtin and then its argument prototype would still apply. */
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined __stub_shmat || defined __stub___shmat
7378 rm -f conftest.
$ac_objext conftest
$ac_exeext
7379 if { (ac_try
="$ac_link"
7381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7385 $as_echo "$ac_try_echo") >&5
7386 (eval "$ac_link") 2>conftest.er1
7388 grep -v '^ *+' conftest.er1 >conftest.err
7390 cat conftest.err >&5
7391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest$ac_exeext && {
7396 test "$cross_compiling" = yes ||
7397 $as_test_x conftest$ac_exeext
7399 ac_cv_func_shmat=yes
7401 $as_echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7407 rm -rf conftest.dSYM
7408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7409 conftest$ac_exeext conftest.$ac_ext
7411 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7412 $as_echo "$ac_cv_func_shmat" >&6; }
7414 if test $ac_cv_func_shmat = no; then
7415 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7416 $as_echo_n "checking for shmat in -lipc... " >&6; }
7417 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7418 $as_echo_n "(cached) " >&6
7420 ac_check_lib_save_LIBS=$LIBS
7422 cat >conftest.$ac_ext <<_ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7429 /* Override any GCC internal prototype to avoid an error.
7430 Use char because int might match the return type of a GCC
7431 builtin and then its argument prototype would still apply. */
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (ac_try="$ac_link"
7447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7448 *) ac_try_echo
=$ac_try;;
7450 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7451 $as_echo "$ac_try_echo") >&5
7452 (eval "$ac_link") 2>conftest.er1
7454 grep -v '^ *+' conftest.er1
>conftest.err
7456 cat conftest.err
>&5
7457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest
$ac_exeext && {
7462 test "$cross_compiling" = yes ||
7463 $as_test_x conftest
$ac_exeext
7465 ac_cv_lib_ipc_shmat
=yes
7467 $as_echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.
$ac_ext >&5
7470 ac_cv_lib_ipc_shmat
=no
7473 rm -rf conftest.dSYM
7474 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7475 conftest
$ac_exeext conftest.
$ac_ext
7476 LIBS
=$ac_check_lib_save_LIBS
7478 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7479 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7480 if test $ac_cv_lib_ipc_shmat = yes; then
7481 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7487 # Check for libraries that X11R6 Xt/Xaw programs need.
7488 ac_save_LDFLAGS
=$LDFLAGS
7489 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7490 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7491 # check for ICE first), but we must link in the order -lSM -lICE or
7492 # we get undefined symbols. So assume we have SM if we have ICE.
7493 # These have to be linked with before -lX11, unlike the other
7494 # libraries we check for below, so use a different variable.
7495 # John Interrante, Karl Berry
7496 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7497 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7498 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7501 ac_check_lib_save_LIBS
=$LIBS
7502 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7503 cat >conftest.
$ac_ext <<_ACEOF
7506 cat confdefs.h
>>conftest.
$ac_ext
7507 cat >>conftest.
$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7510 /* Override any GCC internal prototype to avoid an error.
7511 Use char because int might match the return type of a GCC
7512 builtin and then its argument prototype would still apply. */
7516 char IceConnectionNumber ();
7520 return IceConnectionNumber ();
7525 rm -f conftest.
$ac_objext conftest
$ac_exeext
7526 if { (ac_try
="$ac_link"
7528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7532 $as_echo "$ac_try_echo") >&5
7533 (eval "$ac_link") 2>conftest.er1
7535 grep -v '^ *+' conftest.er1 >conftest.err
7537 cat conftest.err >&5
7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest$ac_exeext && {
7543 test "$cross_compiling" = yes ||
7544 $as_test_x conftest$ac_exeext
7546 ac_cv_lib_ICE_IceConnectionNumber=yes
7548 $as_echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_cv_lib_ICE_IceConnectionNumber=no
7554 rm -rf conftest.dSYM
7555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7556 conftest$ac_exeext conftest.$ac_ext
7557 LIBS=$ac_check_lib_save_LIBS
7559 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7560 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7561 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7562 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7565 LDFLAGS=$ac_save_LDFLAGS
7570 if test "$OS390Unix" = "yes"; then
7571 CFLAGS="$CFLAGS -W c,dll"
7572 LDFLAGS="$LDFLAGS -W l,dll"
7573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7577 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7578 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7579 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7580 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7581 X_LIBS="$X_LIBS -L$x_libraries"
7582 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7583 uname -r | grep '^5' >/dev/null; then
7584 X_LIBS="$X_LIBS -R $x_libraries"
7588 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7589 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7590 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7591 $as_echo "Corrected X includes to $x_includes" >&6; }
7592 X_CFLAGS="$X_CFLAGS -I$x_includes"
7595 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7596 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7597 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7600 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7601 $as_echo_n "checking if X11 header files can be found... " >&6; }
7603 CFLAGS="$CFLAGS $X_CFLAGS"
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7610 #include <X11/Xlib.h>
7611 #include <X11/Intrinsic.h>
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7624 *) ac_try_echo
=$ac_try;;
7626 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7627 $as_echo "$ac_try_echo") >&5
7628 (eval "$ac_compile") 2>conftest.er1
7630 grep -v '^ *+' conftest.er1
>conftest.err
7632 cat conftest.err
>&5
7633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.
$ac_objext; then
7638 { $as_echo "$as_me:$LINENO: result: yes" >&5
7639 $as_echo "yes" >&6; }
7641 $as_echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 { $as_echo "$as_me:$LINENO: result: no" >&5
7645 $as_echo "no" >&6; }; no_x
=yes
7648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7651 if test "${no_x-no}" = yes; then
7654 cat >>confdefs.h
<<\_ACEOF
7661 ac_save_LDFLAGS
="$LDFLAGS"
7662 LDFLAGS
="-L$x_libraries $LDFLAGS"
7664 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7665 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7666 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7667 $as_echo_n "(cached) " >&6
7669 ac_check_lib_save_LIBS
=$LIBS
7670 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7671 cat >conftest.
$ac_ext <<_ACEOF
7674 cat confdefs.h
>>conftest.
$ac_ext
7675 cat >>conftest.
$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7678 /* Override any GCC internal prototype to avoid an error.
7679 Use char because int might match the return type of a GCC
7680 builtin and then its argument prototype would still apply. */
7684 char _XdmcpAuthDoIt ();
7688 return _XdmcpAuthDoIt ();
7693 rm -f conftest.
$ac_objext conftest
$ac_exeext
7694 if { (ac_try
="$ac_link"
7696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7700 $as_echo "$ac_try_echo") >&5
7701 (eval "$ac_link") 2>conftest.er1
7703 grep -v '^ *+' conftest.er1 >conftest.err
7705 cat conftest.err >&5
7706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && {
7708 test -z "$ac_c_werror_flag" ||
7709 test ! -s conftest.err
7710 } && test -s conftest$ac_exeext && {
7711 test "$cross_compiling" = yes ||
7712 $as_test_x conftest$ac_exeext
7714 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7716 $as_echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7722 rm -rf conftest.dSYM
7723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7724 conftest$ac_exeext conftest.$ac_ext
7725 LIBS=$ac_check_lib_save_LIBS
7727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7728 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7729 if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
7730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7734 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7735 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7736 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7737 $as_echo_n "(cached) " >&6
7739 ac_check_lib_save_LIBS=$LIBS
7740 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7741 cat >conftest.$ac_ext <<_ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7748 /* Override any GCC internal prototype to avoid an error.
7749 Use char because int might match the return type of a GCC
7750 builtin and then its argument prototype would still apply. */
7754 char IceOpenConnection ();
7758 return IceOpenConnection ();
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (ac_try="$ac_link"
7766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7767 *) ac_try_echo
=$ac_try;;
7769 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7770 $as_echo "$ac_try_echo") >&5
7771 (eval "$ac_link") 2>conftest.er1
7773 grep -v '^ *+' conftest.er1
>conftest.err
7775 cat conftest.err
>&5
7776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest
$ac_exeext && {
7781 test "$cross_compiling" = yes ||
7782 $as_test_x conftest
$ac_exeext
7784 ac_cv_lib_ICE_IceOpenConnection
=yes
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.
$ac_ext >&5
7789 ac_cv_lib_ICE_IceOpenConnection
=no
7792 rm -rf conftest.dSYM
7793 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7794 conftest
$ac_exeext conftest.
$ac_ext
7795 LIBS
=$ac_check_lib_save_LIBS
7797 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7798 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7799 if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
7800 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7804 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7805 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7806 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7807 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7808 $as_echo_n "(cached) " >&6
7810 ac_check_lib_save_LIBS
=$LIBS
7811 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7812 cat >conftest.
$ac_ext <<_ACEOF
7815 cat confdefs.h
>>conftest.
$ac_ext
7816 cat >>conftest.
$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7819 /* Override any GCC internal prototype to avoid an error.
7820 Use char because int might match the return type of a GCC
7821 builtin and then its argument prototype would still apply. */
7825 char XpmCreatePixmapFromData ();
7829 return XpmCreatePixmapFromData ();
7834 rm -f conftest.
$ac_objext conftest
$ac_exeext
7835 if { (ac_try
="$ac_link"
7837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7838 *) ac_try_echo=$ac_try;;
7840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7841 $as_echo "$ac_try_echo") >&5
7842 (eval "$ac_link") 2>conftest.er1
7844 grep -v '^ *+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest$ac_exeext && {
7852 test "$cross_compiling" = yes ||
7853 $as_test_x conftest$ac_exeext
7855 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7857 $as_echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7863 rm -rf conftest.dSYM
7864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7865 conftest$ac_exeext conftest.$ac_ext
7866 LIBS=$ac_check_lib_save_LIBS
7868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7869 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7870 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
7871 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7875 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7876 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7878 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 #include <X11/Xlib.h>
7894 rm -f conftest.$ac_objext
7895 if { (ac_try="$ac_compile"
7897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7898 *) ac_try_echo
=$ac_try;;
7900 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7901 $as_echo "$ac_try_echo") >&5
7902 (eval "$ac_compile") 2>conftest.er1
7904 grep -v '^ *+' conftest.er1
>conftest.err
7906 cat conftest.err
>&5
7907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.
$ac_objext; then
7912 { $as_echo "$as_me:$LINENO: result: no" >&5
7913 $as_echo "no" >&6; }
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.
$ac_ext >&5
7918 CFLAGS
="$CFLAGS -Wno-implicit-int"
7919 cat >conftest.
$ac_ext <<_ACEOF
7922 cat confdefs.h
>>conftest.
$ac_ext
7923 cat >>conftest.
$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 #include <X11/Xlib.h>
7934 rm -f conftest.
$ac_objext
7935 if { (ac_try
="$ac_compile"
7937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7941 $as_echo "$ac_try_echo") >&5
7942 (eval "$ac_compile") 2>conftest.er1
7944 grep -v '^ *+' conftest.er1 >conftest.err
7946 cat conftest.err >&5
7947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest.$ac_objext; then
7952 { $as_echo "$as_me:$LINENO: result: yes" >&5
7953 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7955 $as_echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 { $as_echo "$as_me:$LINENO: result: test failed" >&5
7959 $as_echo "test failed" >&6; }
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 LDFLAGS="$ac_save_LDFLAGS"
7975 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
7977 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7978 $as_echo_n "checking --enable-gui argument... " >&6; }
7979 # Check whether --enable-gui was given.
7980 if test "${enable_gui+set}" = set; then
7981 enableval=$enable_gui;
7987 enable_gui_canon=`echo "_$enable_gui" | \
7988 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8000 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8002 case "$enable_gui_canon" in
8003 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8004 $as_echo "no GUI support" >&6; }
8006 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8007 $as_echo "yes - automatic GUI support" >&6; } ;;
8008 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8009 $as_echo "auto - automatic GUI support" >&6; } ;;
8010 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8011 $as_echo "Photon GUI support" >&6; } ;;
8012 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8013 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8017 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8019 case "$enable_gui_canon" in
8020 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8021 $as_echo "no GUI support" >&6; }
8023 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8024 $as_echo "yes - automatic GUI support" >&6; } ;;
8025 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8026 $as_echo "auto - automatic GUI support" >&6; } ;;
8027 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8028 $as_echo "Carbon GUI support" >&6; } ;;
8029 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8030 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8036 case "$enable_gui_canon" in
8037 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8038 $as_echo "no GUI support" >&6; } ;;
8039 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8040 $as_echo "yes/auto - automatic GUI support" >&6; }
8048 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8049 $as_echo "GTK+ 1.x GUI support" >&6; }
8051 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8052 $as_echo "GTK+ 2.x GUI support" >&6; }
8055 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8056 $as_echo "GNOME 1.x GUI support" >&6; }
8059 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8060 $as_echo "GNOME 2.x GUI support" >&6; }
8064 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8065 $as_echo "Motif GUI support" >&6; }
8067 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8068 $as_echo "Athena GUI support" >&6; }
8070 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8071 $as_echo "neXtaw GUI support" >&6; }
8073 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8074 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8079 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8080 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8081 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8082 # Check whether --enable-gtk-check was given.
8083 if test "${enable_gtk_check+set}" = set; then
8084 enableval=$enable_gtk_check;
8086 enable_gtk_check="yes"
8089 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8090 $as_echo "$enable_gtk_check" >&6; }
8091 if test "x$enable_gtk_check" = "xno"; then
8097 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8098 -a "$enable_gui_canon" != "gnome2"; then
8099 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8100 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8101 # Check whether --enable-gtk2-check was given.
8102 if test "${enable_gtk2_check+set}" = set; then
8103 enableval=$enable_gtk2_check;
8105 enable_gtk2_check="yes"
8108 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8109 $as_echo "$enable_gtk2_check" >&6; }
8110 if test "x$enable_gtk2_check" = "xno"; then
8115 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8116 -a "$enable_gui_canon" != "gnome2"; then
8117 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8118 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8119 # Check whether --enable-gnome-check was given.
8120 if test "${enable_gnome_check+set}" = set; then
8121 enableval=$enable_gnome_check;
8123 enable_gnome_check="no"
8126 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8127 $as_echo "$enable_gnome_check" >&6; }
8128 if test "x$enable_gnome_check" = "xno"; then
8133 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8134 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8135 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8136 # Check whether --enable-motif-check was given.
8137 if test "${enable_motif_check+set}" = set; then
8138 enableval=$enable_motif_check;
8140 enable_motif_check="yes"
8143 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8144 $as_echo "$enable_motif_check" >&6; }
8145 if test "x$enable_motif_check" = "xno"; then
8150 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8151 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8152 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8153 # Check whether --enable-athena-check was given.
8154 if test "${enable_athena_check+set}" = set; then
8155 enableval=$enable_athena_check;
8157 enable_athena_check="yes"
8160 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8161 $as_echo "$enable_athena_check" >&6; }
8162 if test "x$enable_athena_check" = "xno"; then
8167 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8168 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8169 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8170 # Check whether --enable-nextaw-check was given.
8171 if test "${enable_nextaw_check+set}" = set; then
8172 enableval=$enable_nextaw_check;
8174 enable_nextaw_check="yes"
8177 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8178 $as_echo "$enable_nextaw_check" >&6; };
8179 if test "x$enable_nextaw_check" = "xno"; then
8184 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8185 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8186 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8187 # Check whether --enable-carbon-check was given.
8188 if test "${enable_carbon_check+set}" = set; then
8189 enableval=$enable_carbon_check;
8191 enable_carbon_check="yes"
8194 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8195 $as_echo "$enable_carbon_check" >&6; };
8196 if test "x$enable_carbon_check" = "xno"; then
8202 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8203 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8204 $as_echo_n "checking for Carbon GUI... " >&6; }
8205 { $as_echo "$as_me:$LINENO: result: yes" >&5
8206 $as_echo "yes" >&6; };
8208 if test "$VIMNAME" = "vim"; then
8212 if test x$prefix = xNONE; then
8213 prefix=/Applications
8216 datadir='${prefix}/Vim.app/Contents/Resources'
8236 if test -z "$SKIP_GTK"; then
8238 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8239 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8241 # Check whether --with-gtk-prefix was given.
8242 if test "${with_gtk_prefix+set}" = set; then
8243 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8244 $as_echo "$gtk_config_prefix" >&6; }
8246 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8247 $as_echo "no" >&6; }
8251 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8252 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8254 # Check whether --with-gtk-exec-prefix was given.
8255 if test "${with_gtk_exec_prefix+set}" = set; then
8256 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8257 $as_echo "$gtk_config_prefix" >&6; }
8259 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8260 $as_echo "no" >&6; }
8264 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8265 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8266 # Check whether --enable-gtktest was given.
8267 if test "${enable_gtktest+set}" = set; then
8268 enableval=$enable_gtktest;
8273 if test "x$enable_gtktest" = "xyes" ; then
8274 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8275 $as_echo "gtk test enabled" >&6; }
8277 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8278 $as_echo "gtk test disabled" >&6; }
8281 if test "x$gtk_config_prefix" != "x" ; then
8282 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8283 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8285 if test "x$gtk_config_exec_prefix" != "x" ; then
8286 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8287 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8289 if test "X$GTK_CONFIG" = "X"; then
8290 # Extract the first word of "gtk-config", so it can be a program name with args.
8291 set dummy gtk-config; ac_word=$2
8292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8295 $as_echo_n "(cached) " >&6
8299 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8310 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8317 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8321 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8322 if test -n "$GTK_CONFIG"; then
8323 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8324 $as_echo "$GTK_CONFIG" >&6; }
8326 { $as_echo "$as_me:$LINENO: result: no" >&5
8327 $as_echo "no" >&6; }
8331 if test "X$GTK_CONFIG" = "Xno"; then
8332 # Extract the first word of "gtk12-config", so it can be a program name with args.
8333 set dummy gtk12-config; ac_word=$2
8334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8335 $as_echo_n "checking for $ac_word... " >&6; }
8336 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8337 $as_echo_n "(cached) " >&6
8339 case $GTK12_CONFIG in
8341 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8352 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8363 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8364 if test -n "$GTK12_CONFIG"; then
8365 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8366 $as_echo "$GTK12_CONFIG" >&6; }
8368 { $as_echo "$as_me:$LINENO: result: no" >&5
8369 $as_echo "no" >&6; }
8373 GTK_CONFIG="$GTK12_CONFIG"
8376 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8377 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8379 if test "X$PKG_CONFIG" = "X"; then
8380 # Extract the first word of "pkg-config", so it can be a program name with args.
8381 set dummy pkg-config; ac_word=$2
8382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8385 $as_echo_n "(cached) " >&6
8389 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 test -z "$as_dir" && as_dir=.
8397 for ac_exec_ext in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8412 if test -n "$PKG_CONFIG"; then
8413 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8414 $as_echo "$PKG_CONFIG" >&6; }
8416 { $as_echo "$as_me:$LINENO: result: no" >&5
8417 $as_echo "no" >&6; }
8423 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8424 if test "X$SKIP_GTK2" != "XYES"; then
8426 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8428 min_gtk_version=2.2.0
8429 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8430 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8432 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8433 && $PKG_CONFIG --exists gtk+-2.0; then
8435 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8436 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8437 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8438 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8439 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8440 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8441 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8442 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8443 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8445 elif test "X$GTK_CONFIG" != "Xno"; then
8447 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8449 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8450 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8451 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8452 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8453 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8454 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8455 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8461 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8463 ac_save_CFLAGS="$CFLAGS"
8464 ac_save_LIBS="$LIBS"
8465 CFLAGS="$CFLAGS $GTK_CFLAGS"
8466 LIBS="$LIBS $GTK_LIBS"
8469 if test "$cross_compiling" = yes; then
8470 echo $ac_n "cross compiling; assumed OK... $ac_c"
8472 cat >conftest.$ac_ext <<_ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8479 #include <gtk/gtk.h>
8482 # include <stdlib.h>
8483 # include <stddef.h>
8489 int major, minor, micro;
8492 system ("touch conf.gtktest");
8494 /* HP/UX 9 (%@#!) writes to sscanf strings */
8495 tmp_version = g_strdup("$min_gtk_version");
8496 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8497 printf("%s, bad version string\n", "$min_gtk_version");
8501 if ((gtk_major_version > major) ||
8502 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8503 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8504 (gtk_micro_version >= micro)))
8512 rm -f conftest$ac_exeext
8513 if { (ac_try="$ac_link"
8515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8516 *) ac_try_echo
=$ac_try;;
8518 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8519 $as_echo "$ac_try_echo") >&5
8520 (eval "$ac_link") 2>&5
8522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8524 { (case "(($ac_try" in
8525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8529 $as_echo "$ac_try_echo") >&5
8530 (eval "$ac_try") 2>&5
8532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8536 $as_echo "$as_me: program exited with status $ac_status" >&5
8537 $as_echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8543 rm -rf conftest.dSYM
8544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8548 CFLAGS="$ac_save_CFLAGS"
8549 LIBS="$ac_save_LIBS"
8552 if test "x$no_gtk" = x ; then
8553 if test "x$enable_gtktest" = "xyes"; then
8554 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8555 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8557 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8558 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8560 GUI_LIB_LOC="$GTK_LIBDIR"
8561 GTK_LIBNAME="$GTK_LIBS"
8562 GUI_INC_LOC="$GTK_CFLAGS"
8565 { $as_echo "$as_me:$LINENO: result: no" >&5
8566 $as_echo "no" >&6; }
8582 if test "x$GTK_CFLAGS" != "x"; then
8591 if test "x$GUITYPE" != "xGTK"; then
8594 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8596 min_gtk_version=1.1.16
8597 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8598 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8600 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8601 && $PKG_CONFIG --exists gtk+-2.0; then
8603 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8604 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8605 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8606 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8607 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8608 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8609 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8610 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8611 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8613 elif test "X$GTK_CONFIG" != "Xno"; then
8615 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8617 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8618 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8619 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8620 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8621 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8622 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8623 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8629 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8631 ac_save_CFLAGS="$CFLAGS"
8632 ac_save_LIBS="$LIBS"
8633 CFLAGS="$CFLAGS $GTK_CFLAGS"
8634 LIBS="$LIBS $GTK_LIBS"
8637 if test "$cross_compiling" = yes; then
8638 echo $ac_n "cross compiling; assumed OK... $ac_c"
8640 cat >conftest.$ac_ext <<_ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8647 #include <gtk/gtk.h>
8650 # include <stdlib.h>
8651 # include <stddef.h>
8657 int major, minor, micro;
8660 system ("touch conf.gtktest");
8662 /* HP/UX 9 (%@#!) writes to sscanf strings */
8663 tmp_version = g_strdup("$min_gtk_version");
8664 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8665 printf("%s, bad version string\n", "$min_gtk_version");
8669 if ((gtk_major_version > major) ||
8670 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8671 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8672 (gtk_micro_version >= micro)))
8680 rm -f conftest$ac_exeext
8681 if { (ac_try="$ac_link"
8683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8684 *) ac_try_echo
=$ac_try;;
8686 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8687 $as_echo "$ac_try_echo") >&5
8688 (eval "$ac_link") 2>&5
8690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8692 { (case "(($ac_try" in
8693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8697 $as_echo "$ac_try_echo") >&5
8698 (eval "$ac_try") 2>&5
8700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; }; then
8704 $as_echo "$as_me: program exited with status $ac_status" >&5
8705 $as_echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8711 rm -rf conftest.dSYM
8712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8716 CFLAGS="$ac_save_CFLAGS"
8717 LIBS="$ac_save_LIBS"
8720 if test "x$no_gtk" = x ; then
8721 if test "x$enable_gtktest" = "xyes"; then
8722 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8723 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8725 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8726 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8728 GTK_LIBNAME="$GTK_LIBS"
8729 GUI_INC_LOC="$GTK_CFLAGS"
8732 { $as_echo "$as_me:$LINENO: result: no" >&5
8733 $as_echo "no" >&6; }
8749 if test "x$GTK_CFLAGS" != "x"; then
8758 if test "x$GUITYPE" = "xGTK"; then
8759 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8760 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8761 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8762 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8765 if test "0$gtk_major_version" -ge 2; then
8766 cat >>confdefs.h <<\_ACEOF
8770 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8771 || test "0$gtk_minor_version" -ge 2 \
8772 || test "0$gtk_major_version" -gt 2; then
8773 cat >>confdefs.h <<\_ACEOF
8774 #define HAVE_GTK_MULTIHEAD 1
8779 if test -z "$SKIP_GNOME"; then
8787 # Check whether --with-gnome-includes was given.
8788 if test "${with_gnome_includes+set}" = set; then
8789 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8795 # Check whether --with-gnome-libs was given.
8796 if test "${with_gnome_libs+set}" = set; then
8797 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8803 # Check whether --with-gnome was given.
8804 if test "${with_gnome+set}" = set; then
8805 withval=$with_gnome; if test x$withval = xyes; then
8809 if test "x$withval" = xno; then
8813 LDFLAGS="$LDFLAGS -L$withval/lib"
8814 CFLAGS="$CFLAGS -I$withval/include"
8815 gnome_prefix=$withval/lib
8823 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8825 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8826 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8827 if $PKG_CONFIG --exists libgnomeui-2.0; then
8828 { $as_echo "$as_me:$LINENO: result: yes" >&5
8829 $as_echo "yes" >&6; }
8830 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
8831 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
8832 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
8834 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8835 $as_echo_n "checking for FreeBSD... " >&6; }
8836 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
8837 { $as_echo "$as_me:$LINENO: result: yes" >&5
8838 $as_echo "yes" >&6; }
8839 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8840 GNOME_LIBS="$GNOME_LIBS -pthread"
8842 { $as_echo "$as_me:$LINENO: result: no" >&5
8843 $as_echo "no" >&6; }
8847 { $as_echo "$as_me:$LINENO: result: not found" >&5
8848 $as_echo "not found" >&6; }
8849 if test "x" = xfail; then
8850 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8851 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8852 { (exit 1); exit 1; }; }
8856 elif test "x$want_gnome" = xyes; then
8858 # Extract the first word of "gnome-config", so it can be a program name with args.
8859 set dummy gnome-config; ac_word=$2
8860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8861 $as_echo_n "checking for $ac_word... " >&6; }
8862 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8863 $as_echo_n "(cached) " >&6
8865 case $GNOME_CONFIG in
8867 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8889 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8890 if test -n "$GNOME_CONFIG"; then
8891 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8892 $as_echo "$GNOME_CONFIG" >&6; }
8894 { $as_echo "$as_me:$LINENO: result: no" >&5
8895 $as_echo "no" >&6; }
8899 if test "$GNOME_CONFIG" = "no"; then
8900 no_gnome_config="yes"
8902 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8903 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
8904 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
8905 { $as_echo "$as_me:$LINENO: result: yes" >&5
8906 $as_echo "yes" >&6; }
8907 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
8908 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
8909 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
8912 { $as_echo "$as_me:$LINENO: result: no" >&5
8913 $as_echo "no" >&6; }
8914 no_gnome_config="yes"
8918 if test x$exec_prefix = xNONE; then
8919 if test x$prefix = xNONE; then
8920 gnome_prefix=$ac_default_prefix/lib
8922 gnome_prefix=$prefix/lib
8925 gnome_prefix=`eval echo \
`echo $libdir\``
8928 if test "$no_gnome_config" = "yes"; then
8929 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8930 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
8931 if test -f $gnome_prefix/gnomeConf.sh; then
8932 { $as_echo "$as_me:$LINENO: result: found" >&5
8933 $as_echo "found" >&6; }
8934 echo "loading gnome configuration from" \
8935 "$gnome_prefix/gnomeConf.sh"
8936 . $gnome_prefix/gnomeConf.sh
8939 { $as_echo "$as_me:$LINENO: result: not found" >&5
8940 $as_echo "not found" >&6; }
8941 if test x = xfail; then
8942 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8943 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8944 { (exit 1); exit 1; }; }
8951 if test x$have_gnome = xyes ; then
8952 cat >>confdefs.h <<\_ACEOF
8953 #define FEAT_GUI_GNOME 1
8956 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8957 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8967 if test -z "$SKIP_MOTIF"; then
8968 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"
8969 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
8971 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8972 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
8973 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
8975 for try in $gui_includes; do
8976 if test -f "$try/Xm/Xm.h"; then
8980 if test -n "$GUI_INC_LOC"; then
8981 if test "$GUI_INC_LOC" = /usr/include; then
8983 { $as_echo "$as_me:$LINENO: result: in default path" >&5
8984 $as_echo "in default path" >&6; }
8986 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8987 $as_echo "$GUI_INC_LOC" >&6; }
8990 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
8991 $as_echo "<not found>" >&6; }
8997 if test -z "$SKIP_MOTIF"; then
8998 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8999 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9001 # Check whether --with-motif-lib was given.
9002 if test "${with_motif_lib+set}" = set; then
9003 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9007 if test -n "$MOTIF_LIBNAME"; then
9008 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9009 $as_echo "$MOTIF_LIBNAME" >&6; }
9012 { $as_echo "$as_me:$LINENO: result: no" >&5
9013 $as_echo "no" >&6; }
9015 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9017 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9018 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9019 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"
9021 for try in $gui_libs; do
9022 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9023 if test -f "$libtry"; then
9028 if test -n "$GUI_LIB_LOC"; then
9029 if test "$GUI_LIB_LOC" = /usr/lib; then
9031 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9032 $as_echo "in default path" >&6; }
9034 if test -n "$GUI_LIB_LOC"; then
9035 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9036 $as_echo "$GUI_LIB_LOC" >&6; }
9037 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9038 uname -r | grep '^5' >/dev/null; then
9039 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9045 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9046 $as_echo "<not found>" >&6; }
9052 if test -z "$SKIP_MOTIF"; then
9062 if test -z "$SKIP_ATHENA"; then
9063 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9064 $as_echo_n "checking if Athena header files can be found... " >&6; }
9066 CFLAGS="$CFLAGS $X_CFLAGS"
9067 cat >conftest.$ac_ext <<_ACEOF
9070 cat confdefs.h >>conftest.$ac_ext
9071 cat >>conftest.$ac_ext <<_ACEOF
9072 /* end confdefs.h. */
9074 #include <X11/Intrinsic.h>
9075 #include <X11/Xaw/Paned.h>
9084 rm -f conftest.$ac_objext
9085 if { (ac_try="$ac_compile"
9087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9088 *) ac_try_echo
=$ac_try;;
9090 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9091 $as_echo "$ac_try_echo") >&5
9092 (eval "$ac_compile") 2>conftest.er1
9094 grep -v '^ *+' conftest.er1
>conftest.err
9096 cat conftest.err
>&5
9097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } && {
9099 test -z "$ac_c_werror_flag" ||
9100 test ! -s conftest.err
9101 } && test -s conftest.
$ac_objext; then
9102 { $as_echo "$as_me:$LINENO: result: yes" >&5
9103 $as_echo "yes" >&6; }
9105 $as_echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.
$ac_ext >&5
9108 { $as_echo "$as_me:$LINENO: result: no" >&5
9109 $as_echo "no" >&6; }; SKIP_ATHENA
=YES
9112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9116 if test -z "$SKIP_ATHENA"; then
9120 if test -z "$SKIP_NEXTAW"; then
9121 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9122 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9124 CFLAGS
="$CFLAGS $X_CFLAGS"
9125 cat >conftest.
$ac_ext <<_ACEOF
9128 cat confdefs.h
>>conftest.
$ac_ext
9129 cat >>conftest.
$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9132 #include <X11/Intrinsic.h>
9133 #include <X11/neXtaw/Paned.h>
9142 rm -f conftest.
$ac_objext
9143 if { (ac_try
="$ac_compile"
9145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9149 $as_echo "$ac_try_echo") >&5
9150 (eval "$ac_compile") 2>conftest.er1
9152 grep -v '^ *+' conftest.er1 >conftest.err
9154 cat conftest.err >&5
9155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest.$ac_objext; then
9160 { $as_echo "$as_me:$LINENO: result: yes" >&5
9161 $as_echo "yes" >&6; }
9163 $as_echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 { $as_echo "$as_me:$LINENO: result: no" >&5
9167 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9174 if test -z "$SKIP_NEXTAW"; then
9178 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9179 if test -n "$GUI_INC_LOC"; then
9180 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9182 if test -n "$GUI_LIB_LOC"; then
9183 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9186 ldflags_save=$LDFLAGS
9187 LDFLAGS="$X_LIBS $LDFLAGS"
9188 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9189 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9190 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9191 $as_echo_n "(cached) " >&6
9193 ac_check_lib_save_LIBS=$LIBS
9194 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9195 cat >conftest.$ac_ext <<_ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9202 /* Override any GCC internal prototype to avoid an error.
9203 Use char because int might match the return type of a GCC
9204 builtin and then its argument prototype would still apply. */
9208 char XShapeQueryExtension ();
9212 return XShapeQueryExtension ();
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (ac_try="$ac_link"
9220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9221 *) ac_try_echo
=$ac_try;;
9223 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9224 $as_echo "$ac_try_echo") >&5
9225 (eval "$ac_link") 2>conftest.er1
9227 grep -v '^ *+' conftest.er1
>conftest.err
9229 cat conftest.err
>&5
9230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } && {
9232 test -z "$ac_c_werror_flag" ||
9233 test ! -s conftest.err
9234 } && test -s conftest
$ac_exeext && {
9235 test "$cross_compiling" = yes ||
9236 $as_test_x conftest
$ac_exeext
9238 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9240 $as_echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.
$ac_ext >&5
9243 ac_cv_lib_Xext_XShapeQueryExtension
=no
9246 rm -rf conftest.dSYM
9247 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9248 conftest
$ac_exeext conftest.
$ac_ext
9249 LIBS
=$ac_check_lib_save_LIBS
9251 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9252 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9253 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9257 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9258 $as_echo_n "checking for wslen in -lw... " >&6; }
9259 if test "${ac_cv_lib_w_wslen+set}" = set; then
9260 $as_echo_n "(cached) " >&6
9262 ac_check_lib_save_LIBS
=$LIBS
9263 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9264 cat >conftest.
$ac_ext <<_ACEOF
9267 cat confdefs.h
>>conftest.
$ac_ext
9268 cat >>conftest.
$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9271 /* Override any GCC internal prototype to avoid an error.
9272 Use char because int might match the return type of a GCC
9273 builtin and then its argument prototype would still apply. */
9286 rm -f conftest.
$ac_objext conftest
$ac_exeext
9287 if { (ac_try
="$ac_link"
9289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9293 $as_echo "$ac_try_echo") >&5
9294 (eval "$ac_link") 2>conftest.er1
9296 grep -v '^ *+' conftest.er1 >conftest.err
9298 cat conftest.err >&5
9299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } && {
9301 test -z "$ac_c_werror_flag" ||
9302 test ! -s conftest.err
9303 } && test -s conftest$ac_exeext && {
9304 test "$cross_compiling" = yes ||
9305 $as_test_x conftest$ac_exeext
9307 ac_cv_lib_w_wslen=yes
9309 $as_echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9312 ac_cv_lib_w_wslen=no
9315 rm -rf conftest.dSYM
9316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9317 conftest$ac_exeext conftest.$ac_ext
9318 LIBS=$ac_check_lib_save_LIBS
9320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9321 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9322 if test $ac_cv_lib_w_wslen = yes; then
9323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9326 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9327 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9328 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9329 $as_echo_n "(cached) " >&6
9331 ac_check_lib_save_LIBS=$LIBS
9332 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9333 cat >conftest.$ac_ext <<_ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9340 /* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
9355 rm -f conftest.$ac_objext conftest$ac_exeext
9356 if { (ac_try="$ac_link"
9358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9359 *) ac_try_echo
=$ac_try;;
9361 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9362 $as_echo "$ac_try_echo") >&5
9363 (eval "$ac_link") 2>conftest.er1
9365 grep -v '^ *+' conftest.er1
>conftest.err
9367 cat conftest.err
>&5
9368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } && {
9370 test -z "$ac_c_werror_flag" ||
9371 test ! -s conftest.err
9372 } && test -s conftest
$ac_exeext && {
9373 test "$cross_compiling" = yes ||
9374 $as_test_x conftest
$ac_exeext
9376 ac_cv_lib_dl_dlsym
=yes
9378 $as_echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.
$ac_ext >&5
9381 ac_cv_lib_dl_dlsym
=no
9384 rm -rf conftest.dSYM
9385 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9386 conftest
$ac_exeext conftest.
$ac_ext
9387 LIBS
=$ac_check_lib_save_LIBS
9389 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9390 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9391 if test $ac_cv_lib_dl_dlsym = yes; then
9392 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9395 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9396 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9397 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9398 $as_echo_n "(cached) " >&6
9400 ac_check_lib_save_LIBS
=$LIBS
9401 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9402 cat >conftest.
$ac_ext <<_ACEOF
9405 cat confdefs.h
>>conftest.
$ac_ext
9406 cat >>conftest.
$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 /* Override any GCC internal prototype to avoid an error.
9410 Use char because int might match the return type of a GCC
9411 builtin and then its argument prototype would still apply. */
9415 char XmuCreateStippledPixmap ();
9419 return XmuCreateStippledPixmap ();
9424 rm -f conftest.
$ac_objext conftest
$ac_exeext
9425 if { (ac_try
="$ac_link"
9427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9431 $as_echo "$ac_try_echo") >&5
9432 (eval "$ac_link") 2>conftest.er1
9434 grep -v '^ *+' conftest.er1 >conftest.err
9436 cat conftest.err >&5
9437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } && {
9439 test -z "$ac_c_werror_flag" ||
9440 test ! -s conftest.err
9441 } && test -s conftest$ac_exeext && {
9442 test "$cross_compiling" = yes ||
9443 $as_test_x conftest$ac_exeext
9445 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9447 $as_echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9453 rm -rf conftest.dSYM
9454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9455 conftest$ac_exeext conftest.$ac_ext
9456 LIBS=$ac_check_lib_save_LIBS
9458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9459 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9460 if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
9461 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9464 if test -z "$SKIP_MOTIF"; then
9465 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9466 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9467 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9468 $as_echo_n "(cached) " >&6
9470 ac_check_lib_save_LIBS=$LIBS
9471 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9472 cat >conftest.$ac_ext <<_ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (ac_try="$ac_link"
9497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9498 *) ac_try_echo
=$ac_try;;
9500 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9501 $as_echo "$ac_try_echo") >&5
9502 (eval "$ac_link") 2>conftest.er1
9504 grep -v '^ *+' conftest.er1
>conftest.err
9506 cat conftest.err
>&5
9507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && {
9509 test -z "$ac_c_werror_flag" ||
9510 test ! -s conftest.err
9511 } && test -s conftest
$ac_exeext && {
9512 test "$cross_compiling" = yes ||
9513 $as_test_x conftest
$ac_exeext
9515 ac_cv_lib_Xp_XpEndJob
=yes
9517 $as_echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.
$ac_ext >&5
9520 ac_cv_lib_Xp_XpEndJob
=no
9523 rm -rf conftest.dSYM
9524 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9525 conftest
$ac_exeext conftest.
$ac_ext
9526 LIBS
=$ac_check_lib_save_LIBS
9528 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9529 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9530 if test $ac_cv_lib_Xp_XpEndJob = yes; then
9531 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9535 LDFLAGS
=$ldflags_save
9537 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9538 $as_echo_n "checking for extra X11 defines... " >&6; }
9541 if mkdir conftestdir
; then
9543 cat > Imakefile
<<'EOF'
9545 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9547 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9548 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9553 if test -z "$NARROW_PROTO"; then
9554 { $as_echo "$as_me:$LINENO: result: no" >&5
9555 $as_echo "no" >&6; }
9557 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9558 $as_echo "$NARROW_PROTO" >&6; }
9563 if test "$enable_xsmp" = "yes"; then
9564 cppflags_save
=$CPPFLAGS
9565 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9567 for ac_header
in X11
/SM
/SMlib.h
9569 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9570 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9572 $as_echo_n "checking for $ac_header... " >&6; }
9573 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9574 $as_echo_n "(cached) " >&6
9576 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9577 $as_echo "$as_val"'`
9578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9579 $as_echo "$ac_res" >&6; }
9581 # Is the header compilable?
9582 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9583 $as_echo_n "checking $ac_header usability... " >&6; }
9584 cat >conftest.
$ac_ext <<_ACEOF
9587 cat confdefs.h
>>conftest.
$ac_ext
9588 cat >>conftest.
$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 $ac_includes_default
9591 #include <$ac_header>
9593 rm -f conftest.
$ac_objext
9594 if { (ac_try
="$ac_compile"
9596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9600 $as_echo "$ac_try_echo") >&5
9601 (eval "$ac_compile") 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest.$ac_objext; then
9611 ac_header_compiler=yes
9613 $as_echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_header_compiler=no
9619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9621 $as_echo "$ac_header_compiler" >&6; }
9623 # Is the header present?
9624 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9625 $as_echo_n "checking $ac_header presence... " >&6; }
9626 cat >conftest.$ac_ext <<_ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 #include <$ac_header>
9634 if { (ac_try="$ac_cpp conftest.$ac_ext"
9636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9637 *) ac_try_echo
=$ac_try;;
9639 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9640 $as_echo "$ac_try_echo") >&5
9641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9643 grep -v '^ *+' conftest.er1
>conftest.err
9645 cat conftest.err
>&5
9646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } >/dev
/null
&& {
9648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9651 ac_header_preproc
=yes
9653 $as_echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.
$ac_ext >&5
9656 ac_header_preproc
=no
9659 rm -f conftest.err conftest.
$ac_ext
9660 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9661 $as_echo "$ac_header_preproc" >&6; }
9663 # So? What about this header?
9664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9667 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9670 ac_header_preproc
=yes
9673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9674 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9676 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9678 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9680 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9682 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9684 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9688 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9689 $as_echo_n "checking for $ac_header... " >&6; }
9690 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9691 $as_echo_n "(cached) " >&6
9693 eval "$as_ac_Header=\$ac_header_preproc"
9695 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9696 $as_echo "$as_val"'`
9697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9698 $as_echo "$ac_res" >&6; }
9701 if test `eval 'as_val=${'$as_ac_Header'}
9702 $as_echo "$as_val"'` = yes; then
9703 cat >>confdefs.h
<<_ACEOF
9704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9711 CPPFLAGS
=$cppflags_save
9715 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9716 cppflags_save
=$CPPFLAGS
9717 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9720 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9722 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9723 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9724 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9725 $as_echo_n "checking for $ac_header... " >&6; }
9726 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9727 $as_echo_n "(cached) " >&6
9729 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9730 $as_echo "$as_val"'`
9731 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9732 $as_echo "$ac_res" >&6; }
9734 # Is the header compilable?
9735 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9736 $as_echo_n "checking $ac_header usability... " >&6; }
9737 cat >conftest.
$ac_ext <<_ACEOF
9740 cat confdefs.h
>>conftest.
$ac_ext
9741 cat >>conftest.
$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 #include <$ac_header>
9746 rm -f conftest.
$ac_objext
9747 if { (ac_try
="$ac_compile"
9749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9753 $as_echo "$ac_try_echo") >&5
9754 (eval "$ac_compile") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1 >conftest.err
9758 cat conftest.err >&5
9759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest.$ac_objext; then
9764 ac_header_compiler=yes
9766 $as_echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 ac_header_compiler=no
9772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9774 $as_echo "$ac_header_compiler" >&6; }
9776 # Is the header present?
9777 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9778 $as_echo_n "checking $ac_header presence... " >&6; }
9779 cat >conftest.$ac_ext <<_ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 #include <$ac_header>
9787 if { (ac_try="$ac_cpp conftest.$ac_ext"
9789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9790 *) ac_try_echo
=$ac_try;;
9792 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1
>conftest.err
9798 cat conftest.err
>&5
9799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } >/dev
/null
&& {
9801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9804 ac_header_preproc
=yes
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.
$ac_ext >&5
9809 ac_header_preproc
=no
9812 rm -f conftest.err conftest.
$ac_ext
9813 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9814 $as_echo "$ac_header_preproc" >&6; }
9816 # So? What about this header?
9817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9820 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9822 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9823 ac_header_preproc
=yes
9826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9827 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9829 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9831 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9833 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9835 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9837 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9841 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9842 $as_echo_n "checking for $ac_header... " >&6; }
9843 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9844 $as_echo_n "(cached) " >&6
9846 eval "$as_ac_Header=\$ac_header_preproc"
9848 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9849 $as_echo "$as_val"'`
9850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9851 $as_echo "$ac_res" >&6; }
9854 if test `eval 'as_val=${'$as_ac_Header'}
9855 $as_echo "$as_val"'` = yes; then
9856 cat >>confdefs.h
<<_ACEOF
9857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9865 if test ! "$enable_xim" = "no"; then
9866 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9867 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9868 cat >conftest.
$ac_ext <<_ACEOF
9871 cat confdefs.h
>>conftest.
$ac_ext
9872 cat >>conftest.
$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <X11/Xlib.h>
9876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9877 $EGREP "XIMText" >/dev
/null
2>&1; then
9878 { $as_echo "$as_me:$LINENO: result: yes" >&5
9879 $as_echo "yes" >&6; }
9881 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9882 $as_echo "no; xim has been disabled" >&6; }; enable_xim
= "no"
9887 CPPFLAGS
=$cppflags_save
9889 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9890 -a "x$GUITYPE" != "xNONE" ; then
9891 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9892 $as_echo "X GUI selected; xim has been enabled" >&6; }
9897 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9898 cppflags_save
=$CPPFLAGS
9899 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9900 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9901 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
9902 cat >conftest.
$ac_ext <<_ACEOF
9905 cat confdefs.h
>>conftest.
$ac_ext
9906 cat >>conftest.
$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9909 #include <X11/Intrinsic.h>
9910 #include <X11/Xmu/Editres.h>
9919 rm -f conftest.
$ac_objext
9920 if { (ac_try
="$ac_compile"
9922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9926 $as_echo "$ac_try_echo") >&5
9927 (eval "$ac_compile") 2>conftest.er1
9929 grep -v '^ *+' conftest.er1 >conftest.err
9931 cat conftest.err >&5
9932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } && {
9934 test -z "$ac_c_werror_flag" ||
9935 test ! -s conftest.err
9936 } && test -s conftest.$ac_objext; then
9937 { $as_echo "$as_me:$LINENO: result: yes" >&5
9938 $as_echo "yes" >&6; }
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_X11_XMU_EDITRES_H 1
9944 $as_echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9947 { $as_echo "$as_me:$LINENO: result: no" >&5
9948 $as_echo "no" >&6; }
9951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9952 CPPFLAGS=$cppflags_save
9955 if test -z "$SKIP_MOTIF"; then
9956 cppflags_save=$CPPFLAGS
9957 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9965 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9966 Xm/UnhighlightT.h Xm/Notebook.h
9968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9971 $as_echo_n "checking for $ac_header... " >&6; }
9972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9973 $as_echo_n "(cached) " >&6
9975 ac_res=`eval 'as_val=${'$as_ac_Header'}
9976 $as_echo "$as_val"'`
9977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9978 $as_echo "$ac_res" >&6; }
9980 # Is the header compilable?
9981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9982 $as_echo_n "checking $ac_header usability... " >&6; }
9983 cat >conftest.$ac_ext <<_ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 $ac_includes_default
9990 #include <$ac_header>
9992 rm -f conftest.$ac_objext
9993 if { (ac_try="$ac_compile"
9995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9996 *) ac_try_echo
=$ac_try;;
9998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9999 $as_echo "$ac_try_echo") >&5
10000 (eval "$ac_compile") 2>conftest.er1
10002 grep -v '^ *+' conftest.er1
>conftest.err
10004 cat conftest.err
>&5
10005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest.
$ac_objext; then
10010 ac_header_compiler
=yes
10012 $as_echo "$as_me: failed program was:" >&5
10013 sed 's/^/| /' conftest.
$ac_ext >&5
10015 ac_header_compiler
=no
10018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10020 $as_echo "$ac_header_compiler" >&6; }
10022 # Is the header present?
10023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10024 $as_echo_n "checking $ac_header presence... " >&6; }
10025 cat >conftest.
$ac_ext <<_ACEOF
10028 cat confdefs.h
>>conftest.
$ac_ext
10029 cat >>conftest.
$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 #include <$ac_header>
10033 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10034 case "(($ac_try" in
10035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10036 *) ac_try_echo=$ac_try;;
10038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10039 $as_echo "$ac_try_echo") >&5
10040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10042 grep -v '^ *+' conftest.er1 >conftest.err
10044 cat conftest.err >&5
10045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } >/dev/null && {
10047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10048 test ! -s conftest.err
10050 ac_header_preproc=yes
10052 $as_echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ac_header_preproc=no
10058 rm -f conftest.err conftest.$ac_ext
10059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10060 $as_echo "$ac_header_preproc" >&6; }
10062 # So? What about this header?
10063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10069 ac_header_preproc=yes
10072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10075 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10079 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10088 $as_echo_n "checking for $ac_header... " >&6; }
10089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10090 $as_echo_n "(cached) " >&6
10092 eval "$as_ac_Header=\$ac_header_preproc"
10094 ac_res=`eval 'as_val=${'$as_ac_Header'}
10095 $as_echo "$as_val"'`
10096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10097 $as_echo "$ac_res" >&6; }
10100 if test `eval 'as_val=${'$as_ac_Header'}
10101 $as_echo "$as_val"'` = yes; then
10102 cat >>confdefs.h <<_ACEOF
10103 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10111 if test $ac_cv_header_Xm_XpmP_h = yes; then
10112 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10113 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10114 cat >conftest.$ac_ext <<_ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h. */
10120 #include <Xm/XpmP.h>
10124 XpmAttributes_21 attr;
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 { $as_echo "$as_me:$LINENO: result: yes" >&5
10148 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10149 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10153 $as_echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.
$ac_ext >&5
10156 { $as_echo "$as_me:$LINENO: result: no" >&5
10157 $as_echo "no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10158 #define XPMATTRIBUTES_TYPE XpmAttributes
10164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10166 cat >>confdefs.h
<<\_ACEOF
10167 #define XPMATTRIBUTES_TYPE XpmAttributes
10171 CPPFLAGS
=$cppflags_save
10174 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10175 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10176 $as_echo "no GUI selected; xim has been disabled" >&6; }
10179 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10180 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10181 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10182 enable_fontset
="no"
10184 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10185 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10186 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10187 enable_fontset
="no"
10190 if test -z "$SKIP_PHOTON"; then
10199 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10200 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10201 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10202 { (exit 1); exit 1; }; }
10205 if test "$enable_xim" = "yes"; then
10206 cat >>confdefs.h
<<\_ACEOF
10211 if test "$enable_fontset" = "yes"; then
10212 cat >>confdefs.h
<<\_ACEOF
10213 #define FEAT_XFONTSET 1
10221 if test "$enable_hangulinput" = "yes"; then
10222 if test "x$GUITYPE" = "xNONE"; then
10223 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10224 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10225 enable_hangulinput
=no
10227 cat >>confdefs.h
<<\_ACEOF
10228 #define FEAT_HANGULIN 1
10231 HANGULIN_SRC
=hangulin.c
10233 HANGULIN_OBJ
=objects
/hangulin.o
10239 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10240 $as_echo_n "checking whether toupper is broken... " >&6; }
10241 if test "${vim_cv_toupper_broken+set}" = set; then
10242 $as_echo_n "(cached) " >&6
10245 if test "$cross_compiling" = yes; then
10247 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10248 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10249 { (exit 1); exit 1; }; }
10252 cat >conftest.
$ac_ext <<_ACEOF
10254 #include "confdefs.h"
10257 # include <stdlib.h>
10258 # include <stddef.h>
10260 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10263 rm -f conftest
$ac_exeext
10264 if { (ac_try
="$ac_link"
10265 case "(($ac_try" in
10266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10270 $as_echo "$ac_try_echo") >&5
10271 (eval "$ac_link") 2>&5
10273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10275 { (case "(($ac_try" in
10276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10277 *) ac_try_echo
=$ac_try;;
10279 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10280 $as_echo "$ac_try_echo") >&5
10281 (eval "$ac_try") 2>&5
10283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10286 vim_cv_toupper_broken
=yes
10289 $as_echo "$as_me: program exited with status $ac_status" >&5
10290 $as_echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.
$ac_ext >&5
10293 ( exit $ac_status )
10295 vim_cv_toupper_broken
=no
10298 rm -rf conftest.dSYM
10299 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10304 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10305 $as_echo "$vim_cv_toupper_broken" >&6; }
10307 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10308 cat >>confdefs.h
<<\_ACEOF
10309 #define BROKEN_TOUPPER 1
10314 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10315 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10316 cat >conftest.
$ac_ext <<_ACEOF
10319 cat confdefs.h
>>conftest.
$ac_ext
10320 cat >>conftest.
$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10326 printf("(" __DATE__ " " __TIME__ ")");
10331 rm -f conftest.
$ac_objext
10332 if { (ac_try
="$ac_compile"
10333 case "(($ac_try" in
10334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10338 $as_echo "$ac_try_echo") >&5
10339 (eval "$ac_compile") 2>conftest.er1
10341 grep -v '^ *+' conftest.er1 >conftest.err
10343 cat conftest.err >&5
10344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest.$ac_objext; then
10349 { $as_echo "$as_me:$LINENO: result: yes" >&5
10350 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10351 #define HAVE_DATE_TIME 1
10355 $as_echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 { $as_echo "$as_me:$LINENO: result: no" >&5
10359 $as_echo "no" >&6; }
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10364 if test "${ac_cv_header_elf_h+set}" = set; then
10365 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10366 $as_echo_n "checking for elf.h... " >&6; }
10367 if test "${ac_cv_header_elf_h+set}" = set; then
10368 $as_echo_n "(cached) " >&6
10370 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10371 $as_echo "$ac_cv_header_elf_h" >&6; }
10373 # Is the header compilable?
10374 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10375 $as_echo_n "checking elf.h usability... " >&6; }
10376 cat >conftest.$ac_ext <<_ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h. */
10382 $ac_includes_default
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10389 *) ac_try_echo
=$ac_try;;
10391 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10392 $as_echo "$ac_try_echo") >&5
10393 (eval "$ac_compile") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1
>conftest.err
10397 cat conftest.err
>&5
10398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && {
10400 test -z "$ac_c_werror_flag" ||
10401 test ! -s conftest.err
10402 } && test -s conftest.
$ac_objext; then
10403 ac_header_compiler
=yes
10405 $as_echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.
$ac_ext >&5
10408 ac_header_compiler
=no
10411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10412 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10413 $as_echo "$ac_header_compiler" >&6; }
10415 # Is the header present?
10416 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10417 $as_echo_n "checking elf.h presence... " >&6; }
10418 cat >conftest.
$ac_ext <<_ACEOF
10421 cat confdefs.h
>>conftest.
$ac_ext
10422 cat >>conftest.
$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10426 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10427 case "(($ac_try" in
10428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10432 $as_echo "$ac_try_echo") >&5
10433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } >/dev/null && {
10440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10443 ac_header_preproc=yes
10445 $as_echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 ac_header_preproc=no
10451 rm -f conftest.err conftest.$ac_ext
10452 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10453 $as_echo "$ac_header_preproc" >&6; }
10455 # So? What about this header?
10456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10458 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10459 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10460 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10461 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10462 ac_header_preproc=yes
10465 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10466 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10467 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10468 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10469 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10470 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10471 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10472 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10473 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10474 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10475 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10476 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10480 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10481 $as_echo_n "checking for elf.h... " >&6; }
10482 if test "${ac_cv_header_elf_h+set}" = set; then
10483 $as_echo_n "(cached) " >&6
10485 ac_cv_header_elf_h=$ac_header_preproc
10487 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10488 $as_echo "$ac_cv_header_elf_h" >&6; }
10491 if test $ac_cv_header_elf_h = yes; then
10496 if test "$HAS_ELF" = 1; then
10498 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10499 $as_echo_n "checking for main in -lelf... " >&6; }
10500 if test "${ac_cv_lib_elf_main+set}" = set; then
10501 $as_echo_n "(cached) " >&6
10503 ac_check_lib_save_LIBS=$LIBS
10505 cat >conftest.$ac_ext <<_ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10521 rm -f conftest.$ac_objext conftest$ac_exeext
10522 if { (ac_try="$ac_link"
10523 case "(($ac_try" in
10524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10525 *) ac_try_echo
=$ac_try;;
10527 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10528 $as_echo "$ac_try_echo") >&5
10529 (eval "$ac_link") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1
>conftest.err
10533 cat conftest.err
>&5
10534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest
$ac_exeext && {
10539 test "$cross_compiling" = yes ||
10540 $as_test_x conftest
$ac_exeext
10542 ac_cv_lib_elf_main
=yes
10544 $as_echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.
$ac_ext >&5
10547 ac_cv_lib_elf_main
=no
10550 rm -rf conftest.dSYM
10551 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10552 conftest
$ac_exeext conftest.
$ac_ext
10553 LIBS
=$ac_check_lib_save_LIBS
10555 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10556 $as_echo "$ac_cv_lib_elf_main" >&6; }
10557 if test $ac_cv_lib_elf_main = yes; then
10558 cat >>confdefs.h
<<_ACEOF
10559 #define HAVE_LIBELF 1
10573 ac_header_dirent
=no
10574 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
10575 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10576 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10577 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10578 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10579 $as_echo_n "(cached) " >&6
10581 cat >conftest.
$ac_ext <<_ACEOF
10584 cat confdefs.h
>>conftest.
$ac_ext
10585 cat >>conftest.
$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 #include <sys/types.h>
10599 rm -f conftest.
$ac_objext
10600 if { (ac_try
="$ac_compile"
10601 case "(($ac_try" in
10602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10606 $as_echo "$ac_try_echo") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10609 grep -v '^ *+' conftest.er1 >conftest.err
10611 cat conftest.err >&5
10612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest.$ac_objext; then
10617 eval "$as_ac_Header=yes"
10619 $as_echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 eval "$as_ac_Header=no"
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 ac_res=`eval 'as_val=${'$as_ac_Header'}
10628 $as_echo "$as_val"'`
10629 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10630 $as_echo "$ac_res" >&6; }
10631 if test `eval 'as_val=${'$as_ac_Header'}
10632 $as_echo "$as_val"'` = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define `$as_echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
10637 ac_header_dirent=$ac_hdr; break
10641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10642 if test $ac_header_dirent = dirent.h; then
10643 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10644 $as_echo_n "checking for library containing opendir... " >&6; }
10645 if test "${ac_cv_search_opendir+set}" = set; then
10646 $as_echo_n "(cached) " >&6
10648 ac_func_search_save_LIBS=$LIBS
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10671 for ac_lib in '' dir; do
10672 if test -z "$ac_lib"; then
10673 ac_res="none required"
10676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10678 rm -f conftest.$ac_objext conftest$ac_exeext
10679 if { (ac_try="$ac_link"
10680 case "(($ac_try" in
10681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10682 *) ac_try_echo
=$ac_try;;
10684 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10685 $as_echo "$ac_try_echo") >&5
10686 (eval "$ac_link") 2>conftest.er1
10688 grep -v '^ *+' conftest.er1
>conftest.err
10690 cat conftest.err
>&5
10691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } && {
10693 test -z "$ac_c_werror_flag" ||
10694 test ! -s conftest.err
10695 } && test -s conftest
$ac_exeext && {
10696 test "$cross_compiling" = yes ||
10697 $as_test_x conftest
$ac_exeext
10699 ac_cv_search_opendir
=$ac_res
10701 $as_echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.
$ac_ext >&5
10707 rm -rf conftest.dSYM
10708 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10710 if test "${ac_cv_search_opendir+set}" = set; then
10714 if test "${ac_cv_search_opendir+set}" = set; then
10717 ac_cv_search_opendir
=no
10719 rm conftest.
$ac_ext
10720 LIBS
=$ac_func_search_save_LIBS
10722 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10723 $as_echo "$ac_cv_search_opendir" >&6; }
10724 ac_res
=$ac_cv_search_opendir
10725 if test "$ac_res" != no
; then
10726 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10731 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10732 $as_echo_n "checking for library containing opendir... " >&6; }
10733 if test "${ac_cv_search_opendir+set}" = set; then
10734 $as_echo_n "(cached) " >&6
10736 ac_func_search_save_LIBS
=$LIBS
10737 cat >conftest.
$ac_ext <<_ACEOF
10740 cat confdefs.h
>>conftest.
$ac_ext
10741 cat >>conftest.
$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10744 /* Override any GCC internal prototype to avoid an error.
10745 Use char because int might match the return type of a GCC
10746 builtin and then its argument prototype would still apply. */
10759 for ac_lib
in '' x
; do
10760 if test -z "$ac_lib"; then
10761 ac_res
="none required"
10764 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10766 rm -f conftest.
$ac_objext conftest
$ac_exeext
10767 if { (ac_try
="$ac_link"
10768 case "(($ac_try" in
10769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774 (eval "$ac_link") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && {
10781 test -z "$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 } && test -s conftest$ac_exeext && {
10784 test "$cross_compiling" = yes ||
10785 $as_test_x conftest$ac_exeext
10787 ac_cv_search_opendir=$ac_res
10789 $as_echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10795 rm -rf conftest.dSYM
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10798 if test "${ac_cv_search_opendir+set}" = set; then
10802 if test "${ac_cv_search_opendir+set}" = set; then
10805 ac_cv_search_opendir=no
10807 rm conftest.$ac_ext
10808 LIBS=$ac_func_search_save_LIBS
10810 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10811 $as_echo "$ac_cv_search_opendir" >&6; }
10812 ac_res=$ac_cv_search_opendir
10813 if test "$ac_res" != no; then
10814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10821 if test $ac_cv_header_sys_wait_h = no; then
10822 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10823 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10824 cat >conftest.$ac_ext <<_ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #include <sys/wait.h>
10834 union wait xx, yy; xx = yy
10839 rm -f conftest.$ac_objext
10840 if { (ac_try="$ac_compile"
10841 case "(($ac_try" in
10842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10843 *) ac_try_echo
=$ac_try;;
10845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10846 $as_echo "$ac_try_echo") >&5
10847 (eval "$ac_compile") 2>conftest.er1
10849 grep -v '^ *+' conftest.er1
>conftest.err
10851 cat conftest.err
>&5
10852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest.
$ac_objext; then
10857 { $as_echo "$as_me:$LINENO: result: yes" >&5
10858 $as_echo "yes" >&6; }
10859 cat >>confdefs.h
<<\_ACEOF
10860 #define HAVE_SYS_WAIT_H 1
10863 cat >>confdefs.h
<<\_ACEOF
10864 #define HAVE_UNION_WAIT 1
10868 $as_echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.
$ac_ext >&5
10871 { $as_echo "$as_me:$LINENO: result: no" >&5
10872 $as_echo "no" >&6; }
10875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10919 for ac_header
in stdarg.h stdlib.h string.h sys
/select.h sys
/utsname.h \
10920 termcap.h fcntl.h sgtty.h sys
/ioctl.h sys
/time.h sys
/types.h termio.h \
10921 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
10922 sys
/resource.h sys
/systeminfo.h locale.h \
10923 sys
/stream.h termios.h libc.h sys
/statfs.h \
10924 poll.h sys
/poll.h
pwd.h utime.h sys
/param.h libintl.h \
10925 libgen.h util
/debug.h util
/msg18n.h frame.h \
10926 sys
/acl.h sys
/access.h sys
/sysctl.h sys
/sysinfo.h wchar.h wctype.h
10928 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10929 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10931 $as_echo_n "checking for $ac_header... " >&6; }
10932 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10933 $as_echo_n "(cached) " >&6
10935 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10936 $as_echo "$as_val"'`
10937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10938 $as_echo "$ac_res" >&6; }
10940 # Is the header compilable?
10941 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10942 $as_echo_n "checking $ac_header usability... " >&6; }
10943 cat >conftest.
$ac_ext <<_ACEOF
10946 cat confdefs.h
>>conftest.
$ac_ext
10947 cat >>conftest.
$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 $ac_includes_default
10950 #include <$ac_header>
10952 rm -f conftest.
$ac_objext
10953 if { (ac_try
="$ac_compile"
10954 case "(($ac_try" in
10955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10959 $as_echo "$ac_try_echo") >&5
10960 (eval "$ac_compile") 2>conftest.er1
10962 grep -v '^ *+' conftest.er1 >conftest.err
10964 cat conftest.err >&5
10965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest.$ac_objext; then
10970 ac_header_compiler=yes
10972 $as_echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10975 ac_header_compiler=no
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10980 $as_echo "$ac_header_compiler" >&6; }
10982 # Is the header present?
10983 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10984 $as_echo_n "checking $ac_header presence... " >&6; }
10985 cat >conftest.$ac_ext <<_ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10991 #include <$ac_header>
10993 if { (ac_try="$ac_cpp conftest.$ac_ext"
10994 case "(($ac_try" in
10995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10996 *) ac_try_echo
=$ac_try;;
10998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1
>conftest.err
11004 cat conftest.err
>&5
11005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } >/dev
/null
&& {
11007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11010 ac_header_preproc
=yes
11012 $as_echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.
$ac_ext >&5
11015 ac_header_preproc
=no
11018 rm -f conftest.err conftest.
$ac_ext
11019 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11020 $as_echo "$ac_header_preproc" >&6; }
11022 # So? What about this header?
11023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11026 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11029 ac_header_preproc
=yes
11032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11033 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11035 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11037 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11039 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11041 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11043 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11047 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11048 $as_echo_n "checking for $ac_header... " >&6; }
11049 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11050 $as_echo_n "(cached) " >&6
11052 eval "$as_ac_Header=\$ac_header_preproc"
11054 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11055 $as_echo "$as_val"'`
11056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11057 $as_echo "$ac_res" >&6; }
11060 if test `eval 'as_val=${'$as_ac_Header'}
11061 $as_echo "$as_val"'` = yes; then
11062 cat >>confdefs.h
<<_ACEOF
11063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11072 for ac_header
in sys
/ptem.h
11074 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11075 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11076 $as_echo_n "checking for $ac_header... " >&6; }
11077 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11078 $as_echo_n "(cached) " >&6
11080 cat >conftest.
$ac_ext <<_ACEOF
11083 cat confdefs.h
>>conftest.
$ac_ext
11084 cat >>conftest.
$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 #if defined HAVE_SYS_STREAM_H
11087 # include <sys/stream.h>
11090 #include <$ac_header>
11092 rm -f conftest.
$ac_objext
11093 if { (ac_try
="$ac_compile"
11094 case "(($ac_try" in
11095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11099 $as_echo "$ac_try_echo") >&5
11100 (eval "$ac_compile") 2>conftest.er1
11102 grep -v '^ *+' conftest.er1 >conftest.err
11104 cat conftest.err >&5
11105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && {
11107 test -z "$ac_c_werror_flag" ||
11108 test ! -s conftest.err
11109 } && test -s conftest.$ac_objext; then
11110 eval "$as_ac_Header=yes"
11112 $as_echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 eval "$as_ac_Header=no"
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 ac_res=`eval 'as_val=${'$as_ac_Header'}
11121 $as_echo "$as_val"'`
11122 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11123 $as_echo "$ac_res" >&6; }
11124 if test `eval 'as_val=${'$as_ac_Header'}
11125 $as_echo "$as_val"'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11136 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11137 $as_echo_n "checking for pthread_np.h... " >&6; }
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11145 #include <pthread.h>
11146 #include <pthread_np.h>
11155 rm -f conftest.$ac_objext
11156 if { (ac_try="$ac_compile"
11157 case "(($ac_try" in
11158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11159 *) ac_try_echo
=$ac_try;;
11161 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11162 $as_echo "$ac_try_echo") >&5
11163 (eval "$ac_compile") 2>conftest.er1
11165 grep -v '^ *+' conftest.er1
>conftest.err
11167 cat conftest.err
>&5
11168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } && {
11170 test -z "$ac_c_werror_flag" ||
11171 test ! -s conftest.err
11172 } && test -s conftest.
$ac_objext; then
11173 { $as_echo "$as_me:$LINENO: result: yes" >&5
11174 $as_echo "yes" >&6; }
11175 cat >>confdefs.h
<<\_ACEOF
11176 #define HAVE_PTHREAD_NP_H 1
11180 $as_echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.
$ac_ext >&5
11183 { $as_echo "$as_me:$LINENO: result: no" >&5
11184 $as_echo "no" >&6; }
11187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11190 for ac_header
in strings.h
11192 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11193 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11195 $as_echo_n "checking for $ac_header... " >&6; }
11196 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11197 $as_echo_n "(cached) " >&6
11199 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11200 $as_echo "$as_val"'`
11201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11202 $as_echo "$ac_res" >&6; }
11204 # Is the header compilable?
11205 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11206 $as_echo_n "checking $ac_header usability... " >&6; }
11207 cat >conftest.
$ac_ext <<_ACEOF
11210 cat confdefs.h
>>conftest.
$ac_ext
11211 cat >>conftest.
$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 $ac_includes_default
11214 #include <$ac_header>
11216 rm -f conftest.
$ac_objext
11217 if { (ac_try
="$ac_compile"
11218 case "(($ac_try" in
11219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11223 $as_echo "$ac_try_echo") >&5
11224 (eval "$ac_compile") 2>conftest.er1
11226 grep -v '^ *+' conftest.er1 >conftest.err
11228 cat conftest.err >&5
11229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && {
11231 test -z "$ac_c_werror_flag" ||
11232 test ! -s conftest.err
11233 } && test -s conftest.$ac_objext; then
11234 ac_header_compiler=yes
11236 $as_echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 ac_header_compiler=no
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11244 $as_echo "$ac_header_compiler" >&6; }
11246 # Is the header present?
11247 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11248 $as_echo_n "checking $ac_header presence... " >&6; }
11249 cat >conftest.$ac_ext <<_ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h. */
11255 #include <$ac_header>
11257 if { (ac_try="$ac_cpp conftest.$ac_ext"
11258 case "(($ac_try" in
11259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11260 *) ac_try_echo
=$ac_try;;
11262 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11263 $as_echo "$ac_try_echo") >&5
11264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11266 grep -v '^ *+' conftest.er1
>conftest.err
11268 cat conftest.err
>&5
11269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } >/dev
/null
&& {
11271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11274 ac_header_preproc
=yes
11276 $as_echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.
$ac_ext >&5
11279 ac_header_preproc
=no
11282 rm -f conftest.err conftest.
$ac_ext
11283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11284 $as_echo "$ac_header_preproc" >&6; }
11286 # So? What about this header?
11287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11290 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11293 ac_header_preproc
=yes
11296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11299 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11301 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11303 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11307 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11312 $as_echo_n "checking for $ac_header... " >&6; }
11313 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 $as_echo_n "(cached) " >&6
11316 eval "$as_ac_Header=\$ac_header_preproc"
11318 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11319 $as_echo "$as_val"'`
11320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11321 $as_echo "$ac_res" >&6; }
11324 if test `eval 'as_val=${'$as_ac_Header'}
11325 $as_echo "$as_val"'` = yes; then
11326 cat >>confdefs.h
<<_ACEOF
11327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11334 if test "x$MACOSX" = "xyes"; then
11335 cat >>confdefs.h
<<\_ACEOF
11336 #define NO_STRINGS_WITH_STRING_H 1
11341 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11342 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11343 cppflags_save
=$CPPFLAGS
11344 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11345 cat >conftest.
$ac_ext <<_ACEOF
11348 cat confdefs.h
>>conftest.
$ac_ext
11349 cat >>conftest.
$ac_ext <<_ACEOF
11350 /* end confdefs.h. */
11352 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11353 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11354 /* but don't do it on AIX 5.1 (Uribarri) */
11356 #ifdef HAVE_XM_XM_H
11357 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11359 #ifdef HAVE_STRING_H
11360 # include <string.h>
11362 #if defined(HAVE_STRINGS_H)
11363 # include <strings.h>
11374 rm -f conftest.
$ac_objext
11375 if { (ac_try
="$ac_compile"
11376 case "(($ac_try" in
11377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11378 *) ac_try_echo=$ac_try;;
11380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11381 $as_echo "$ac_try_echo") >&5
11382 (eval "$ac_compile") 2>conftest.er1
11384 grep -v '^ *+' conftest.er1 >conftest.err
11386 cat conftest.err >&5
11387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } && {
11389 test -z "$ac_c_werror_flag" ||
11390 test ! -s conftest.err
11391 } && test -s conftest.$ac_objext; then
11392 { $as_echo "$as_me:$LINENO: result: yes" >&5
11393 $as_echo "yes" >&6; }
11395 $as_echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11398 cat >>confdefs.h <<\_ACEOF
11399 #define NO_STRINGS_WITH_STRING_H 1
11402 { $as_echo "$as_me:$LINENO: result: no" >&5
11403 $as_echo "no" >&6; }
11406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 CPPFLAGS=$cppflags_save
11410 if test $ac_cv_c_compiler_gnu = yes; then
11411 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11412 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11413 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11414 $as_echo_n "(cached) " >&6
11416 ac_pattern="Autoconf.*'x'"
11417 cat >conftest.$ac_ext <<_ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h. */
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11428 ac_cv_prog_gcc_traditional=yes
11430 ac_cv_prog_gcc_traditional=no
11435 if test $ac_cv_prog_gcc_traditional = no; then
11436 cat >conftest.$ac_ext <<_ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 #include <termio.h>
11445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11446 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11447 ac_cv_prog_gcc_traditional=yes
11453 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11454 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11455 if test $ac_cv_prog_gcc_traditional = yes; then
11456 CC="$CC -traditional"
11460 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11461 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11462 if test "${ac_cv_c_const+set}" = set; then
11463 $as_echo_n "(cached) " >&6
11465 cat >conftest.$ac_ext <<_ACEOF
11468 cat confdefs.h >>conftest.$ac_ext
11469 cat >>conftest.$ac_ext <<_ACEOF
11470 /* end confdefs.h. */
11475 /* FIXME: Include the comments suggested by Paul. */
11476 #ifndef __cplusplus
11477 /* Ultrix mips cc rejects this. */
11478 typedef int charset[2];
11480 /* SunOS 4.1.1 cc rejects this. */
11481 char const *const *pcpcc;
11483 /* NEC SVR4.0.2 mips cc rejects this. */
11484 struct point {int x, y;};
11485 static struct point const zero = {0,0};
11486 /* AIX XL C 1.02.0.0 rejects this.
11487 It does not let you subtract one const X* pointer from another in
11488 an arm of an if-expression whose if-part is not a constant
11490 const char *g = "string";
11491 pcpcc = &g + (g ? g-g : 0);
11492 /* HPUX 7.0 cc rejects these. */
11494 ppc = (char**) pcpcc;
11495 pcpcc = (char const *const *) ppc;
11496 { /* SCO 3.2v4 cc rejects this. */
11498 char const *s = 0 ? (char *) 0 : (char const *) 0;
11503 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11504 int x[] = {25, 17};
11505 const int *foo = &x[0];
11508 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11509 typedef const int *iptr;
11513 { /* AIX XL C 1.02.0.0 rejects this saying
11514 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11515 struct s { int j; const int *ap[3]; };
11516 struct s *b; b->j = 5;
11518 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11519 const int foo = 10;
11520 if (!foo) return 0;
11522 return !cs[0] && !zero.x;
11529 rm -f conftest.$ac_objext
11530 if { (ac_try="$ac_compile"
11531 case "(($ac_try" in
11532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11533 *) ac_try_echo
=$ac_try;;
11535 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11536 $as_echo "$ac_try_echo") >&5
11537 (eval "$ac_compile") 2>conftest.er1
11539 grep -v '^ *+' conftest.er1
>conftest.err
11541 cat conftest.err
>&5
11542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } && {
11544 test -z "$ac_c_werror_flag" ||
11545 test ! -s conftest.err
11546 } && test -s conftest.
$ac_objext; then
11549 $as_echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.
$ac_ext >&5
11555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11557 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11558 $as_echo "$ac_cv_c_const" >&6; }
11559 if test $ac_cv_c_const = no
; then
11561 cat >>confdefs.h
<<\_ACEOF
11567 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11568 $as_echo_n "checking for mode_t... " >&6; }
11569 if test "${ac_cv_type_mode_t+set}" = set; then
11570 $as_echo_n "(cached) " >&6
11572 ac_cv_type_mode_t
=no
11573 cat >conftest.
$ac_ext <<_ACEOF
11576 cat confdefs.h
>>conftest.
$ac_ext
11577 cat >>conftest.
$ac_ext <<_ACEOF
11578 /* end confdefs.h. */
11579 $ac_includes_default
11583 if (sizeof (mode_t))
11589 rm -f conftest.
$ac_objext
11590 if { (ac_try
="$ac_compile"
11591 case "(($ac_try" in
11592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11596 $as_echo "$ac_try_echo") >&5
11597 (eval "$ac_compile") 2>conftest.er1
11599 grep -v '^ *+' conftest.er1 >conftest.err
11601 cat conftest.err >&5
11602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } && {
11604 test -z "$ac_c_werror_flag" ||
11605 test ! -s conftest.err
11606 } && test -s conftest.$ac_objext; then
11607 cat >conftest.$ac_ext <<_ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h. */
11613 $ac_includes_default
11617 if (sizeof ((mode_t)))
11623 rm -f conftest.$ac_objext
11624 if { (ac_try="$ac_compile"
11625 case "(($ac_try" in
11626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11627 *) ac_try_echo
=$ac_try;;
11629 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11630 $as_echo "$ac_try_echo") >&5
11631 (eval "$ac_compile") 2>conftest.er1
11633 grep -v '^ *+' conftest.er1
>conftest.err
11635 cat conftest.err
>&5
11636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } && {
11638 test -z "$ac_c_werror_flag" ||
11639 test ! -s conftest.err
11640 } && test -s conftest.
$ac_objext; then
11643 $as_echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.
$ac_ext >&5
11646 ac_cv_type_mode_t
=yes
11649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11651 $as_echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.
$ac_ext >&5
11657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11659 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11660 $as_echo "$ac_cv_type_mode_t" >&6; }
11661 if test $ac_cv_type_mode_t = yes; then
11665 cat >>confdefs.h
<<_ACEOF
11671 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11672 $as_echo_n "checking for off_t... " >&6; }
11673 if test "${ac_cv_type_off_t+set}" = set; then
11674 $as_echo_n "(cached) " >&6
11676 ac_cv_type_off_t
=no
11677 cat >conftest.
$ac_ext <<_ACEOF
11680 cat confdefs.h
>>conftest.
$ac_ext
11681 cat >>conftest.
$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 $ac_includes_default
11687 if (sizeof (off_t))
11693 rm -f conftest.
$ac_objext
11694 if { (ac_try
="$ac_compile"
11695 case "(($ac_try" in
11696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11700 $as_echo "$ac_try_echo") >&5
11701 (eval "$ac_compile") 2>conftest.er1
11703 grep -v '^ *+' conftest.er1 >conftest.err
11705 cat conftest.err >&5
11706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } && {
11708 test -z "$ac_c_werror_flag" ||
11709 test ! -s conftest.err
11710 } && test -s conftest.$ac_objext; then
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 $ac_includes_default
11721 if (sizeof ((off_t)))
11727 rm -f conftest.$ac_objext
11728 if { (ac_try="$ac_compile"
11729 case "(($ac_try" in
11730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11731 *) ac_try_echo
=$ac_try;;
11733 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11734 $as_echo "$ac_try_echo") >&5
11735 (eval "$ac_compile") 2>conftest.er1
11737 grep -v '^ *+' conftest.er1
>conftest.err
11739 cat conftest.err
>&5
11740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } && {
11742 test -z "$ac_c_werror_flag" ||
11743 test ! -s conftest.err
11744 } && test -s conftest.
$ac_objext; then
11747 $as_echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.
$ac_ext >&5
11750 ac_cv_type_off_t
=yes
11753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11755 $as_echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.
$ac_ext >&5
11761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11763 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11764 $as_echo "$ac_cv_type_off_t" >&6; }
11765 if test $ac_cv_type_off_t = yes; then
11769 cat >>confdefs.h
<<_ACEOF
11770 #define off_t long int
11775 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
11776 $as_echo_n "checking for pid_t... " >&6; }
11777 if test "${ac_cv_type_pid_t+set}" = set; then
11778 $as_echo_n "(cached) " >&6
11780 ac_cv_type_pid_t
=no
11781 cat >conftest.
$ac_ext <<_ACEOF
11784 cat confdefs.h
>>conftest.
$ac_ext
11785 cat >>conftest.
$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 $ac_includes_default
11791 if (sizeof (pid_t))
11797 rm -f conftest.
$ac_objext
11798 if { (ac_try
="$ac_compile"
11799 case "(($ac_try" in
11800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11804 $as_echo "$ac_try_echo") >&5
11805 (eval "$ac_compile") 2>conftest.er1
11807 grep -v '^ *+' conftest.er1 >conftest.err
11809 cat conftest.err >&5
11810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest.$ac_objext; then
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11825 if (sizeof ((pid_t)))
11831 rm -f conftest.$ac_objext
11832 if { (ac_try="$ac_compile"
11833 case "(($ac_try" in
11834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11835 *) ac_try_echo
=$ac_try;;
11837 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11838 $as_echo "$ac_try_echo") >&5
11839 (eval "$ac_compile") 2>conftest.er1
11841 grep -v '^ *+' conftest.er1
>conftest.err
11843 cat conftest.err
>&5
11844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } && {
11846 test -z "$ac_c_werror_flag" ||
11847 test ! -s conftest.err
11848 } && test -s conftest.
$ac_objext; then
11851 $as_echo "$as_me: failed program was:" >&5
11852 sed 's/^/| /' conftest.
$ac_ext >&5
11854 ac_cv_type_pid_t
=yes
11857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11859 $as_echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.
$ac_ext >&5
11865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11867 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11868 $as_echo "$ac_cv_type_pid_t" >&6; }
11869 if test $ac_cv_type_pid_t = yes; then
11873 cat >>confdefs.h
<<_ACEOF
11879 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11880 $as_echo_n "checking for size_t... " >&6; }
11881 if test "${ac_cv_type_size_t+set}" = set; then
11882 $as_echo_n "(cached) " >&6
11884 ac_cv_type_size_t
=no
11885 cat >conftest.
$ac_ext <<_ACEOF
11888 cat confdefs.h
>>conftest.
$ac_ext
11889 cat >>conftest.
$ac_ext <<_ACEOF
11890 /* end confdefs.h. */
11891 $ac_includes_default
11895 if (sizeof (size_t))
11901 rm -f conftest.
$ac_objext
11902 if { (ac_try
="$ac_compile"
11903 case "(($ac_try" in
11904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11908 $as_echo "$ac_try_echo") >&5
11909 (eval "$ac_compile") 2>conftest.er1
11911 grep -v '^ *+' conftest.er1 >conftest.err
11913 cat conftest.err >&5
11914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && {
11916 test -z "$ac_c_werror_flag" ||
11917 test ! -s conftest.err
11918 } && test -s conftest.$ac_objext; then
11919 cat >conftest.$ac_ext <<_ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 $ac_includes_default
11929 if (sizeof ((size_t)))
11935 rm -f conftest.$ac_objext
11936 if { (ac_try="$ac_compile"
11937 case "(($ac_try" in
11938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11939 *) ac_try_echo
=$ac_try;;
11941 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11942 $as_echo "$ac_try_echo") >&5
11943 (eval "$ac_compile") 2>conftest.er1
11945 grep -v '^ *+' conftest.er1
>conftest.err
11947 cat conftest.err
>&5
11948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } && {
11950 test -z "$ac_c_werror_flag" ||
11951 test ! -s conftest.err
11952 } && test -s conftest.
$ac_objext; then
11955 $as_echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.
$ac_ext >&5
11958 ac_cv_type_size_t
=yes
11961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11963 $as_echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.
$ac_ext >&5
11969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11971 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11972 $as_echo "$ac_cv_type_size_t" >&6; }
11973 if test $ac_cv_type_size_t = yes; then
11977 cat >>confdefs.h
<<_ACEOF
11978 #define size_t unsigned int
11983 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11984 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11985 if test "${ac_cv_type_uid_t+set}" = set; then
11986 $as_echo_n "(cached) " >&6
11988 cat >conftest.
$ac_ext <<_ACEOF
11991 cat confdefs.h
>>conftest.
$ac_ext
11992 cat >>conftest.
$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 #include <sys/types.h>
11997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11998 $EGREP "uid_t" >/dev
/null
2>&1; then
11999 ac_cv_type_uid_t
=yes
12001 ac_cv_type_uid_t
=no
12006 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12007 $as_echo "$ac_cv_type_uid_t" >&6; }
12008 if test $ac_cv_type_uid_t = no
; then
12010 cat >>confdefs.h
<<\_ACEOF
12015 cat >>confdefs.h
<<\_ACEOF
12021 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12022 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12023 if test "${ac_cv_header_time+set}" = set; then
12024 $as_echo_n "(cached) " >&6
12026 cat >conftest.
$ac_ext <<_ACEOF
12029 cat confdefs.h
>>conftest.
$ac_ext
12030 cat >>conftest.
$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 #include <sys/types.h>
12033 #include <sys/time.h>
12039 if ((struct tm *) 0)
12045 rm -f conftest.
$ac_objext
12046 if { (ac_try
="$ac_compile"
12047 case "(($ac_try" in
12048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052 $as_echo "$ac_try_echo") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
12063 ac_cv_header_time=yes
12065 $as_echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_cv_header_time=no
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12074 $as_echo "$ac_cv_header_time" >&6; }
12075 if test $ac_cv_header_time = yes; then
12077 cat >>confdefs.h <<\_ACEOF
12078 #define TIME_WITH_SYS_TIME 1
12083 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12084 $as_echo_n "checking for ino_t... " >&6; }
12085 if test "${ac_cv_type_ino_t+set}" = set; then
12086 $as_echo_n "(cached) " >&6
12088 ac_cv_type_ino_t=no
12089 cat >conftest.$ac_ext <<_ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12095 $ac_includes_default
12099 if (sizeof (ino_t))
12105 rm -f conftest.$ac_objext
12106 if { (ac_try="$ac_compile"
12107 case "(($ac_try" in
12108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12109 *) ac_try_echo
=$ac_try;;
12111 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12112 $as_echo "$ac_try_echo") >&5
12113 (eval "$ac_compile") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1
>conftest.err
12117 cat conftest.err
>&5
12118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest.
$ac_objext; then
12123 cat >conftest.
$ac_ext <<_ACEOF
12126 cat confdefs.h
>>conftest.
$ac_ext
12127 cat >>conftest.
$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12129 $ac_includes_default
12133 if (sizeof ((ino_t)))
12139 rm -f conftest.
$ac_objext
12140 if { (ac_try
="$ac_compile"
12141 case "(($ac_try" in
12142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12146 $as_echo "$ac_try_echo") >&5
12147 (eval "$ac_compile") 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } && {
12154 test -z "$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 } && test -s conftest.$ac_objext; then
12159 $as_echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_type_ino_t=yes
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167 $as_echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12176 $as_echo "$ac_cv_type_ino_t" >&6; }
12177 if test $ac_cv_type_ino_t = yes; then
12181 cat >>confdefs.h <<_ACEOF
12187 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12188 $as_echo_n "checking for dev_t... " >&6; }
12189 if test "${ac_cv_type_dev_t+set}" = set; then
12190 $as_echo_n "(cached) " >&6
12192 ac_cv_type_dev_t=no
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 $ac_includes_default
12203 if (sizeof (dev_t))
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12213 *) ac_try_echo
=$ac_try;;
12215 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12216 $as_echo "$ac_try_echo") >&5
12217 (eval "$ac_compile") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1
>conftest.err
12221 cat conftest.err
>&5
12222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest.
$ac_objext; then
12227 cat >conftest.
$ac_ext <<_ACEOF
12230 cat confdefs.h
>>conftest.
$ac_ext
12231 cat >>conftest.
$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 $ac_includes_default
12237 if (sizeof ((dev_t)))
12243 rm -f conftest.
$ac_objext
12244 if { (ac_try
="$ac_compile"
12245 case "(($ac_try" in
12246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12250 $as_echo "$ac_try_echo") >&5
12251 (eval "$ac_compile") 2>conftest.er1
12253 grep -v '^ *+' conftest.er1 >conftest.err
12255 cat conftest.err >&5
12256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && {
12258 test -z "$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 } && test -s conftest.$ac_objext; then
12263 $as_echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_type_dev_t=yes
12269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 $as_echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12280 $as_echo "$ac_cv_type_dev_t" >&6; }
12281 if test $ac_cv_type_dev_t = yes; then
12285 cat >>confdefs.h <<_ACEOF
12286 #define dev_t unsigned
12292 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12293 $as_echo_n "checking for rlim_t... " >&6; }
12294 if eval "test \"`echo '$''{'ac_cv_type_rlim_t
'+set}'`\" = set"; then
12295 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12296 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12305 #include <sys/types.h>
12307 # include <stdlib.h>
12308 # include <stddef.h>
12310 #ifdef HAVE_SYS_RESOURCE_H
12311 # include <sys/resource.h>
12315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12316 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12317 ac_cv_type_rlim_t=yes
12319 ac_cv_type_rlim_t=no
12323 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12324 $as_echo "$ac_cv_type_rlim_t" >&6; }
12326 if test $ac_cv_type_rlim_t = no; then
12327 cat >> confdefs.h <<\EOF
12328 #define rlim_t unsigned long
12332 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12333 $as_echo_n "checking for stack_t... " >&6; }
12334 if eval "test \"`echo '$''{'ac_cv_type_stack_t
'+set}'`\" = set"; then
12335 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12336 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12338 cat >conftest.$ac_ext <<_ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h. */
12345 #include <sys/types.h>
12347 # include <stdlib.h>
12348 # include <stddef.h>
12350 #include <signal.h>
12353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12354 $EGREP "stack_t" >/dev/null 2>&1; then
12355 ac_cv_type_stack_t=yes
12357 ac_cv_type_stack_t=no
12361 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12362 $as_echo "$ac_cv_type_stack_t" >&6; }
12364 if test $ac_cv_type_stack_t = no; then
12365 cat >> confdefs.h <<\EOF
12366 #define stack_t struct sigaltstack
12370 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12371 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12372 cat >conftest.$ac_ext <<_ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12379 #include <sys/types.h>
12381 # include <stdlib.h>
12382 # include <stddef.h>
12384 #include <signal.h>
12385 #include "confdefs.h"
12390 stack_t sigstk; sigstk.ss_base = 0;
12395 rm -f conftest.$ac_objext
12396 if { (ac_try="$ac_compile"
12397 case "(($ac_try" in
12398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12399 *) ac_try_echo
=$ac_try;;
12401 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12402 $as_echo "$ac_try_echo") >&5
12403 (eval "$ac_compile") 2>conftest.er1
12405 grep -v '^ *+' conftest.er1
>conftest.err
12407 cat conftest.err
>&5
12408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest.
$ac_objext; then
12413 { $as_echo "$as_me:$LINENO: result: yes" >&5
12414 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
12415 #define HAVE_SS_BASE 1
12419 $as_echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.
$ac_ext >&5
12422 { $as_echo "$as_me:$LINENO: result: no" >&5
12423 $as_echo "no" >&6; }
12426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12429 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12430 $as_echo_n "checking --with-tlib argument... " >&6; }
12432 # Check whether --with-tlib was given.
12433 if test "${with_tlib+set}" = set; then
12434 withval
=$with_tlib;
12437 if test -n "$with_tlib"; then
12438 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12439 $as_echo "$with_tlib" >&6; }
12440 LIBS
="$LIBS -l$with_tlib"
12441 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12442 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12443 cat >conftest.
$ac_ext <<_ACEOF
12446 cat confdefs.h
>>conftest.
$ac_ext
12447 cat >>conftest.
$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12458 rm -f conftest.
$ac_objext conftest
$ac_exeext
12459 if { (ac_try
="$ac_link"
12460 case "(($ac_try" in
12461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12465 $as_echo "$ac_try_echo") >&5
12466 (eval "$ac_link") 2>conftest.er1
12468 grep -v '^ *+' conftest.er1 >conftest.err
12470 cat conftest.err >&5
12471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && {
12473 test -z "$ac_c_werror_flag" ||
12474 test ! -s conftest.err
12475 } && test -s conftest$ac_exeext && {
12476 test "$cross_compiling" = yes ||
12477 $as_test_x conftest$ac_exeext
12479 { $as_echo "$as_me:$LINENO: result: OK" >&5
12480 $as_echo "OK" >&6; }
12482 $as_echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12486 $as_echo "$as_me: error: FAILED" >&2;}
12487 { (exit 1); exit 1; }; }
12490 rm -rf conftest.dSYM
12491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12492 conftest$ac_exeext conftest.$ac_ext
12495 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12496 $as_echo "empty: automatic terminal library selection" >&6; }
12497 case "`uname
-s 2>/dev
/null
`" in
12498 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
12499 *) tlibs="ncurses termlib termcap curses";;
12501 for libname in $tlibs; do
12503 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" |
$as_tr_sh`
12504 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12505 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12506 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12507 $as_echo_n "(cached) " >&6
12509 ac_check_lib_save_LIBS=$LIBS
12510 LIBS="-l${libname} $LIBS"
12511 cat >conftest.$ac_ext <<_ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12518 /* Override any GCC internal prototype to avoid an error.
12519 Use char because int might match the return type of a GCC
12520 builtin and then its argument prototype would still apply. */
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (ac_try="$ac_link"
12535 case "(($ac_try" in
12536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12537 *) ac_try_echo
=$ac_try;;
12539 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12540 $as_echo "$ac_try_echo") >&5
12541 (eval "$ac_link") 2>conftest.er1
12543 grep -v '^ *+' conftest.er1
>conftest.err
12545 cat conftest.err
>&5
12546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest
$ac_exeext && {
12551 test "$cross_compiling" = yes ||
12552 $as_test_x conftest
$ac_exeext
12554 eval "$as_ac_Lib=yes"
12556 $as_echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.
$ac_ext >&5
12559 eval "$as_ac_Lib=no"
12562 rm -rf conftest.dSYM
12563 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12564 conftest
$ac_exeext conftest.
$ac_ext
12565 LIBS
=$ac_check_lib_save_LIBS
12567 ac_res
=`eval 'as_val=${'$as_ac_Lib'}
12568 $as_echo "$as_val"'`
12569 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12570 $as_echo "$ac_res" >&6; }
12571 if test `eval 'as_val=${'$as_ac_Lib'}
12572 $as_echo "$as_val"'` = yes; then
12573 cat >>confdefs.h
<<_ACEOF
12574 #define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12577 LIBS
="-l${libname} $LIBS"
12581 if test "x$olibs" != "x$LIBS"; then
12582 if test "$cross_compiling" = yes; then
12585 cat >conftest.
$ac_ext <<_ACEOF
12588 cat confdefs.h
>>conftest.
$ac_ext
12589 cat >>conftest.
$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12592 #ifdef HAVE_TERMCAP_H
12593 # include <termcap.h>
12596 # include <stdlib.h>
12597 # include <stddef.h>
12599 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12601 rm -f conftest
$ac_exeext
12602 if { (ac_try
="$ac_link"
12603 case "(($ac_try" in
12604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12608 $as_echo "$ac_try_echo") >&5
12609 (eval "$ac_link") 2>&5
12611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12615 *) ac_try_echo
=$ac_try;;
12617 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12618 $as_echo "$ac_try_echo") >&5
12619 (eval "$ac_try") 2>&5
12621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12625 $as_echo "$as_me: program exited with status $ac_status" >&5
12626 $as_echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.
$ac_ext >&5
12629 ( exit $ac_status )
12632 rm -rf conftest.dSYM
12633 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12637 if test "$res" = "OK"; then
12640 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12641 $as_echo "$libname library is not usable" >&6; }
12645 if test "x$olibs" = "x$LIBS"; then
12646 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12647 $as_echo "no terminal library found" >&6; }
12651 if test "x$olibs" = "x$LIBS"; then
12652 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12653 $as_echo_n "checking for tgetent()... " >&6; }
12654 cat >conftest.
$ac_ext <<_ACEOF
12657 cat confdefs.h
>>conftest.
$ac_ext
12658 cat >>conftest.
$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12664 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12669 rm -f conftest.
$ac_objext conftest
$ac_exeext
12670 if { (ac_try
="$ac_link"
12671 case "(($ac_try" in
12672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12676 $as_echo "$ac_try_echo") >&5
12677 (eval "$ac_link") 2>conftest.er1
12679 grep -v '^ *+' conftest.er1 >conftest.err
12681 cat conftest.err >&5
12682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest$ac_exeext && {
12687 test "$cross_compiling" = yes ||
12688 $as_test_x conftest$ac_exeext
12690 { $as_echo "$as_me:$LINENO: result: yes" >&5
12691 $as_echo "yes" >&6; }
12693 $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12697 You need to install a terminal library; for example ncurses.
12698 Or specify the name of the library with --with-tlib." >&5
12699 $as_echo "$as_me: error: NOT FOUND!
12700 You need to install a terminal library; for example ncurses.
12701 Or specify the name of the library with --with-tlib." >&2;}
12702 { (exit 1); exit 1; }; }
12705 rm -rf conftest.dSYM
12706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12707 conftest$ac_exeext conftest.$ac_ext
12710 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12711 $as_echo_n "checking whether we talk terminfo... " >&6; }
12712 if test "${vim_cv_terminfo+set}" = set; then
12713 $as_echo_n "(cached) " >&6
12716 if test "$cross_compiling" = yes; then
12718 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
12719 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
12720 { (exit 1); exit 1; }; }
12723 cat >conftest.$ac_ext <<_ACEOF
12725 #include "confdefs.h"
12726 #ifdef HAVE_TERMCAP_H
12727 # include <termcap.h>
12729 #ifdef HAVE_STRING_H
12730 # include <string.h>
12733 # include <stdlib.h>
12734 # include <stddef.h>
12737 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
12740 rm -f conftest$ac_exeext
12741 if { (ac_try="$ac_link"
12742 case "(($ac_try" in
12743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12744 *) ac_try_echo
=$ac_try;;
12746 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12747 $as_echo "$ac_try_echo") >&5
12748 (eval "$ac_link") 2>&5
12750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12752 { (case "(($ac_try" in
12753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12754 *) ac_try_echo=$ac_try;;
12756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12757 $as_echo "$ac_try_echo") >&5
12758 (eval "$ac_try") 2>&5
12760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12766 $as_echo "$as_me: program exited with status $ac_status" >&5
12767 $as_echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12770 ( exit $ac_status )
12772 vim_cv_terminfo=yes
12775 rm -rf conftest.dSYM
12776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12782 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
12783 $as_echo "$vim_cv_terminfo" >&6; }
12785 if test "x$vim_cv_terminfo" = "xyes" ; then
12786 cat >>confdefs.h <<\_ACEOF
12792 if test "x$olibs" != "x$LIBS"; then
12793 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12794 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
12795 if test "${vim_cv_tgent+set}" = set; then
12796 $as_echo_n "(cached) " >&6
12799 if test "$cross_compiling" = yes; then
12801 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
12802 $as_echo "$as_me: error: failed to compile test program." >&2;}
12803 { (exit 1); exit 1; }; }
12806 cat >conftest.$ac_ext <<_ACEOF
12808 #include "confdefs.h"
12809 #ifdef HAVE_TERMCAP_H
12810 # include <termcap.h>
12813 # include <stdlib.h>
12814 # include <stddef.h>
12817 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
12820 rm -f conftest$ac_exeext
12821 if { (ac_try="$ac_link"
12822 case "(($ac_try" in
12823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12824 *) ac_try_echo
=$ac_try;;
12826 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12827 $as_echo "$ac_try_echo") >&5
12828 (eval "$ac_link") 2>&5
12830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12832 { (case "(($ac_try" in
12833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12837 $as_echo "$ac_try_echo") >&5
12838 (eval "$ac_try") 2>&5
12840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12846 $as_echo "$as_me: program exited with status $ac_status" >&5
12847 $as_echo "$as_me: failed program was:" >&5
12848 sed 's/^/| /' conftest.$ac_ext >&5
12850 ( exit $ac_status )
12852 vim_cv_tgent=non-zero
12855 rm -rf conftest.dSYM
12856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12862 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
12863 $as_echo "$vim_cv_tgent" >&6; }
12865 if test "x$vim_cv_tgent" = "xzero" ; then
12866 cat >>confdefs.h <<\_ACEOF
12867 #define TGETENT_ZERO_ERR 0
12873 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12874 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12882 #ifdef HAVE_TERMCAP_H
12883 # include <termcap.h>
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (ac_try="$ac_link"
12896 case "(($ac_try" in
12897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12898 *) ac_try_echo
=$ac_try;;
12900 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12901 $as_echo "$ac_try_echo") >&5
12902 (eval "$ac_link") 2>conftest.er1
12904 grep -v '^ *+' conftest.er1
>conftest.err
12906 cat conftest.err
>&5
12907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } && {
12909 test -z "$ac_c_werror_flag" ||
12910 test ! -s conftest.err
12911 } && test -s conftest
$ac_exeext && {
12912 test "$cross_compiling" = yes ||
12913 $as_test_x conftest
$ac_exeext
12915 { $as_echo "$as_me:$LINENO: result: yes" >&5
12916 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
12917 #define HAVE_OSPEED 1
12921 $as_echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.
$ac_ext >&5
12924 { $as_echo "$as_me:$LINENO: result: no" >&5
12925 $as_echo "no" >&6; }
12926 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12927 $as_echo_n "checking whether ospeed can be extern... " >&6; }
12928 cat >conftest.
$ac_ext <<_ACEOF
12931 cat confdefs.h
>>conftest.
$ac_ext
12932 cat >>conftest.
$ac_ext <<_ACEOF
12933 /* end confdefs.h. */
12935 #ifdef HAVE_TERMCAP_H
12936 # include <termcap.h>
12938 extern short ospeed;
12948 rm -f conftest.
$ac_objext conftest
$ac_exeext
12949 if { (ac_try
="$ac_link"
12950 case "(($ac_try" in
12951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12955 $as_echo "$ac_try_echo") >&5
12956 (eval "$ac_link") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && {
12963 test -z "$ac_c_werror_flag" ||
12964 test ! -s conftest.err
12965 } && test -s conftest$ac_exeext && {
12966 test "$cross_compiling" = yes ||
12967 $as_test_x conftest$ac_exeext
12969 { $as_echo "$as_me:$LINENO: result: yes" >&5
12970 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12971 #define OSPEED_EXTERN 1
12975 $as_echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 { $as_echo "$as_me:$LINENO: result: no" >&5
12979 $as_echo "no" >&6; }
12982 rm -rf conftest.dSYM
12983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12984 conftest$ac_exeext conftest.$ac_ext
12988 rm -rf conftest.dSYM
12989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12990 conftest$ac_exeext conftest.$ac_ext
12992 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12993 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
12994 cat >conftest.$ac_ext <<_ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13001 #ifdef HAVE_TERMCAP_H
13002 # include <termcap.h>
13008 if (UP == 0 && BC == 0) PC = 1
13013 rm -f conftest.$ac_objext conftest$ac_exeext
13014 if { (ac_try="$ac_link"
13015 case "(($ac_try" in
13016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13017 *) ac_try_echo
=$ac_try;;
13019 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13020 $as_echo "$ac_try_echo") >&5
13021 (eval "$ac_link") 2>conftest.er1
13023 grep -v '^ *+' conftest.er1
>conftest.err
13025 cat conftest.err
>&5
13026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } && {
13028 test -z "$ac_c_werror_flag" ||
13029 test ! -s conftest.err
13030 } && test -s conftest
$ac_exeext && {
13031 test "$cross_compiling" = yes ||
13032 $as_test_x conftest
$ac_exeext
13034 { $as_echo "$as_me:$LINENO: result: yes" >&5
13035 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13036 #define HAVE_UP_BC_PC 1
13040 $as_echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.
$ac_ext >&5
13043 { $as_echo "$as_me:$LINENO: result: no" >&5
13044 $as_echo "no" >&6; }
13045 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13046 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13047 cat >conftest.
$ac_ext <<_ACEOF
13050 cat confdefs.h
>>conftest.
$ac_ext
13051 cat >>conftest.
$ac_ext <<_ACEOF
13052 /* end confdefs.h. */
13054 #ifdef HAVE_TERMCAP_H
13055 # include <termcap.h>
13057 extern char *UP, *BC, PC;
13062 if (UP == 0 && BC == 0) PC = 1
13067 rm -f conftest.
$ac_objext conftest
$ac_exeext
13068 if { (ac_try
="$ac_link"
13069 case "(($ac_try" in
13070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13074 $as_echo "$ac_try_echo") >&5
13075 (eval "$ac_link") 2>conftest.er1
13077 grep -v '^ *+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } && {
13082 test -z "$ac_c_werror_flag" ||
13083 test ! -s conftest.err
13084 } && test -s conftest$ac_exeext && {
13085 test "$cross_compiling" = yes ||
13086 $as_test_x conftest$ac_exeext
13088 { $as_echo "$as_me:$LINENO: result: yes" >&5
13089 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13090 #define UP_BC_PC_EXTERN 1
13094 $as_echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 { $as_echo "$as_me:$LINENO: result: no" >&5
13098 $as_echo "no" >&6; }
13101 rm -rf conftest.dSYM
13102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13103 conftest$ac_exeext conftest.$ac_ext
13107 rm -rf conftest.dSYM
13108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13109 conftest$ac_exeext conftest.$ac_ext
13111 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13112 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13113 cat >conftest.$ac_ext <<_ACEOF
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13120 #ifdef HAVE_TERMCAP_H
13121 # include <termcap.h>
13127 extern int xx(); tputs("test", 1, (outfuntype)xx)
13132 rm -f conftest.$ac_objext
13133 if { (ac_try="$ac_compile"
13134 case "(($ac_try" in
13135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13136 *) ac_try_echo
=$ac_try;;
13138 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13139 $as_echo "$ac_try_echo") >&5
13140 (eval "$ac_compile") 2>conftest.er1
13142 grep -v '^ *+' conftest.er1
>conftest.err
13144 cat conftest.err
>&5
13145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } && {
13147 test -z "$ac_c_werror_flag" ||
13148 test ! -s conftest.err
13149 } && test -s conftest.
$ac_objext; then
13150 { $as_echo "$as_me:$LINENO: result: yes" >&5
13151 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13152 #define HAVE_OUTFUNTYPE 1
13156 $as_echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.
$ac_ext >&5
13159 { $as_echo "$as_me:$LINENO: result: no" >&5
13160 $as_echo "no" >&6; }
13163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13165 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13166 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13167 cat >conftest.
$ac_ext <<_ACEOF
13170 cat confdefs.h
>>conftest.
$ac_ext
13171 cat >>conftest.
$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13174 #include <sys/types.h>
13175 #include <sys/time.h>
13176 #include <sys/select.h>
13185 rm -f conftest.
$ac_objext
13186 if { (ac_try
="$ac_compile"
13187 case "(($ac_try" in
13188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13192 $as_echo "$ac_try_echo") >&5
13193 (eval "$ac_compile") 2>conftest.er1
13195 grep -v '^ *+' conftest.er1 >conftest.err
13197 cat conftest.err >&5
13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && {
13200 test -z "$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 } && test -s conftest.$ac_objext; then
13203 { $as_echo "$as_me:$LINENO: result: yes" >&5
13204 $as_echo "yes" >&6; }
13205 cat >>confdefs.h <<\_ACEOF
13206 #define SYS_SELECT_WITH_SYS_TIME 1
13210 $as_echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13213 { $as_echo "$as_me:$LINENO: result: no" >&5
13214 $as_echo "no" >&6; }
13217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13221 $as_echo_n "checking for /dev/ptc... " >&6; }
13222 if test -r /dev/ptc; then
13223 cat >>confdefs.h <<\_ACEOF
13224 #define HAVE_DEV_PTC 1
13227 { $as_echo "$as_me:$LINENO: result: yes" >&5
13228 $as_echo "yes" >&6; }
13230 { $as_echo "$as_me:$LINENO: result: no" >&5
13231 $as_echo "no" >&6; }
13234 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13235 $as_echo_n "checking for SVR4 ptys... " >&6; }
13236 if test -c /dev/ptmx ; then
13237 cat >conftest.$ac_ext <<_ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13247 ptsname(0);grantpt(0);unlockpt(0);
13252 rm -f conftest.$ac_objext conftest$ac_exeext
13253 if { (ac_try="$ac_link"
13254 case "(($ac_try" in
13255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13256 *) ac_try_echo
=$ac_try;;
13258 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13259 $as_echo "$ac_try_echo") >&5
13260 (eval "$ac_link") 2>conftest.er1
13262 grep -v '^ *+' conftest.er1
>conftest.err
13264 cat conftest.err
>&5
13265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } && {
13267 test -z "$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 } && test -s conftest
$ac_exeext && {
13270 test "$cross_compiling" = yes ||
13271 $as_test_x conftest
$ac_exeext
13273 { $as_echo "$as_me:$LINENO: result: yes" >&5
13274 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13275 #define HAVE_SVR4_PTYS 1
13279 $as_echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.
$ac_ext >&5
13282 { $as_echo "$as_me:$LINENO: result: no" >&5
13283 $as_echo "no" >&6; }
13286 rm -rf conftest.dSYM
13287 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13288 conftest
$ac_exeext conftest.
$ac_ext
13290 { $as_echo "$as_me:$LINENO: result: no" >&5
13291 $as_echo "no" >&6; }
13294 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13295 $as_echo_n "checking for ptyranges... " >&6; }
13296 if test -d /dev
/ptym
; then
13301 cat >conftest.
$ac_ext <<_ACEOF
13304 cat confdefs.h
>>conftest.
$ac_ext
13305 cat >>conftest.
$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13313 $EGREP "yes" >/dev
/null
2>&1; then
13314 ptys
=`echo /dev/ptyp??`
13316 ptys
=`echo $pdir/pty??`
13320 if test "$ptys" != "$pdir/pty??" ; then
13321 p0
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13322 p1
=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
13323 cat >>confdefs.h
<<_ACEOF
13324 #define PTYRANGE0 "$p0"
13327 cat >>confdefs.h
<<_ACEOF
13328 #define PTYRANGE1 "$p1"
13331 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13332 $as_echo "$p0 / $p1" >&6; }
13334 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13335 $as_echo "don't know" >&6; }
13339 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13340 $as_echo_n "checking default tty permissions/group... " >&6; }
13341 if test "${vim_cv_tty_group+set}" = set; then
13342 $as_echo_n "(cached) " >&6
13345 if test "$cross_compiling" = yes; then
13347 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13348 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13349 { (exit 1); exit 1; }; }
13352 cat >conftest.
$ac_ext <<_ACEOF
13354 #include "confdefs.h"
13355 #include <sys/types.h>
13357 # include <stdlib.h>
13358 # include <stddef.h>
13360 #ifdef HAVE_UNISTD_H
13361 #include <unistd.h>
13363 #include <sys/stat.h>
13368 char *x,*ttyname();
13372 if (!(x = ttyname(0))) exit(1);
13373 if (stat(x, &sb)) exit(1);
13375 if (om & 002) exit(0);
13376 m = system("mesg y");
13377 if (m == -1 || m == 127) exit(1);
13378 if (stat(x, &sb)) exit(1);
13380 if (chmod(x, om)) exit(1);
13381 if (m & 002) exit(0);
13382 if (sb.st_gid == getgid()) exit(1);
13383 if (!(fp=fopen("conftest_grp", "w")))
13385 fprintf(fp, "%d\n", sb.st_gid);
13391 rm -f conftest
$ac_exeext
13392 if { (ac_try
="$ac_link"
13393 case "(($ac_try" in
13394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13398 $as_echo "$ac_try_echo") >&5
13399 (eval "$ac_link") 2>&5
13401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13403 { (case "(($ac_try" in
13404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13405 *) ac_try_echo
=$ac_try;;
13407 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13408 $as_echo "$ac_try_echo") >&5
13409 (eval "$ac_try") 2>&5
13411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13414 if test -f conftest_grp
; then
13415 vim_cv_tty_group
=`cat conftest_grp`
13416 if test "x$vim_cv_tty_mode" = "x" ; then
13417 vim_cv_tty_mode
=0620
13419 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13420 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13422 vim_cv_tty_group
=world
13423 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13424 $as_echo "ptys are world accessable" >&6; }
13428 $as_echo "$as_me: program exited with status $ac_status" >&5
13429 $as_echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.
$ac_ext >&5
13432 ( exit $ac_status )
13434 vim_cv_tty_group
=world
13435 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13436 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13439 rm -rf conftest.dSYM
13440 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13446 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13447 $as_echo "$vim_cv_tty_group" >&6; }
13450 if test "x$vim_cv_tty_group" != "xworld" ; then
13451 cat >>confdefs.h
<<_ACEOF
13452 #define PTYGROUP $vim_cv_tty_group
13455 if test "x$vim_cv_tty_mode" = "x" ; then
13456 { { $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
13457 $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;}
13458 { (exit 1); exit 1; }; }
13460 cat >>confdefs.h
<<\_ACEOF
13461 #define PTYMODE 0620
13468 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13469 $as_echo_n "checking return type of signal handlers... " >&6; }
13470 if test "${ac_cv_type_signal+set}" = set; then
13471 $as_echo_n "(cached) " >&6
13473 cat >conftest.
$ac_ext <<_ACEOF
13476 cat confdefs.h
>>conftest.
$ac_ext
13477 cat >>conftest.
$ac_ext <<_ACEOF
13478 /* end confdefs.h. */
13479 #include <sys/types.h>
13480 #include <signal.h>
13485 return *(signal (0, 0)) (0) == 1;
13490 rm -f conftest.
$ac_objext
13491 if { (ac_try
="$ac_compile"
13492 case "(($ac_try" in
13493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13497 $as_echo "$ac_try_echo") >&5
13498 (eval "$ac_compile") 2>conftest.er1
13500 grep -v '^ *+' conftest.er1 >conftest.err
13502 cat conftest.err >&5
13503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } && {
13505 test -z "$ac_c_werror_flag" ||
13506 test ! -s conftest.err
13507 } && test -s conftest.$ac_objext; then
13508 ac_cv_type_signal=int
13510 $as_echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13513 ac_cv_type_signal=void
13516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13518 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13519 $as_echo "$ac_cv_type_signal" >&6; }
13521 cat >>confdefs.h <<_ACEOF
13522 #define RETSIGTYPE $ac_cv_type_signal
13527 if test $ac_cv_type_signal = void; then
13528 cat >>confdefs.h <<\_ACEOF
13529 #define SIGRETURN return
13533 cat >>confdefs.h <<\_ACEOF
13534 #define SIGRETURN return 0
13539 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13540 $as_echo_n "checking for struct sigcontext... " >&6; }
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 #include <signal.h>
13551 struct sigcontext *scont;
13552 scont = (struct sigcontext *)0;
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13567 *) ac_try_echo
=$ac_try;;
13569 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13570 $as_echo "$ac_try_echo") >&5
13571 (eval "$ac_compile") 2>conftest.er1
13573 grep -v '^ *+' conftest.er1
>conftest.err
13575 cat conftest.err
>&5
13576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } && {
13578 test -z "$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13580 } && test -s conftest.
$ac_objext; then
13581 { $as_echo "$as_me:$LINENO: result: yes" >&5
13582 $as_echo "yes" >&6; }
13583 cat >>confdefs.h
<<\_ACEOF
13584 #define HAVE_SIGCONTEXT 1
13588 $as_echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.
$ac_ext >&5
13591 { $as_echo "$as_me:$LINENO: result: no" >&5
13592 $as_echo "no" >&6; }
13595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13597 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13598 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13599 if test "${vim_cv_getcwd_broken+set}" = set; then
13600 $as_echo_n "(cached) " >&6
13603 if test "$cross_compiling" = yes; then
13605 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13606 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13607 { (exit 1); exit 1; }; }
13610 cat >conftest.
$ac_ext <<_ACEOF
13612 #include "confdefs.h"
13613 #ifdef HAVE_UNISTD_H
13614 #include <unistd.h>
13616 char *dagger[] = { "IFS=pwd", 0 };
13620 extern char **environ;
13622 return getcwd(buffer, 500) ? 0 : 1;
13626 rm -f conftest
$ac_exeext
13627 if { (ac_try
="$ac_link"
13628 case "(($ac_try" in
13629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13633 $as_echo "$ac_try_echo") >&5
13634 (eval "$ac_link") 2>&5
13636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13640 *) ac_try_echo
=$ac_try;;
13642 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13643 $as_echo "$ac_try_echo") >&5
13644 (eval "$ac_try") 2>&5
13646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13649 vim_cv_getcwd_broken
=no
13652 $as_echo "$as_me: program exited with status $ac_status" >&5
13653 $as_echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.
$ac_ext >&5
13656 ( exit $ac_status )
13658 vim_cv_getcwd_broken
=yes
13661 rm -rf conftest.dSYM
13662 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13668 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13669 $as_echo "$vim_cv_getcwd_broken" >&6; }
13671 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13672 cat >>confdefs.h
<<\_ACEOF
13673 #define BAD_GETCWD 1
13724 for ac_func
in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13725 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13726 memset nanosleep opendir putenv qsort readlink
select setenv \
13727 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13728 sigvec strcasecmp strerror strftime stricmp strncasecmp \
13729 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
13730 usleep utime utimes
13732 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13733 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13734 $as_echo_n "checking for $ac_func... " >&6; }
13735 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13736 $as_echo_n "(cached) " >&6
13738 cat >conftest.
$ac_ext <<_ACEOF
13741 cat confdefs.h
>>conftest.
$ac_ext
13742 cat >>conftest.
$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13746 #define $ac_func innocuous_$ac_func
13748 /* System header to define __stub macros and hopefully few prototypes,
13749 which can conflict with char $ac_func (); below.
13750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13751 <limits.h> exists even on freestanding compilers. */
13754 # include <limits.h>
13756 # include <assert.h>
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13768 /* The GNU C library defines this for functions which it implements
13769 to always fail with ENOSYS. Some functions are actually named
13770 something starting with __ and the normal name is an alias. */
13771 #if defined __stub_$ac_func || defined __stub___$ac_func
13778 return $ac_func ();
13783 rm -f conftest.
$ac_objext conftest
$ac_exeext
13784 if { (ac_try
="$ac_link"
13785 case "(($ac_try" in
13786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13787 *) ac_try_echo=$ac_try;;
13789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13790 $as_echo "$ac_try_echo") >&5
13791 (eval "$ac_link") 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } && {
13798 test -z "$ac_c_werror_flag" ||
13799 test ! -s conftest.err
13800 } && test -s conftest$ac_exeext && {
13801 test "$cross_compiling" = yes ||
13802 $as_test_x conftest$ac_exeext
13804 eval "$as_ac_var=yes"
13806 $as_echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 eval "$as_ac_var=no"
13812 rm -rf conftest.dSYM
13813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13814 conftest$ac_exeext conftest.$ac_ext
13816 ac_res=`eval 'as_val=${'$as_ac_var'}
13817 $as_echo "$as_val"'`
13818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13819 $as_echo "$ac_res" >&6; }
13820 if test `eval 'as_val=${'$as_ac_var'}
13821 $as_echo "$as_val"'` = yes; then
13822 cat >>confdefs.h <<_ACEOF
13823 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13830 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
13831 $as_echo_n "checking for st_blksize... " >&6; }
13832 cat >conftest.$ac_ext <<_ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 #include <sys/types.h>
13839 #include <sys/stat.h>
13847 n = (int)st.st_blksize;
13852 rm -f conftest.$ac_objext
13853 if { (ac_try="$ac_compile"
13854 case "(($ac_try" in
13855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13856 *) ac_try_echo
=$ac_try;;
13858 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13859 $as_echo "$ac_try_echo") >&5
13860 (eval "$ac_compile") 2>conftest.er1
13862 grep -v '^ *+' conftest.er1
>conftest.err
13864 cat conftest.err
>&5
13865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } && {
13867 test -z "$ac_c_werror_flag" ||
13868 test ! -s conftest.err
13869 } && test -s conftest.
$ac_objext; then
13870 { $as_echo "$as_me:$LINENO: result: yes" >&5
13871 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13872 #define HAVE_ST_BLKSIZE 1
13876 $as_echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.
$ac_ext >&5
13879 { $as_echo "$as_me:$LINENO: result: no" >&5
13880 $as_echo "no" >&6; }
13883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13885 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13886 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
13887 if test "${vim_cv_stat_ignores_slash+set}" = set; then
13888 $as_echo_n "(cached) " >&6
13891 if test "$cross_compiling" = yes; then
13893 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
13894 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
13895 { (exit 1); exit 1; }; }
13898 cat >conftest.
$ac_ext <<_ACEOF
13900 #include "confdefs.h"
13902 # include <stdlib.h>
13903 # include <stddef.h>
13905 #include <sys/types.h>
13906 #include <sys/stat.h>
13907 main() {struct stat st; exit(stat("configure/", &st) != 0); }
13910 rm -f conftest
$ac_exeext
13911 if { (ac_try
="$ac_link"
13912 case "(($ac_try" in
13913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13917 $as_echo "$ac_try_echo") >&5
13918 (eval "$ac_link") 2>&5
13920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13922 { (case "(($ac_try" in
13923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13924 *) ac_try_echo
=$ac_try;;
13926 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13927 $as_echo "$ac_try_echo") >&5
13928 (eval "$ac_try") 2>&5
13930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13933 vim_cv_stat_ignores_slash
=yes
13936 $as_echo "$as_me: program exited with status $ac_status" >&5
13937 $as_echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.
$ac_ext >&5
13940 ( exit $ac_status )
13942 vim_cv_stat_ignores_slash
=no
13945 rm -rf conftest.dSYM
13946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13952 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
13953 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
13955 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
13956 cat >>confdefs.h
<<\_ACEOF
13957 #define STAT_IGNORES_SLASH 1
13962 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
13963 $as_echo_n "checking for iconv_open()... " >&6; }
13965 LIBS
="$LIBS -liconv"
13966 cat >conftest.
$ac_ext <<_ACEOF
13969 cat confdefs.h
>>conftest.
$ac_ext
13970 cat >>conftest.
$ac_ext <<_ACEOF
13971 /* end confdefs.h. */
13973 #ifdef HAVE_ICONV_H
13974 # include <iconv.h>
13980 iconv_open("fr", "to");
13985 rm -f conftest.
$ac_objext conftest
$ac_exeext
13986 if { (ac_try
="$ac_link"
13987 case "(($ac_try" in
13988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13992 $as_echo "$ac_try_echo") >&5
13993 (eval "$ac_link") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext && {
14003 test "$cross_compiling" = yes ||
14004 $as_test_x conftest$ac_exeext
14006 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14007 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h <<\_ACEOF
14008 #define HAVE_ICONV 1
14012 $as_echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14016 cat >conftest.$ac_ext <<_ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14023 #ifdef HAVE_ICONV_H
14024 # include <iconv.h>
14030 iconv_open("fr", "to");
14035 rm -f conftest.$ac_objext conftest$ac_exeext
14036 if { (ac_try="$ac_link"
14037 case "(($ac_try" in
14038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14039 *) ac_try_echo
=$ac_try;;
14041 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14042 $as_echo "$ac_try_echo") >&5
14043 (eval "$ac_link") 2>conftest.er1
14045 grep -v '^ *+' conftest.er1
>conftest.err
14047 cat conftest.err
>&5
14048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } && {
14050 test -z "$ac_c_werror_flag" ||
14051 test ! -s conftest.err
14052 } && test -s conftest
$ac_exeext && {
14053 test "$cross_compiling" = yes ||
14054 $as_test_x conftest
$ac_exeext
14056 { $as_echo "$as_me:$LINENO: result: yes" >&5
14057 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14058 #define HAVE_ICONV 1
14062 $as_echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.
$ac_ext >&5
14065 { $as_echo "$as_me:$LINENO: result: no" >&5
14066 $as_echo "no" >&6; }
14069 rm -rf conftest.dSYM
14070 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14071 conftest
$ac_exeext conftest.
$ac_ext
14074 rm -rf conftest.dSYM
14075 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14076 conftest
$ac_exeext conftest.
$ac_ext
14079 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14080 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14081 cat >conftest.
$ac_ext <<_ACEOF
14084 cat confdefs.h
>>conftest.
$ac_ext
14085 cat >>conftest.
$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14088 #ifdef HAVE_LANGINFO_H
14089 # include <langinfo.h>
14095 char *cs = nl_langinfo(CODESET);
14100 rm -f conftest.
$ac_objext conftest
$ac_exeext
14101 if { (ac_try
="$ac_link"
14102 case "(($ac_try" in
14103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14107 $as_echo "$ac_try_echo") >&5
14108 (eval "$ac_link") 2>conftest.er1
14110 grep -v '^ *+' conftest.er1 >conftest.err
14112 cat conftest.err >&5
14113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } && {
14115 test -z "$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14117 } && test -s conftest$ac_exeext && {
14118 test "$cross_compiling" = yes ||
14119 $as_test_x conftest$ac_exeext
14121 { $as_echo "$as_me:$LINENO: result: yes" >&5
14122 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_NL_LANGINFO_CODESET 1
14127 $as_echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14130 { $as_echo "$as_me:$LINENO: result: no" >&5
14131 $as_echo "no" >&6; }
14134 rm -rf conftest.dSYM
14135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14136 conftest$ac_exeext conftest.$ac_ext
14139 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14140 $as_echo_n "checking for strtod in -lm... " >&6; }
14141 if test "${ac_cv_lib_m_strtod+set}" = set; then
14142 $as_echo_n "(cached) " >&6
14144 ac_check_lib_save_LIBS=$LIBS
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (ac_try="$ac_link"
14170 case "(($ac_try" in
14171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14172 *) ac_try_echo
=$ac_try;;
14174 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14175 $as_echo "$ac_try_echo") >&5
14176 (eval "$ac_link") 2>conftest.er1
14178 grep -v '^ *+' conftest.er1
>conftest.err
14180 cat conftest.err
>&5
14181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } && {
14183 test -z "$ac_c_werror_flag" ||
14184 test ! -s conftest.err
14185 } && test -s conftest
$ac_exeext && {
14186 test "$cross_compiling" = yes ||
14187 $as_test_x conftest
$ac_exeext
14189 ac_cv_lib_m_strtod
=yes
14191 $as_echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.
$ac_ext >&5
14194 ac_cv_lib_m_strtod
=no
14197 rm -rf conftest.dSYM
14198 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14199 conftest
$ac_exeext conftest.
$ac_ext
14200 LIBS
=$ac_check_lib_save_LIBS
14202 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14203 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14204 if test $ac_cv_lib_m_strtod = yes; then
14205 cat >>confdefs.h
<<_ACEOF
14206 #define HAVE_LIBM 1
14213 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14214 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14215 cat >conftest.
$ac_ext <<_ACEOF
14218 cat confdefs.h
>>conftest.
$ac_ext
14219 cat >>conftest.
$ac_ext <<_ACEOF
14220 /* end confdefs.h. */
14226 # include <stdlib.h>
14227 # include <stddef.h>
14234 d = strtod("1.1", &s);
14239 d = pow(1.11, 2.22);
14249 rm -f conftest.
$ac_objext conftest
$ac_exeext
14250 if { (ac_try
="$ac_link"
14251 case "(($ac_try" in
14252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14256 $as_echo "$ac_try_echo") >&5
14257 (eval "$ac_link") 2>conftest.er1
14259 grep -v '^ *+' conftest.er1 >conftest.err
14261 cat conftest.err >&5
14262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } && {
14264 test -z "$ac_c_werror_flag" ||
14265 test ! -s conftest.err
14266 } && test -s conftest$ac_exeext && {
14267 test "$cross_compiling" = yes ||
14268 $as_test_x conftest$ac_exeext
14270 { $as_echo "$as_me:$LINENO: result: yes" >&5
14271 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14272 #define HAVE_FLOAT_FUNCS 1
14276 $as_echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 { $as_echo "$as_me:$LINENO: result: no" >&5
14280 $as_echo "no" >&6; }
14283 rm -rf conftest.dSYM
14284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14285 conftest$ac_exeext conftest.$ac_ext
14287 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14288 $as_echo_n "checking --disable-acl argument... " >&6; }
14289 # Check whether --enable-acl was given.
14290 if test "${enable_acl+set}" = set; then
14291 enableval=$enable_acl;
14296 if test "$enable_acl" = "yes"; then
14297 { $as_echo "$as_me:$LINENO: result: no" >&5
14298 $as_echo "no" >&6; }
14299 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14300 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14301 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14302 $as_echo_n "(cached) " >&6
14304 ac_check_lib_save_LIBS=$LIBS
14305 LIBS="-lposix1e $LIBS"
14306 cat >conftest.$ac_ext <<_ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14313 /* Override any GCC internal prototype to avoid an error.
14314 Use char because int might match the return type of a GCC
14315 builtin and then its argument prototype would still apply. */
14319 char acl_get_file ();
14323 return acl_get_file ();
14328 rm -f conftest.$ac_objext conftest$ac_exeext
14329 if { (ac_try="$ac_link"
14330 case "(($ac_try" in
14331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14332 *) ac_try_echo
=$ac_try;;
14334 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14335 $as_echo "$ac_try_echo") >&5
14336 (eval "$ac_link") 2>conftest.er1
14338 grep -v '^ *+' conftest.er1
>conftest.err
14340 cat conftest.err
>&5
14341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } && {
14343 test -z "$ac_c_werror_flag" ||
14344 test ! -s conftest.err
14345 } && test -s conftest
$ac_exeext && {
14346 test "$cross_compiling" = yes ||
14347 $as_test_x conftest
$ac_exeext
14349 ac_cv_lib_posix1e_acl_get_file
=yes
14351 $as_echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.
$ac_ext >&5
14354 ac_cv_lib_posix1e_acl_get_file
=no
14357 rm -rf conftest.dSYM
14358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14359 conftest
$ac_exeext conftest.
$ac_ext
14360 LIBS
=$ac_check_lib_save_LIBS
14362 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14363 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14364 if test $ac_cv_lib_posix1e_acl_get_file = yes; then
14365 LIBS
="$LIBS -lposix1e"
14367 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14368 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14369 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14370 $as_echo_n "(cached) " >&6
14372 ac_check_lib_save_LIBS
=$LIBS
14374 cat >conftest.
$ac_ext <<_ACEOF
14377 cat confdefs.h
>>conftest.
$ac_ext
14378 cat >>conftest.
$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14381 /* Override any GCC internal prototype to avoid an error.
14382 Use char because int might match the return type of a GCC
14383 builtin and then its argument prototype would still apply. */
14387 char acl_get_file ();
14391 return acl_get_file ();
14396 rm -f conftest.
$ac_objext conftest
$ac_exeext
14397 if { (ac_try
="$ac_link"
14398 case "(($ac_try" in
14399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14403 $as_echo "$ac_try_echo") >&5
14404 (eval "$ac_link") 2>conftest.er1
14406 grep -v '^ *+' conftest.er1 >conftest.err
14408 cat conftest.err >&5
14409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); } && {
14411 test -z "$ac_c_werror_flag" ||
14412 test ! -s conftest.err
14413 } && test -s conftest$ac_exeext && {
14414 test "$cross_compiling" = yes ||
14415 $as_test_x conftest$ac_exeext
14417 ac_cv_lib_acl_acl_get_file=yes
14419 $as_echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_cv_lib_acl_acl_get_file=no
14425 rm -rf conftest.dSYM
14426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14427 conftest$ac_exeext conftest.$ac_ext
14428 LIBS=$ac_check_lib_save_LIBS
14430 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14431 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14432 if test $ac_cv_lib_acl_acl_get_file = yes; then
14434 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14435 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14436 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14437 $as_echo_n "(cached) " >&6
14439 ac_check_lib_save_LIBS=$LIBS
14440 LIBS="-lattr $LIBS"
14441 cat >conftest.$ac_ext <<_ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14448 /* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
14450 builtin and then its argument prototype would still apply. */
14458 return fgetxattr ();
14463 rm -f conftest.$ac_objext conftest$ac_exeext
14464 if { (ac_try="$ac_link"
14465 case "(($ac_try" in
14466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14467 *) ac_try_echo
=$ac_try;;
14469 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14470 $as_echo "$ac_try_echo") >&5
14471 (eval "$ac_link") 2>conftest.er1
14473 grep -v '^ *+' conftest.er1
>conftest.err
14475 cat conftest.err
>&5
14476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } && {
14478 test -z "$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 } && test -s conftest
$ac_exeext && {
14481 test "$cross_compiling" = yes ||
14482 $as_test_x conftest
$ac_exeext
14484 ac_cv_lib_attr_fgetxattr
=yes
14486 $as_echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.
$ac_ext >&5
14489 ac_cv_lib_attr_fgetxattr
=no
14492 rm -rf conftest.dSYM
14493 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14494 conftest
$ac_exeext conftest.
$ac_ext
14495 LIBS
=$ac_check_lib_save_LIBS
14497 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14498 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14499 if test $ac_cv_lib_attr_fgetxattr = yes; then
14500 LIBS
="$LIBS -lattr"
14508 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14509 $as_echo_n "checking for POSIX ACL support... " >&6; }
14510 cat >conftest.
$ac_ext <<_ACEOF
14513 cat confdefs.h
>>conftest.
$ac_ext
14514 cat >>conftest.
$ac_ext <<_ACEOF
14515 /* end confdefs.h. */
14517 #include <sys/types.h>
14518 #ifdef HAVE_SYS_ACL_H
14519 # include <sys/acl.h>
14525 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14526 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14532 rm -f conftest.
$ac_objext conftest
$ac_exeext
14533 if { (ac_try
="$ac_link"
14534 case "(($ac_try" in
14535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14539 $as_echo "$ac_try_echo") >&5
14540 (eval "$ac_link") 2>conftest.er1
14542 grep -v '^ *+' conftest.er1 >conftest.err
14544 cat conftest.err >&5
14545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } && {
14547 test -z "$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 } && test -s conftest$ac_exeext && {
14550 test "$cross_compiling" = yes ||
14551 $as_test_x conftest$ac_exeext
14553 { $as_echo "$as_me:$LINENO: result: yes" >&5
14554 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_POSIX_ACL 1
14559 $as_echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14562 { $as_echo "$as_me:$LINENO: result: no" >&5
14563 $as_echo "no" >&6; }
14566 rm -rf conftest.dSYM
14567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14568 conftest$ac_exeext conftest.$ac_ext
14570 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14571 $as_echo_n "checking for Solaris ACL support... " >&6; }
14572 cat >conftest.$ac_ext <<_ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14579 #ifdef HAVE_SYS_ACL_H
14580 # include <sys/acl.h>
14585 acl("foo", GETACLCNT, 0, NULL);
14591 rm -f conftest.$ac_objext conftest$ac_exeext
14592 if { (ac_try="$ac_link"
14593 case "(($ac_try" in
14594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14595 *) ac_try_echo
=$ac_try;;
14597 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14598 $as_echo "$ac_try_echo") >&5
14599 (eval "$ac_link") 2>conftest.er1
14601 grep -v '^ *+' conftest.er1
>conftest.err
14603 cat conftest.err
>&5
14604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } && {
14606 test -z "$ac_c_werror_flag" ||
14607 test ! -s conftest.err
14608 } && test -s conftest
$ac_exeext && {
14609 test "$cross_compiling" = yes ||
14610 $as_test_x conftest
$ac_exeext
14612 { $as_echo "$as_me:$LINENO: result: yes" >&5
14613 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14614 #define HAVE_SOLARIS_ACL 1
14618 $as_echo "$as_me: failed program was:" >&5
14619 sed 's/^/| /' conftest.
$ac_ext >&5
14621 { $as_echo "$as_me:$LINENO: result: no" >&5
14622 $as_echo "no" >&6; }
14625 rm -rf conftest.dSYM
14626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14627 conftest
$ac_exeext conftest.
$ac_ext
14629 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14630 $as_echo_n "checking for AIX ACL support... " >&6; }
14631 cat >conftest.
$ac_ext <<_ACEOF
14634 cat confdefs.h
>>conftest.
$ac_ext
14635 cat >>conftest.
$ac_ext <<_ACEOF
14636 /* end confdefs.h. */
14639 # include <stdlib.h>
14640 # include <stddef.h>
14642 #ifdef HAVE_SYS_ACL_H
14643 # include <sys/acl.h>
14645 #ifdef HAVE_SYS_ACCESS_H
14646 # include <sys/access.h>
14648 #define _ALL_SOURCE
14650 #include <sys/stat.h>
14653 struct acl *aclent;
14657 aclsize = sizeof(struct acl);
14658 aclent = (void *)malloc(aclsize);
14659 statacl("foo", STX_NORMAL, aclent, aclsize);
14665 rm -f conftest.
$ac_objext conftest
$ac_exeext
14666 if { (ac_try
="$ac_link"
14667 case "(($ac_try" in
14668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14669 *) ac_try_echo=$ac_try;;
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673 (eval "$ac_link") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } && {
14680 test -z "$ac_c_werror_flag" ||
14681 test ! -s conftest.err
14682 } && test -s conftest$ac_exeext && {
14683 test "$cross_compiling" = yes ||
14684 $as_test_x conftest$ac_exeext
14686 { $as_echo "$as_me:$LINENO: result: yes" >&5
14687 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_AIX_ACL 1
14692 $as_echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14695 { $as_echo "$as_me:$LINENO: result: no" >&5
14696 $as_echo "no" >&6; }
14699 rm -rf conftest.dSYM
14700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14701 conftest$ac_exeext conftest.$ac_ext
14703 { $as_echo "$as_me:$LINENO: result: yes" >&5
14704 $as_echo "yes" >&6; }
14707 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14708 $as_echo_n "checking --disable-gpm argument... " >&6; }
14709 # Check whether --enable-gpm was given.
14710 if test "${enable_gpm+set}" = set; then
14711 enableval=$enable_gpm;
14717 if test "$enable_gpm" = "yes"; then
14718 { $as_echo "$as_me:$LINENO: result: no" >&5
14719 $as_echo "no" >&6; }
14720 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
14721 $as_echo_n "checking for gpm... " >&6; }
14722 if test "${vi_cv_have_gpm+set}" = set; then
14723 $as_echo_n "(cached) " >&6
14725 olibs="$LIBS" ; LIBS="-lgpm"
14726 cat >conftest.$ac_ext <<_ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h. */
14733 #include <linux/keyboard.h>
14737 Gpm_GetLibVersion(NULL);
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (ac_try="$ac_link"
14744 case "(($ac_try" in
14745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14746 *) ac_try_echo
=$ac_try;;
14748 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14749 $as_echo "$ac_try_echo") >&5
14750 (eval "$ac_link") 2>conftest.er1
14752 grep -v '^ *+' conftest.er1
>conftest.err
14754 cat conftest.err
>&5
14755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } && {
14757 test -z "$ac_c_werror_flag" ||
14758 test ! -s conftest.err
14759 } && test -s conftest
$ac_exeext && {
14760 test "$cross_compiling" = yes ||
14761 $as_test_x conftest
$ac_exeext
14765 $as_echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.
$ac_ext >&5
14771 rm -rf conftest.dSYM
14772 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14773 conftest
$ac_exeext conftest.
$ac_ext
14777 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14778 $as_echo "$vi_cv_have_gpm" >&6; }
14779 if test $vi_cv_have_gpm = yes; then
14781 cat >>confdefs.h
<<\_ACEOF
14787 { $as_echo "$as_me:$LINENO: result: yes" >&5
14788 $as_echo "yes" >&6; }
14791 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
14792 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
14793 # Check whether --enable-sysmouse was given.
14794 if test "${enable_sysmouse+set}" = set; then
14795 enableval
=$enable_sysmouse;
14797 enable_sysmouse
="yes"
14801 if test "$enable_sysmouse" = "yes"; then
14802 { $as_echo "$as_me:$LINENO: result: no" >&5
14803 $as_echo "no" >&6; }
14804 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
14805 $as_echo_n "checking for sysmouse... " >&6; }
14806 if test "${vi_cv_have_sysmouse+set}" = set; then
14807 $as_echo_n "(cached) " >&6
14809 cat >conftest.
$ac_ext <<_ACEOF
14812 cat confdefs.h
>>conftest.
$ac_ext
14813 cat >>conftest.
$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 #include <sys/consio.h>
14816 #include <signal.h>
14817 #include <sys/fbio.h>
14821 struct mouse_info mouse;
14822 mouse.operation = MOUSE_MODE;
14823 mouse.operation = MOUSE_SHOW;
14824 mouse.u.mode.mode = 0;
14825 mouse.u.mode.signal = SIGUSR2;
14830 rm -f conftest.
$ac_objext conftest
$ac_exeext
14831 if { (ac_try
="$ac_link"
14832 case "(($ac_try" in
14833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14837 $as_echo "$ac_try_echo") >&5
14838 (eval "$ac_link") 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest$ac_exeext && {
14848 test "$cross_compiling" = yes ||
14849 $as_test_x conftest$ac_exeext
14851 vi_cv_have_sysmouse=yes
14853 $as_echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 vi_cv_have_sysmouse=no
14859 rm -rf conftest.dSYM
14860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14861 conftest$ac_exeext conftest.$ac_ext
14864 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
14865 $as_echo "$vi_cv_have_sysmouse" >&6; }
14866 if test $vi_cv_have_sysmouse = yes; then
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_SYSMOUSE 1
14873 { $as_echo "$as_me:$LINENO: result: yes" >&5
14874 $as_echo "yes" >&6; }
14877 { $as_echo "$as_me:$LINENO: checking for rename" >&5
14878 $as_echo_n "checking for rename... " >&6; }
14879 cat >conftest.$ac_ext <<_ACEOF
14882 cat confdefs.h >>conftest.$ac_ext
14883 cat >>conftest.$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14889 rename("this", "that")
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (ac_try="$ac_link"
14896 case "(($ac_try" in
14897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14898 *) ac_try_echo
=$ac_try;;
14900 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14901 $as_echo "$ac_try_echo") >&5
14902 (eval "$ac_link") 2>conftest.er1
14904 grep -v '^ *+' conftest.er1
>conftest.err
14906 cat conftest.err
>&5
14907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); } && {
14909 test -z "$ac_c_werror_flag" ||
14910 test ! -s conftest.err
14911 } && test -s conftest
$ac_exeext && {
14912 test "$cross_compiling" = yes ||
14913 $as_test_x conftest
$ac_exeext
14915 { $as_echo "$as_me:$LINENO: result: yes" >&5
14916 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14917 #define HAVE_RENAME 1
14921 $as_echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.
$ac_ext >&5
14924 { $as_echo "$as_me:$LINENO: result: no" >&5
14925 $as_echo "no" >&6; }
14928 rm -rf conftest.dSYM
14929 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14930 conftest
$ac_exeext conftest.
$ac_ext
14932 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
14933 $as_echo_n "checking for sysctl... " >&6; }
14934 cat >conftest.
$ac_ext <<_ACEOF
14937 cat confdefs.h
>>conftest.
$ac_ext
14938 cat >>conftest.
$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #include <sys/types.h>
14941 #include <sys/sysctl.h>
14949 mib[1] = HW_USERMEM;
14951 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
14957 rm -f conftest.
$ac_objext
14958 if { (ac_try
="$ac_compile"
14959 case "(($ac_try" in
14960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14964 $as_echo "$ac_try_echo") >&5
14965 (eval "$ac_compile") 2>conftest.er1
14967 grep -v '^ *+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
14974 } && test -s conftest.$ac_objext; then
14975 { $as_echo "$as_me:$LINENO: result: yes" >&5
14976 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14977 #define HAVE_SYSCTL 1
14981 $as_echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14984 { $as_echo "$as_me:$LINENO: result: not usable" >&5
14985 $as_echo "not usable" >&6; }
14988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
14991 $as_echo_n "checking for sysinfo... " >&6; }
14992 cat >conftest.$ac_ext <<_ACEOF
14995 cat confdefs.h >>conftest.$ac_ext
14996 cat >>conftest.$ac_ext <<_ACEOF
14997 /* end confdefs.h. */
14998 #include <sys/types.h>
14999 #include <sys/sysinfo.h>
15003 struct sysinfo sinfo;
15006 (void)sysinfo(&sinfo);
15007 t = sinfo.totalram;
15013 rm -f conftest.$ac_objext
15014 if { (ac_try="$ac_compile"
15015 case "(($ac_try" in
15016 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15017 *) ac_try_echo
=$ac_try;;
15019 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15020 $as_echo "$ac_try_echo") >&5
15021 (eval "$ac_compile") 2>conftest.er1
15023 grep -v '^ *+' conftest.er1
>conftest.err
15025 cat conftest.err
>&5
15026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } && {
15028 test -z "$ac_c_werror_flag" ||
15029 test ! -s conftest.err
15030 } && test -s conftest.
$ac_objext; then
15031 { $as_echo "$as_me:$LINENO: result: yes" >&5
15032 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15033 #define HAVE_SYSINFO 1
15037 $as_echo "$as_me: failed program was:" >&5
15038 sed 's/^/| /' conftest.
$ac_ext >&5
15040 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15041 $as_echo "not usable" >&6; }
15044 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15046 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15047 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15048 cat >conftest.
$ac_ext <<_ACEOF
15051 cat confdefs.h
>>conftest.
$ac_ext
15052 cat >>conftest.
$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054 #include <sys/types.h>
15055 #include <sys/sysinfo.h>
15059 struct sysinfo sinfo;
15060 sinfo.mem_unit = 1;
15066 rm -f conftest.
$ac_objext
15067 if { (ac_try
="$ac_compile"
15068 case "(($ac_try" in
15069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15073 $as_echo "$ac_try_echo") >&5
15074 (eval "$ac_compile") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest.$ac_objext; then
15084 { $as_echo "$as_me:$LINENO: result: yes" >&5
15085 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15086 #define HAVE_SYSINFO_MEM_UNIT 1
15090 $as_echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 { $as_echo "$as_me:$LINENO: result: no" >&5
15094 $as_echo "no" >&6; }
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15100 $as_echo_n "checking for sysconf... " >&6; }
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 #include <unistd.h>
15111 (void)sysconf(_SC_PAGESIZE);
15112 (void)sysconf(_SC_PHYS_PAGES);
15118 rm -f conftest.$ac_objext
15119 if { (ac_try="$ac_compile"
15120 case "(($ac_try" in
15121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15122 *) ac_try_echo
=$ac_try;;
15124 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15125 $as_echo "$ac_try_echo") >&5
15126 (eval "$ac_compile") 2>conftest.er1
15128 grep -v '^ *+' conftest.er1
>conftest.err
15130 cat conftest.err
>&5
15131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest.
$ac_objext; then
15136 { $as_echo "$as_me:$LINENO: result: yes" >&5
15137 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15138 #define HAVE_SYSCONF 1
15142 $as_echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.
$ac_ext >&5
15145 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15146 $as_echo "not usable" >&6; }
15149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15152 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15153 $as_echo_n "checking size of int... " >&6; }
15154 if test "${ac_cv_sizeof_int+set}" = set; then
15155 $as_echo_n "(cached) " >&6
15157 if test "$cross_compiling" = yes; then
15158 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15159 $as_echo "$as_me: error: failed to compile test program" >&2;}
15160 { (exit 1); exit 1; }; }
15162 cat >conftest.
$ac_ext <<_ACEOF
15165 cat confdefs.h
>>conftest.
$ac_ext
15166 cat >>conftest.
$ac_ext <<_ACEOF
15167 /* end confdefs.h. */
15171 # include <stdlib.h>
15172 # include <stddef.h>
15176 FILE *f=fopen("conftestval", "w");
15178 fprintf(f, "%d\n", (int)sizeof(int));
15182 rm -f conftest
$ac_exeext
15183 if { (ac_try
="$ac_link"
15184 case "(($ac_try" in
15185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15189 $as_echo "$ac_try_echo") >&5
15190 (eval "$ac_link") 2>&5
15192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15194 { (case "(($ac_try" in
15195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15196 *) ac_try_echo
=$ac_try;;
15198 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15199 $as_echo "$ac_try_echo") >&5
15200 (eval "$ac_try") 2>&5
15202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); }; }; then
15204 ac_cv_sizeof_int
=`cat conftestval`
15206 $as_echo "$as_me: program exited with status $ac_status" >&5
15207 $as_echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.
$ac_ext >&5
15210 ( exit $ac_status )
15213 rm -rf conftest.dSYM
15214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15220 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15221 $as_echo "$ac_cv_sizeof_int" >&6; }
15222 cat >>confdefs.h
<<_ACEOF
15223 #define SIZEOF_INT $ac_cv_sizeof_int
15230 #include "confdefs.h"
15231 #ifdef HAVE_STRING_H
15232 # include <string.h>
15235 # include <stdlib.h>
15236 # include <stddef.h>
15240 strcpy(buf, "abcdefghi");
15241 mch_memmove(buf, buf + 2, 3);
15242 if (strncmp(buf, "ababcf", 6))
15244 strcpy(buf, "abcdefghi");
15245 mch_memmove(buf + 2, buf, 3);
15246 if (strncmp(buf, "cdedef", 6))
15248 exit(0); /* libc version works properly. */
15251 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15252 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15253 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15254 $as_echo_n "(cached) " >&6
15257 if test "$cross_compiling" = yes; then
15259 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15260 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15261 { (exit 1); exit 1; }; }
15264 cat >conftest.
$ac_ext <<_ACEOF
15265 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15267 rm -f conftest
$ac_exeext
15268 if { (ac_try
="$ac_link"
15269 case "(($ac_try" in
15270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15271 *) ac_try_echo=$ac_try;;
15273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15274 $as_echo "$ac_try_echo") >&5
15275 (eval "$ac_link") 2>&5
15277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15279 { (case "(($ac_try" in
15280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15281 *) ac_try_echo
=$ac_try;;
15283 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15284 $as_echo "$ac_try_echo") >&5
15285 (eval "$ac_try") 2>&5
15287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; }; then
15290 vim_cv_memmove_handles_overlap
=yes
15293 $as_echo "$as_me: program exited with status $ac_status" >&5
15294 $as_echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.
$ac_ext >&5
15297 ( exit $ac_status )
15299 vim_cv_memmove_handles_overlap
=no
15302 rm -rf conftest.dSYM
15303 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15309 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15310 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15312 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15313 cat >>confdefs.h
<<\_ACEOF
15314 #define USEMEMMOVE 1
15318 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15319 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15320 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15321 $as_echo_n "(cached) " >&6
15324 if test "$cross_compiling" = yes; then
15326 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15327 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15328 { (exit 1); exit 1; }; }
15331 cat >conftest.
$ac_ext <<_ACEOF
15332 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15334 rm -f conftest
$ac_exeext
15335 if { (ac_try
="$ac_link"
15336 case "(($ac_try" in
15337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15341 $as_echo "$ac_try_echo") >&5
15342 (eval "$ac_link") 2>&5
15344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15346 { (case "(($ac_try" in
15347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15348 *) ac_try_echo
=$ac_try;;
15350 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15351 $as_echo "$ac_try_echo") >&5
15352 (eval "$ac_try") 2>&5
15354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; }; then
15357 vim_cv_bcopy_handles_overlap
=yes
15360 $as_echo "$as_me: program exited with status $ac_status" >&5
15361 $as_echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.
$ac_ext >&5
15364 ( exit $ac_status )
15366 vim_cv_bcopy_handles_overlap
=no
15369 rm -rf conftest.dSYM
15370 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15376 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15377 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15379 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15380 cat >>confdefs.h
<<\_ACEOF
15385 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15386 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15387 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15388 $as_echo_n "(cached) " >&6
15391 if test "$cross_compiling" = yes; then
15393 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15394 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15395 { (exit 1); exit 1; }; }
15398 cat >conftest.
$ac_ext <<_ACEOF
15399 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15401 rm -f conftest
$ac_exeext
15402 if { (ac_try
="$ac_link"
15403 case "(($ac_try" in
15404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15408 $as_echo "$ac_try_echo") >&5
15409 (eval "$ac_link") 2>&5
15411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15415 *) ac_try_echo
=$ac_try;;
15417 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15418 $as_echo "$ac_try_echo") >&5
15419 (eval "$ac_try") 2>&5
15421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15424 vim_cv_memcpy_handles_overlap
=yes
15427 $as_echo "$as_me: program exited with status $ac_status" >&5
15428 $as_echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.
$ac_ext >&5
15431 ( exit $ac_status )
15433 vim_cv_memcpy_handles_overlap
=no
15436 rm -rf conftest.dSYM
15437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15443 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15444 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15446 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15447 cat >>confdefs.h
<<\_ACEOF
15448 #define USEMEMCPY 1
15457 if test "$enable_multibyte" = "yes"; then
15458 cflags_save
=$CFLAGS
15459 ldflags_save
=$LDFLAGS
15460 if test -n "$x_includes" ; then
15461 CFLAGS
="$CFLAGS -I$x_includes"
15462 LDFLAGS
="$X_LIBS $LDFLAGS -lX11"
15463 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15464 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15465 cat >conftest.
$ac_ext <<_ACEOF
15468 cat confdefs.h
>>conftest.
$ac_ext
15469 cat >>conftest.
$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 #include <X11/Xlocale.h>
15480 rm -f conftest.
$ac_objext
15481 if { (ac_try
="$ac_compile"
15482 case "(($ac_try" in
15483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15484 *) ac_try_echo=$ac_try;;
15486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15487 $as_echo "$ac_try_echo") >&5
15488 (eval "$ac_compile") 2>conftest.er1
15490 grep -v '^ *+' conftest.er1 >conftest.err
15492 cat conftest.err >&5
15493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } && {
15495 test -z "$ac_c_werror_flag" ||
15496 test ! -s conftest.err
15497 } && test -s conftest.$ac_objext; then
15498 cat >conftest.$ac_ext <<_ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15505 /* Override any GCC internal prototype to avoid an error.
15506 Use char because int might match the return type of a GCC
15507 builtin and then its argument prototype would still apply. */
15511 char _Xsetlocale ();
15515 return _Xsetlocale ();
15520 rm -f conftest.$ac_objext conftest$ac_exeext
15521 if { (ac_try="$ac_link"
15522 case "(($ac_try" in
15523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15524 *) ac_try_echo
=$ac_try;;
15526 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15527 $as_echo "$ac_try_echo") >&5
15528 (eval "$ac_link") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1
>conftest.err
15532 cat conftest.err
>&5
15533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest
$ac_exeext && {
15538 test "$cross_compiling" = yes ||
15539 $as_test_x conftest
$ac_exeext
15541 { $as_echo "$as_me:$LINENO: result: yes" >&5
15542 $as_echo "yes" >&6; }
15543 cat >>confdefs.h
<<\_ACEOF
15548 $as_echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.
$ac_ext >&5
15551 { $as_echo "$as_me:$LINENO: result: no" >&5
15552 $as_echo "no" >&6; }
15555 rm -rf conftest.dSYM
15556 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15557 conftest
$ac_exeext conftest.
$ac_ext
15559 $as_echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.
$ac_ext >&5
15562 { $as_echo "$as_me:$LINENO: result: no" >&5
15563 $as_echo "no" >&6; }
15566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15568 CFLAGS
=$cflags_save
15569 LDFLAGS
=$ldflags_save
15572 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15573 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15574 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15575 $as_echo_n "(cached) " >&6
15577 ac_check_lib_save_LIBS
=$LIBS
15578 LIBS
="-lxpg4 $LIBS"
15579 cat >conftest.
$ac_ext <<_ACEOF
15582 cat confdefs.h
>>conftest.
$ac_ext
15583 cat >>conftest.
$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15586 /* Override any GCC internal prototype to avoid an error.
15587 Use char because int might match the return type of a GCC
15588 builtin and then its argument prototype would still apply. */
15592 char _xpg4_setrunelocale ();
15596 return _xpg4_setrunelocale ();
15601 rm -f conftest.
$ac_objext conftest
$ac_exeext
15602 if { (ac_try
="$ac_link"
15603 case "(($ac_try" in
15604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15605 *) ac_try_echo=$ac_try;;
15607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15608 $as_echo "$ac_try_echo") >&5
15609 (eval "$ac_link") 2>conftest.er1
15611 grep -v '^ *+' conftest.er1 >conftest.err
15613 cat conftest.err >&5
15614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } && {
15616 test -z "$ac_c_werror_flag" ||
15617 test ! -s conftest.err
15618 } && test -s conftest$ac_exeext && {
15619 test "$cross_compiling" = yes ||
15620 $as_test_x conftest$ac_exeext
15622 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
15624 $as_echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15627 ac_cv_lib_xpg4__xpg4_setrunelocale=no
15630 rm -rf conftest.dSYM
15631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15632 conftest$ac_exeext conftest.$ac_ext
15633 LIBS=$ac_check_lib_save_LIBS
15635 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15636 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15637 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
15638 LIBS="$LIBS -lxpg4"
15642 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15643 $as_echo_n "checking how to create tags... " >&6; }
15644 test -f tags && mv tags tags.save
15645 if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
15646 TAGPRG="ctags -I INIT+ --fields=+S"
15648 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
15649 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
15650 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
15651 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
15652 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
15653 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
15654 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
15656 test -f tags.save && mv tags.save tags
15657 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15658 $as_echo "$TAGPRG" >&6; }
15660 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15661 $as_echo_n "checking how to run man with a section nr... " >&6; }
15663 (eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
15664 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15665 $as_echo "$MANDEF" >&6; }
15666 if test "$MANDEF" = "man -s"; then
15667 cat >>confdefs.h <<\_ACEOF
15673 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15674 $as_echo_n "checking --disable-nls argument... " >&6; }
15675 # Check whether --enable-nls was given.
15676 if test "${enable_nls+set}" = set; then
15677 enableval=$enable_nls;
15683 if test "$enable_nls" = "yes"; then
15684 { $as_echo "$as_me:$LINENO: result: no" >&5
15685 $as_echo "no" >&6; }
15687 INSTALL_LANGS=install-languages
15689 INSTALL_TOOL_LANGS=install-tool-languages
15692 # Extract the first word of "msgfmt", so it can be a program name with args.
15693 set dummy msgfmt; ac_word=$2
15694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15695 $as_echo_n "checking for $ac_word... " >&6; }
15696 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15697 $as_echo_n "(cached) " >&6
15699 if test -n "$MSGFMT"; then
15700 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
15702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15703 for as_dir in $PATH
15706 test -z "$as_dir" && as_dir=.
15707 for ac_exec_ext in '' $ac_executable_extensions; do
15708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15709 ac_cv_prog_MSGFMT="msgfmt"
15710 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15719 MSGFMT=$ac_cv_prog_MSGFMT
15720 if test -n "$MSGFMT"; then
15721 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15722 $as_echo "$MSGFMT" >&6; }
15724 { $as_echo "$as_me:$LINENO: result: no" >&5
15725 $as_echo "no" >&6; }
15729 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
15730 $as_echo_n "checking for NLS... " >&6; }
15731 if test -f po/Makefile; then
15733 if test -n "$MSGFMT"; then
15734 cat >conftest.$ac_ext <<_ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 #include <libintl.h>
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15753 *) ac_try_echo
=$ac_try;;
15755 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15756 $as_echo "$ac_try_echo") >&5
15757 (eval "$ac_link") 2>conftest.er1
15759 grep -v '^ *+' conftest.er1
>conftest.err
15761 cat conftest.err
>&5
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest
$ac_exeext && {
15767 test "$cross_compiling" = yes ||
15768 $as_test_x conftest
$ac_exeext
15770 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
15771 $as_echo "gettext() works" >&6; }; have_gettext
="yes"
15773 $as_echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.
$ac_ext >&5
15777 LIBS
="$LIBS -lintl"
15778 cat >conftest.
$ac_ext <<_ACEOF
15781 cat confdefs.h
>>conftest.
$ac_ext
15782 cat >>conftest.
$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 #include <libintl.h>
15793 rm -f conftest.
$ac_objext conftest
$ac_exeext
15794 if { (ac_try
="$ac_link"
15795 case "(($ac_try" in
15796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15797 *) ac_try_echo=$ac_try;;
15799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15800 $as_echo "$ac_try_echo") >&5
15801 (eval "$ac_link") 2>conftest.er1
15803 grep -v '^ *+' conftest.er1 >conftest.err
15805 cat conftest.err >&5
15806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } && {
15808 test -z "$ac_c_werror_flag" ||
15809 test ! -s conftest.err
15810 } && test -s conftest$ac_exeext && {
15811 test "$cross_compiling" = yes ||
15812 $as_test_x conftest$ac_exeext
15814 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15815 $as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
15817 $as_echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15820 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15821 $as_echo "gettext() doesn't work" >&6; };
15825 rm -rf conftest.dSYM
15826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15827 conftest$ac_exeext conftest.$ac_ext
15830 rm -rf conftest.dSYM
15831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15832 conftest$ac_exeext conftest.$ac_ext
15834 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15835 $as_echo "msgfmt not found - disabled" >&6; };
15837 if test $have_gettext = "yes"; then
15838 cat >>confdefs.h <<\_ACEOF
15839 #define HAVE_GETTEXT 1
15845 for ac_func in bind_textdomain_codeset
15847 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
15848 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15849 $as_echo_n "checking for $ac_func... " >&6; }
15850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15851 $as_echo_n "(cached) " >&6
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15861 #define $ac_func innocuous_$ac_func
15863 /* System header to define __stub macros and hopefully few prototypes,
15864 which can conflict with char $ac_func (); below.
15865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15866 <limits.h> exists even on freestanding compilers. */
15869 # include <limits.h>
15871 # include <assert.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. */
15883 /* The GNU C library defines this for functions which it implements
15884 to always fail with ENOSYS. Some functions are actually named
15885 something starting with __ and the normal name is an alias. */
15886 #if defined __stub_$ac_func || defined __stub___$ac_func
15893 return $ac_func ();
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15902 *) ac_try_echo
=$ac_try;;
15904 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15905 $as_echo "$ac_try_echo") >&5
15906 (eval "$ac_link") 2>conftest.er1
15908 grep -v '^ *+' conftest.er1
>conftest.err
15910 cat conftest.err
>&5
15911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } && {
15913 test -z "$ac_c_werror_flag" ||
15914 test ! -s conftest.err
15915 } && test -s conftest
$ac_exeext && {
15916 test "$cross_compiling" = yes ||
15917 $as_test_x conftest
$ac_exeext
15919 eval "$as_ac_var=yes"
15921 $as_echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.
$ac_ext >&5
15924 eval "$as_ac_var=no"
15927 rm -rf conftest.dSYM
15928 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15929 conftest
$ac_exeext conftest.
$ac_ext
15931 ac_res
=`eval 'as_val=${'$as_ac_var'}
15932 $as_echo "$as_val"'`
15933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15934 $as_echo "$ac_res" >&6; }
15935 if test `eval 'as_val=${'$as_ac_var'}
15936 $as_echo "$as_val"'` = yes; then
15937 cat >>confdefs.h
<<_ACEOF
15938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15944 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15945 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
15946 cat >conftest.
$ac_ext <<_ACEOF
15949 cat confdefs.h
>>conftest.
$ac_ext
15950 cat >>conftest.
$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 #include <libintl.h>
15953 extern int _nl_msg_cat_cntr;
15957 ++_nl_msg_cat_cntr;
15962 rm -f conftest.
$ac_objext conftest
$ac_exeext
15963 if { (ac_try
="$ac_link"
15964 case "(($ac_try" in
15965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15969 $as_echo "$ac_try_echo") >&5
15970 (eval "$ac_link") 2>conftest.er1
15972 grep -v '^ *+' conftest.er1 >conftest.err
15974 cat conftest.err >&5
15975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } && {
15977 test -z "$ac_c_werror_flag" ||
15978 test ! -s conftest.err
15979 } && test -s conftest$ac_exeext && {
15980 test "$cross_compiling" = yes ||
15981 $as_test_x conftest$ac_exeext
15983 { $as_echo "$as_me:$LINENO: result: yes" >&5
15984 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15985 #define HAVE_NL_MSG_CAT_CNTR 1
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15992 { $as_echo "$as_me:$LINENO: result: no" >&5
15993 $as_echo "no" >&6; }
15996 rm -rf conftest.dSYM
15997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15998 conftest$ac_exeext conftest.$ac_ext
16001 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16002 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16005 { $as_echo "$as_me:$LINENO: result: yes" >&5
16006 $as_echo "yes" >&6; }
16009 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16010 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16011 $as_echo_n "checking for dlfcn.h... " >&6; }
16012 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16013 $as_echo_n "(cached) " >&6
16015 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16016 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16018 # Is the header compilable?
16019 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16020 $as_echo_n "checking dlfcn.h usability... " >&6; }
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 $ac_includes_default
16030 rm -f conftest.$ac_objext
16031 if { (ac_try="$ac_compile"
16032 case "(($ac_try" in
16033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16034 *) ac_try_echo
=$ac_try;;
16036 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16037 $as_echo "$ac_try_echo") >&5
16038 (eval "$ac_compile") 2>conftest.er1
16040 grep -v '^ *+' conftest.er1
>conftest.err
16042 cat conftest.err
>&5
16043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } && {
16045 test -z "$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 } && test -s conftest.
$ac_objext; then
16048 ac_header_compiler
=yes
16050 $as_echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.
$ac_ext >&5
16053 ac_header_compiler
=no
16056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16058 $as_echo "$ac_header_compiler" >&6; }
16060 # Is the header present?
16061 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16062 $as_echo_n "checking dlfcn.h presence... " >&6; }
16063 cat >conftest.
$ac_ext <<_ACEOF
16066 cat confdefs.h
>>conftest.
$ac_ext
16067 cat >>conftest.
$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16071 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16072 case "(($ac_try" in
16073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16074 *) ac_try_echo=$ac_try;;
16076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16077 $as_echo "$ac_try_echo") >&5
16078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16080 grep -v '^ *+' conftest.er1 >conftest.err
16082 cat conftest.err >&5
16083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); } >/dev/null && {
16085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16086 test ! -s conftest.err
16088 ac_header_preproc=yes
16090 $as_echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16093 ac_header_preproc=no
16096 rm -f conftest.err conftest.$ac_ext
16097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16098 $as_echo "$ac_header_preproc" >&6; }
16100 # So? What about this header?
16101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16103 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16104 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16105 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16106 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16107 ac_header_preproc=yes
16110 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16111 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16112 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16113 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16114 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16115 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16116 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16117 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16118 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16119 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16120 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16121 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16125 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16126 $as_echo_n "checking for dlfcn.h... " >&6; }
16127 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16128 $as_echo_n "(cached) " >&6
16130 ac_cv_header_dlfcn_h=$ac_header_preproc
16132 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16133 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16136 if test $ac_cv_header_dlfcn_h = yes; then
16139 if test "${ac_cv_header_dl_h+set}" = set; then
16140 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16141 $as_echo_n "checking for dl.h... " >&6; }
16142 if test "${ac_cv_header_dl_h+set}" = set; then
16143 $as_echo_n "(cached) " >&6
16145 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16146 $as_echo "$ac_cv_header_dl_h" >&6; }
16148 # Is the header compilable?
16149 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16150 $as_echo_n "checking dl.h usability... " >&6; }
16151 cat >conftest.$ac_ext <<_ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 $ac_includes_default
16160 rm -f conftest.$ac_objext
16161 if { (ac_try="$ac_compile"
16162 case "(($ac_try" in
16163 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16164 *) ac_try_echo
=$ac_try;;
16166 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16167 $as_echo "$ac_try_echo") >&5
16168 (eval "$ac_compile") 2>conftest.er1
16170 grep -v '^ *+' conftest.er1
>conftest.err
16172 cat conftest.err
>&5
16173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } && {
16175 test -z "$ac_c_werror_flag" ||
16176 test ! -s conftest.err
16177 } && test -s conftest.
$ac_objext; then
16178 ac_header_compiler
=yes
16180 $as_echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.
$ac_ext >&5
16183 ac_header_compiler
=no
16186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16187 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16188 $as_echo "$ac_header_compiler" >&6; }
16190 # Is the header present?
16191 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16192 $as_echo_n "checking dl.h presence... " >&6; }
16193 cat >conftest.
$ac_ext <<_ACEOF
16196 cat confdefs.h
>>conftest.
$ac_ext
16197 cat >>conftest.
$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16201 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16202 case "(($ac_try" in
16203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16207 $as_echo "$ac_try_echo") >&5
16208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } >/dev/null && {
16215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16218 ac_header_preproc=yes
16220 $as_echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_header_preproc=no
16226 rm -f conftest.err conftest.$ac_ext
16227 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16228 $as_echo "$ac_header_preproc" >&6; }
16230 # So? What about this header?
16231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16233 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16234 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16235 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16236 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16237 ac_header_preproc=yes
16240 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16241 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16242 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16243 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16244 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16245 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16246 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16247 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16248 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16249 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16250 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16251 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16255 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16256 $as_echo_n "checking for dl.h... " >&6; }
16257 if test "${ac_cv_header_dl_h+set}" = set; then
16258 $as_echo_n "(cached) " >&6
16260 ac_cv_header_dl_h=$ac_header_preproc
16262 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16263 $as_echo "$ac_cv_header_dl_h" >&6; }
16266 if test $ac_cv_header_dl_h = yes; then
16274 if test x${DLL} = xdlfcn.h; then
16276 cat >>confdefs.h <<\_ACEOF
16277 #define HAVE_DLFCN_H 1
16280 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16281 $as_echo_n "checking for dlopen()... " >&6; }
16282 cat >conftest.$ac_ext <<_ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16293 extern void* dlopen();
16300 rm -f conftest.$ac_objext conftest$ac_exeext
16301 if { (ac_try="$ac_link"
16302 case "(($ac_try" in
16303 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16304 *) ac_try_echo
=$ac_try;;
16306 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16307 $as_echo "$ac_try_echo") >&5
16308 (eval "$ac_link") 2>conftest.er1
16310 grep -v '^ *+' conftest.er1
>conftest.err
16312 cat conftest.err
>&5
16313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest
$ac_exeext && {
16318 test "$cross_compiling" = yes ||
16319 $as_test_x conftest
$ac_exeext
16321 { $as_echo "$as_me:$LINENO: result: yes" >&5
16322 $as_echo "yes" >&6; };
16324 cat >>confdefs.h
<<\_ACEOF
16325 #define HAVE_DLOPEN 1
16329 $as_echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.
$ac_ext >&5
16332 { $as_echo "$as_me:$LINENO: result: no" >&5
16333 $as_echo "no" >&6; };
16334 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16335 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16338 cat >conftest.
$ac_ext <<_ACEOF
16341 cat confdefs.h
>>conftest.
$ac_ext
16342 cat >>conftest.
$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16349 extern void* dlopen();
16356 rm -f conftest.
$ac_objext conftest
$ac_exeext
16357 if { (ac_try
="$ac_link"
16358 case "(($ac_try" in
16359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16363 $as_echo "$ac_try_echo") >&5
16364 (eval "$ac_link") 2>conftest.er1
16366 grep -v '^ *+' conftest.er1 >conftest.err
16368 cat conftest.err >&5
16369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } && {
16371 test -z "$ac_c_werror_flag" ||
16372 test ! -s conftest.err
16373 } && test -s conftest$ac_exeext && {
16374 test "$cross_compiling" = yes ||
16375 $as_test_x conftest$ac_exeext
16377 { $as_echo "$as_me:$LINENO: result: yes" >&5
16378 $as_echo "yes" >&6; };
16380 cat >>confdefs.h <<\_ACEOF
16381 #define HAVE_DLOPEN 1
16385 $as_echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 { $as_echo "$as_me:$LINENO: result: no" >&5
16389 $as_echo "no" >&6; };
16393 rm -rf conftest.dSYM
16394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16395 conftest$ac_exeext conftest.$ac_ext
16398 rm -rf conftest.dSYM
16399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16400 conftest$ac_exeext conftest.$ac_ext
16401 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16402 $as_echo_n "checking for dlsym()... " >&6; }
16403 cat >conftest.$ac_ext <<_ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16414 extern void* dlsym();
16421 rm -f conftest.$ac_objext conftest$ac_exeext
16422 if { (ac_try="$ac_link"
16423 case "(($ac_try" in
16424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16425 *) ac_try_echo
=$ac_try;;
16427 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16428 $as_echo "$ac_try_echo") >&5
16429 (eval "$ac_link") 2>conftest.er1
16431 grep -v '^ *+' conftest.er1
>conftest.err
16433 cat conftest.err
>&5
16434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } && {
16436 test -z "$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 } && test -s conftest
$ac_exeext && {
16439 test "$cross_compiling" = yes ||
16440 $as_test_x conftest
$ac_exeext
16442 { $as_echo "$as_me:$LINENO: result: yes" >&5
16443 $as_echo "yes" >&6; };
16445 cat >>confdefs.h
<<\_ACEOF
16446 #define HAVE_DLSYM 1
16450 $as_echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.
$ac_ext >&5
16453 { $as_echo "$as_me:$LINENO: result: no" >&5
16454 $as_echo "no" >&6; };
16455 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16456 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16459 cat >conftest.
$ac_ext <<_ACEOF
16462 cat confdefs.h
>>conftest.
$ac_ext
16463 cat >>conftest.
$ac_ext <<_ACEOF
16464 /* end confdefs.h. */
16470 extern void* dlsym();
16477 rm -f conftest.
$ac_objext conftest
$ac_exeext
16478 if { (ac_try
="$ac_link"
16479 case "(($ac_try" in
16480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16484 $as_echo "$ac_try_echo") >&5
16485 (eval "$ac_link") 2>conftest.er1
16487 grep -v '^ *+' conftest.er1 >conftest.err
16489 cat conftest.err >&5
16490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } && {
16492 test -z "$ac_c_werror_flag" ||
16493 test ! -s conftest.err
16494 } && test -s conftest$ac_exeext && {
16495 test "$cross_compiling" = yes ||
16496 $as_test_x conftest$ac_exeext
16498 { $as_echo "$as_me:$LINENO: result: yes" >&5
16499 $as_echo "yes" >&6; };
16501 cat >>confdefs.h <<\_ACEOF
16502 #define HAVE_DLSYM 1
16506 $as_echo "$as_me: failed program was:" >&5
16507 sed 's/^/| /' conftest.$ac_ext >&5
16509 { $as_echo "$as_me:$LINENO: result: no" >&5
16510 $as_echo "no" >&6; };
16514 rm -rf conftest.dSYM
16515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16516 conftest$ac_exeext conftest.$ac_ext
16519 rm -rf conftest.dSYM
16520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16521 conftest$ac_exeext conftest.$ac_ext
16522 elif test x${DLL} = xdl.h; then
16524 cat >>confdefs.h <<\_ACEOF
16525 #define HAVE_DL_H 1
16528 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16529 $as_echo_n "checking for shl_load()... " >&6; }
16530 cat >conftest.$ac_ext <<_ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16541 extern void* shl_load();
16548 rm -f conftest.$ac_objext conftest$ac_exeext
16549 if { (ac_try="$ac_link"
16550 case "(($ac_try" in
16551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16552 *) ac_try_echo
=$ac_try;;
16554 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16555 $as_echo "$ac_try_echo") >&5
16556 (eval "$ac_link") 2>conftest.er1
16558 grep -v '^ *+' conftest.er1
>conftest.err
16560 cat conftest.err
>&5
16561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
16565 } && test -s conftest
$ac_exeext && {
16566 test "$cross_compiling" = yes ||
16567 $as_test_x conftest
$ac_exeext
16569 { $as_echo "$as_me:$LINENO: result: yes" >&5
16570 $as_echo "yes" >&6; };
16572 cat >>confdefs.h
<<\_ACEOF
16573 #define HAVE_SHL_LOAD 1
16577 $as_echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.
$ac_ext >&5
16580 { $as_echo "$as_me:$LINENO: result: no" >&5
16581 $as_echo "no" >&6; };
16582 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16583 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16586 cat >conftest.
$ac_ext <<_ACEOF
16589 cat confdefs.h
>>conftest.
$ac_ext
16590 cat >>conftest.
$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16597 extern void* shl_load();
16604 rm -f conftest.
$ac_objext conftest
$ac_exeext
16605 if { (ac_try
="$ac_link"
16606 case "(($ac_try" in
16607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16611 $as_echo "$ac_try_echo") >&5
16612 (eval "$ac_link") 2>conftest.er1
16614 grep -v '^ *+' conftest.er1 >conftest.err
16616 cat conftest.err >&5
16617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } && {
16619 test -z "$ac_c_werror_flag" ||
16620 test ! -s conftest.err
16621 } && test -s conftest$ac_exeext && {
16622 test "$cross_compiling" = yes ||
16623 $as_test_x conftest$ac_exeext
16625 { $as_echo "$as_me:$LINENO: result: yes" >&5
16626 $as_echo "yes" >&6; };
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_SHL_LOAD 1
16633 $as_echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16636 { $as_echo "$as_me:$LINENO: result: no" >&5
16637 $as_echo "no" >&6; };
16641 rm -rf conftest.dSYM
16642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16643 conftest$ac_exeext conftest.$ac_ext
16646 rm -rf conftest.dSYM
16647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16648 conftest$ac_exeext conftest.$ac_ext
16651 for ac_header in setjmp.h
16653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16656 $as_echo_n "checking for $ac_header... " >&6; }
16657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16658 $as_echo_n "(cached) " >&6
16660 ac_res=`eval 'as_val=${'$as_ac_Header'}
16661 $as_echo "$as_val"'`
16662 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16663 $as_echo "$ac_res" >&6; }
16665 # Is the header compilable?
16666 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16667 $as_echo_n "checking $ac_header usability... " >&6; }
16668 cat >conftest.$ac_ext <<_ACEOF
16671 cat confdefs.h >>conftest.$ac_ext
16672 cat >>conftest.$ac_ext <<_ACEOF
16673 /* end confdefs.h. */
16674 $ac_includes_default
16675 #include <$ac_header>
16677 rm -f conftest.$ac_objext
16678 if { (ac_try="$ac_compile"
16679 case "(($ac_try" in
16680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16681 *) ac_try_echo
=$ac_try;;
16683 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16684 $as_echo "$ac_try_echo") >&5
16685 (eval "$ac_compile") 2>conftest.er1
16687 grep -v '^ *+' conftest.er1
>conftest.err
16689 cat conftest.err
>&5
16690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest.
$ac_objext; then
16695 ac_header_compiler
=yes
16697 $as_echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.
$ac_ext >&5
16700 ac_header_compiler
=no
16703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16704 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16705 $as_echo "$ac_header_compiler" >&6; }
16707 # Is the header present?
16708 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16709 $as_echo_n "checking $ac_header presence... " >&6; }
16710 cat >conftest.
$ac_ext <<_ACEOF
16713 cat confdefs.h
>>conftest.
$ac_ext
16714 cat >>conftest.
$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 #include <$ac_header>
16718 if { (ac_try
="$ac_cpp conftest.$ac_ext"
16719 case "(($ac_try" in
16720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } >/dev/null && {
16732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16735 ac_header_preproc=yes
16737 $as_echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_header_preproc=no
16743 rm -f conftest.err conftest.$ac_ext
16744 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16745 $as_echo "$ac_header_preproc" >&6; }
16747 # So? What about this header?
16748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16751 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16753 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16754 ac_header_preproc=yes
16757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16758 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16760 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16762 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16764 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16768 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16773 $as_echo_n "checking for $ac_header... " >&6; }
16774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16775 $as_echo_n "(cached) " >&6
16777 eval "$as_ac_Header=\$ac_header_preproc"
16779 ac_res=`eval 'as_val=${'$as_ac_Header'}
16780 $as_echo "$as_val"'`
16781 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16782 $as_echo "$ac_res" >&6; }
16785 if test `eval 'as_val=${'$as_ac_Header'}
16786 $as_echo "$as_val"'` = yes; then
16787 cat >>confdefs.h <<_ACEOF
16788 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16796 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16797 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16798 LIBS=`echo $LIBS |
sed s
/-ldl//`
16799 PERL_LIBS="$PERL_LIBS -ldl"
16803 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16804 && test "x$GUITYPE" != "xCARBONGUI"; then
16805 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16806 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
16807 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
16808 || test "x$features" = "xhuge"; then
16809 LIBS="$LIBS -framework Carbon"
16810 { $as_echo "$as_me:$LINENO: result: yes" >&5
16811 $as_echo "yes" >&6; }
16813 { $as_echo "$as_me:$LINENO: result: no" >&5
16814 $as_echo "no" >&6; }
16817 if test "x$MACARCH" = "xboth"; then
16818 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
16821 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
16822 $as_echo_n "checking for GCC 3 or later... " >&6; }
16823 DEPEND_CFLAGS_FILTER=
16824 if test "$GCC" = yes; then
16825 gccmajor=`echo "$gccversion" |
sed -e 's/^\([1-9]\)\..*$/\1/g'`
16826 if test "$gccmajor" -gt "2"; then
16827 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
16830 if test "$DEPEND_CFLAGS_FILTER" = ""; then
16831 { $as_echo "$as_me:$LINENO: result: no" >&5
16832 $as_echo "no" >&6; }
16834 { $as_echo "$as_me:$LINENO: result: yes" >&5
16835 $as_echo "yes" >&6; }
16839 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16841 cat >confcache <<\_ACEOF
16842 # This file is a shell script that caches the results of configure
16843 # tests run on this system so they can be shared between configure
16844 # scripts and configure runs, see configure's option --config-cache.
16845 # It is not useful on other systems. If it contains results you don't
16846 # want to keep, you may remove or edit it.
16848 # config.status only pays attention to the cache file if you give it
16849 # the --recheck option to rerun configure.
16851 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
16852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16853 # following values.
16857 # The following way of writing the cache mishandles newlines in values,
16858 # but we know of no workaround that is simple, portable, and efficient.
16859 # So, we kill variables containing newlines.
16860 # Ultrix sh set writes to stderr and can't be redirected directly,
16861 # and sets the high bit in the cache file unless we assign to the vars.
16863 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16864 eval ac_val
=\$
$ac_var
16868 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16869 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16872 _ | IFS | as_nl
) ;; #(
16873 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16874 *) $as_unset $ac_var ;;
16880 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16881 *${as_nl}ac_space
=\
*)
16882 # `set' does not quote correctly, so add quotes (double-quote
16883 # substitution turns \\\\ into \\, and sed turns \\ into \).
16886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16889 # `set' quotes correctly as required by POSIX, so do not add quotes.
16890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16899 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16901 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16903 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16904 if test -w "$cache_file"; then
16905 test "x$cache_file" != "x/dev/null" &&
16906 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16907 $as_echo "$as_me: updating cache $cache_file" >&6;}
16908 cat confcache
>$cache_file
16910 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16911 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16916 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16917 # Let make expand exec_prefix.
16918 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16920 DEFS
=-DHAVE_CONFIG_H
16924 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16925 # 1. Remove the extension, and $U if already installed.
16926 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16927 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16929 # will be set to the directory where LIBOBJS objects are built.
16930 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16931 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16933 LIBOBJS
=$ac_libobjs
16935 LTLIBOBJS
=$ac_ltlibobjs
16939 : ${CONFIG_STATUS=./config.status}
16941 ac_clean_files_save
=$ac_clean_files
16942 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16943 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16945 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16947 # Generated by $as_me.
16948 # Run this file to recreate the current configuration.
16949 # Compiler output produced by configure, useful for debugging
16950 # configure, is in config.log if it exists.
16953 ac_cs_recheck=false
16955 SHELL=\${CONFIG_SHELL-$SHELL}
16958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16959 ## --------------------- ##
16960 ## M4sh Initialization. ##
16961 ## --------------------- ##
16963 # Be more Bourne compatible
16964 DUALCASE
=1; export DUALCASE
# for MKS sh
16965 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16968 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16969 # is contrary to our usage. Disable this feature.
16970 alias -g '${1+"$@"}'='"$@"'
16971 setopt NO_GLOB_SUBST
16973 case `(set -o) 2>/dev/null` in
16974 *posix
*) set -o posix
;;
16983 # Avoid depending upon Character Ranges.
16984 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16985 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16986 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16987 as_cr_digits
='0123456789'
16988 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16993 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16994 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16995 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16997 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16998 as_echo='printf %s
\n'
16999 as_echo_n='printf %s
'
17001 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17002 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17003 as_echo_n='/usr
/ucb
/echo -n'
17005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17006 as_echo_n_body='eval
17010 expr "X$arg" : "X\\(.*\\)$as_nl";
17011 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17013 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17015 export as_echo_n_body
17016 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17018 export as_echo_body
17019 as_echo='sh
-c $as_echo_body as_echo
'
17022 # The user is always right.
17023 if test "${PATH_SEPARATOR+set}" != set; then
17025 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17026 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17031 # Support unset when possible.
17032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17040 # We need space, tab and new line, in precisely that order. Quoting is
17041 # there to prevent editors from complaining about space-tab.
17042 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17043 # splitting by setting IFS to empty value.)
17046 # Find who we are. Look in the path if we contain no directory separator.
17048 *[\\/]* ) as_myself=$0 ;;
17049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17053 test -z "$as_dir" && as_dir=.
17054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17060 # We did not find ourselves, most probably we were run as `sh COMMAND'
17061 # in which case we are not to be found in the path.
17062 if test "x$as_myself" = x
; then
17065 if test ! -f "$as_myself"; then
17066 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17067 { (exit 1); exit 1; }
17070 # Work around bugs in pre-3.0 UWIN ksh.
17071 for as_var
in ENV MAIL MAILPATH
17072 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17084 # Required to use basename.
17085 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17086 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17092 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17093 as_basename
=basename
17099 # Name of the executable.
17100 as_me
=`$as_basename -- "$0" ||
17101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17102 X"$0" : 'X\(//\)$' \| \
17103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17105 sed '/^.*\/\([^/][^/]*\)\/*$/{
17124 as_lineno_1
=$LINENO
17125 as_lineno_2
=$LINENO
17126 test "x$as_lineno_1" != "x$as_lineno_2" &&
17127 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17129 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17130 # uniformly replaced by the line number. The first 'sed' inserts a
17131 # line-number line after each line using $LINENO; the second 'sed'
17132 # does the real work. The second script uses 'N' to pair each
17133 # line-number line with the line containing $LINENO, and appends
17134 # trailing '-' during substitution so that $LINENO is not a special
17135 # case at line end.
17136 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17137 # scripts with optimization help from Paolo Bonzini. Blame Lee
17138 # E. McMahon (1931-1989) for sed's syntax. :-)
17150 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17153 ' >$as_me.lineno
&&
17154 chmod +x
"$as_me.lineno" ||
17155 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17156 { (exit 1); exit 1; }; }
17158 # Don't try to exec as it changes $[0], causing all sort of problems
17159 # (the dirname of $[0] is not the place where we might find the
17160 # original and so on. Autoconf is especially sensitive to this).
17161 .
"./$as_me.lineno"
17162 # Exit status is that of the last command.
17167 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17173 ECHO_C
= ECHO_N
= ECHO_T
=
17174 case `echo -n x` in
17176 case `echo 'x\c'` in
17177 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17183 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17184 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17190 rm -f conf$$ conf$$.exe conf$$.
file
17191 if test -d conf$$.dir
; then
17192 rm -f conf$$.dir
/conf$$.
file
17195 mkdir conf$$.dir
2>/dev
/null
17197 if (echo >conf$$.
file) 2>/dev
/null
; then
17198 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17200 # ... but there are two gotchas:
17201 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17202 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17203 # In both cases, we have to default to `cp -p'.
17204 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17206 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17214 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17215 rmdir conf$$.dir
2>/dev
/null
17217 if mkdir
-p .
2>/dev
/null
; then
17220 test -d .
/-p && rmdir .
/-p
17224 if test -x / >/dev
/null
2>&1; then
17225 as_test_x
='test -x'
17227 if ls -dL / >/dev
/null
2>&1; then
17234 if test -d "$1"; then
17240 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17241 ???[sx]*):;;*)false;;esac;fi
17245 as_executable_p
=$as_test_x
17247 # Sed expression to map a string onto a valid CPP name.
17248 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17250 # Sed expression to map a string onto a valid variable name.
17251 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17256 # Save the log message, to keep $[0] and so on meaningful, and to
17257 # report actual input values of CONFIG_FILES etc. instead of their
17258 # values after options handling.
17260 This file was extended by $as_me, which was
17261 generated by GNU Autoconf 2.62. Invocation command line was
17263 CONFIG_FILES = $CONFIG_FILES
17264 CONFIG_HEADERS = $CONFIG_HEADERS
17265 CONFIG_LINKS = $CONFIG_LINKS
17266 CONFIG_COMMANDS = $CONFIG_COMMANDS
17269 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17275 # Files that config.status was made for.
17276 config_files="$ac_config_files"
17277 config_headers="$ac_config_headers"
17281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17283 \`$as_me' instantiates files from templates according to the
17284 current configuration.
17286 Usage: $0 [OPTIONS] [FILE]...
17288 -h, --help print this help, then exit
17289 -V, --version print version number and configuration settings, then exit
17290 -q, --quiet do not print progress messages
17291 -d, --debug don't remove temporary files
17292 --recheck update $as_me by reconfiguring in the same conditions
17293 --file=FILE[:TEMPLATE]
17294 instantiate the configuration file FILE
17295 --header=FILE[:TEMPLATE]
17296 instantiate the configuration header FILE
17298 Configuration files:
17301 Configuration headers:
17304 Report bugs to <bug-autoconf@gnu.org>."
17307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17310 configured by $0, generated by GNU Autoconf 2.62,
17311 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17313 Copyright (C) 2008 Free Software Foundation, Inc.
17314 This config.status script is free software; the Free Software Foundation
17315 gives unlimited permission to copy, distribute and modify it."
17320 test -n "\$AWK" || AWK=awk
17323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17324 # The default lists apply if the user does not specify any file.
17330 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17331 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17342 # Handling of the options.
17343 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17345 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17346 $as_echo "$ac_cs_version"; exit ;;
17347 --debug |
--debu |
--deb |
--de |
--d |
-d )
17349 --file |
--fil |
--fi |
--f )
17352 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17354 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
17355 ac_need_defaults
=false
;;
17356 --header |
--heade |
--head |
--hea )
17359 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17361 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
17362 ac_need_defaults
=false
;;
17364 # Conflict between --help and --header
17365 { $as_echo "$as_me: error: ambiguous option: $1
17366 Try \`$0 --help' for more information." >&2
17367 { (exit 1); exit 1; }; };;
17368 --help |
--hel |
-h )
17369 $as_echo "$ac_cs_usage"; exit ;;
17370 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17371 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17374 # This is an error.
17375 -*) { $as_echo "$as_me: error: unrecognized option: $1
17376 Try \`$0 --help' for more information." >&2
17377 { (exit 1); exit 1; }; } ;;
17379 *) ac_config_targets
="$ac_config_targets $1"
17380 ac_need_defaults
=false
;;
17386 ac_configure_extra_args
=
17388 if $ac_cs_silent; then
17390 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395 if \$ac_cs_recheck; then
17396 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17398 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17399 CONFIG_SHELL='$SHELL'
17400 export CONFIG_SHELL
17405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17406 exec 5>>auto
/config.log
17409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17410 ## Running $as_me. ##
17416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17421 # Handling of arguments.
17422 for ac_config_target
in $ac_config_targets
17424 case $ac_config_target in
17425 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17426 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17428 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17429 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17430 { (exit 1); exit 1; }; };;
17435 # If the user did not use the arguments to specify the items to instantiate,
17436 # then the envvar interface is used. Set only those that are not.
17437 # We use the long form for the default assignment because of an extremely
17438 # bizarre bug on SunOS 4.1.3.
17439 if $ac_need_defaults; then
17440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17444 # Have a temporary directory for convenience. Make it in the build tree
17445 # simply because there is no reason against having it here, and in addition,
17446 # creating and moving files from /tmp can sometimes cause problems.
17447 # Hook for its removal unless debugging.
17448 # Note that there is a small window in which the directory will not be cleaned:
17449 # after its creation but before its name has been assigned to `$tmp'.
17453 trap 'exit_status=$?
17454 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17456 trap '{ (exit 1); exit 1; }' 1 2 13 15
17458 # Create a (secure) tmp directory for tmp files.
17461 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17462 test -n "$tmp" && test -d "$tmp"
17465 tmp
=.
/conf$$
-$RANDOM
17466 (umask 077 && mkdir
"$tmp")
17469 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17470 { (exit 1); exit 1; }
17473 # Set up the scripts for CONFIG_FILES section.
17474 # No need to generate them if there are no CONFIG_FILES.
17475 # This happens for instance with `./config.status config.h'.
17476 if test -n "$CONFIG_FILES"; then
17480 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17481 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17484 ac_cs_awk_cr
=$ac_cr
17487 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17492 echo "cat >conf$$subs.awk <<_ACEOF" &&
17493 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17495 } >conf$$subs.sh ||
17496 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17497 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17498 { (exit 1); exit 1; }; }
17499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17501 for ac_last_try in false false false false false :; do
17502 . ./conf$$subs.sh ||
17503 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17504 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17505 { (exit 1); exit 1; }; }
17507 if test `sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X` = $ac_delim_num; then
17509 elif $ac_last_try; then
17510 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17511 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17512 { (exit 1); exit 1; }; }
17514 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17517 rm -f conf$$subs.sh
17519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17520 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17524 s/^/S["/; s
/!.
*/"]=/
17534 s/\(.\{148\}\).*/\1/
17536 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17541 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17548 s/\(.\{148\}\).*/\1/
17550 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17554 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17559 ' <conf$$subs.awk | sed '
17564 ' >>$CONFIG_STATUS || ac_write_fail=1
17565 rm -f conf$$subs.awk
17566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17568 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17569 for (key in S) S_is_set[key] = 1
17575 nfields = split(line, field, "@
")
17577 len = length(field[1])
17578 for (i = 2; i < nfields; i++) {
17580 keylen = length(key)
17581 if (S_is_set[key]) {
17583 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17584 len += length(value) + length(field[++i])
17595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17596 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17597 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17600 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17601 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
17602 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
17603 { (exit 1); exit 1; }; }
17606 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17607 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17608 # trailing colons and then remove the whole line if VPATH becomes empty
17609 # (actually we leave an empty line to preserve line numbers).
17610 if test "x
$srcdir" = x.; then
17611 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17612 s/:*\$(srcdir):*/:/
17613 s/:*\${srcdir}:*/:/
17615 s/^\([^=]*=[ ]*\):*/\1/
17621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17622 fi # test -n "$CONFIG_FILES"
17624 # Set up the scripts for CONFIG_HEADERS section.
17625 # No need to generate them if there are no CONFIG_HEADERS.
17626 # This happens for instance with `./config.status Makefile'.
17627 if test -n "$CONFIG_HEADERS"; then
17628 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17632 # Transform confdefs.h into an awk script `defines.awk', embedded as
17633 # here-document in config.status, that substitutes the proper values into
17634 # config.h.in to produce config.h.
17636 # Create a delimiter string that does not exist in confdefs.h, to ease
17637 # handling of long lines.
17639 for ac_last_try in false false :; do
17640 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17641 if test -z "$ac_t"; then
17643 elif $ac_last_try; then
17644 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
17645 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
17646 { (exit 1); exit 1; }; }
17648 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17652 # For the awk script, D is an array of macro values keyed by name,
17653 # likewise P contains macro parameters if any. Preserve backslash
17654 # newline sequences.
17656 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17658 s/.\{148\}/&'"$ac_delim"'/g
17661 s/^[ ]*#[ ]*define[ ][ ]*/ /
17668 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17670 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17674 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17675 D["\
1"]=" \
3\\\\\\n
"\\/p
17677 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
17682 s/.\{148\}/&'"$ac_delim"'/g
17687 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
17690 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
17692 ' <confdefs.h | sed '
17693 s/'"$ac_delim"'/"\\\
17694 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17697 for (key in D) D_is_set[key] = 1
17700 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17702 split(line, arg, " ")
17703 if (arg[1] == "#") {
17707 defundef
= substr
(arg
[1], 2)
17710 split(mac1
, mac2
, "(") #)
17712 if (D_is_set
[macro
]) {
17713 # Preserve the white space surrounding the "#".
17714 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
17715 print prefix
"define", macro P
[macro
] D
[macro
]
17718 # Replace #undef with comments. This is necessary, for example,
17719 # in the case of _POSIX_SOURCE, which is predefined and required
17720 # on some systems where configure will not decide to define it.
17721 if (defundef
== "undef") {
17722 print
"/*", line
, "*/"
17730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17731 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
17732 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
17733 { (exit 1); exit 1; }; }
17734 fi # test -n "$CONFIG_HEADERS"
17737 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
17742 :[FHLC
]) ac_mode
=$ac_tag; continue;;
17744 case $ac_mode$ac_tag in
17746 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17747 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17748 { (exit 1); exit 1; }; };;
17749 :[FH
]-) ac_tag
=-:-;;
17750 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
17767 -) ac_f
="$tmp/stdin";;
17768 *) # Look for the file first in the build tree, then in the source tree
17769 # (if the path is not absolute). The absolute path cannot be DOS-style,
17770 # because $ac_f cannot contain `:'.
17774 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
17776 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17777 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17778 { (exit 1); exit 1; }; };;
17780 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17781 ac_file_inputs
="$ac_file_inputs '$ac_f'"
17784 # Let's still pretend it is `configure' which instantiates (i.e., don't
17785 # use $as_me), people would be surprised to read:
17786 # /* config.h. Generated by config.status. */
17787 configure_input
='Generated from '`
17788 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17790 if test x
"$ac_file" != x-
; then
17791 configure_input
="$ac_file. $configure_input"
17792 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17793 $as_echo "$as_me: creating $ac_file" >&6;}
17795 # Neutralize special characters interpreted by sed in replacement strings.
17796 case $configure_input in #(
17797 *\
&* |
*\|
* |
*\\* )
17798 ac_sed_conf_input
=`$as_echo "$configure_input" |
17799 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17800 *) ac_sed_conf_input
=$configure_input;;
17804 *:-:* |
*:-) cat >"$tmp/stdin" \
17805 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17806 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17807 { (exit 1); exit 1; }; } ;;
17812 ac_dir
=`$as_dirname -- "$ac_file" ||
17813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17814 X"$ac_file" : 'X\(//\)[^/]' \| \
17815 X"$ac_file" : 'X\(//\)$' \| \
17816 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17817 $as_echo X"$ac_file" |
17818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17822 /^X\(\/\/\)[^/].*/{
17837 -*) as_dir
=.
/$as_dir;;
17839 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
17843 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17844 *) as_qdir
=$as_dir;;
17846 as_dirs
="'$as_qdir' $as_dirs"
17847 as_dir
=`$as_dirname -- "$as_dir" ||
17848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17849 X"$as_dir" : 'X\(//\)[^/]' \| \
17850 X"$as_dir" : 'X\(//\)$' \| \
17851 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17852 $as_echo X"$as_dir" |
17853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17857 /^X\(\/\/\)[^/].*/{
17870 test -d "$as_dir" && break
17872 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17873 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17874 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17875 { (exit 1); exit 1; }; }; }
17879 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17881 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17882 # A ".." for each directory in $ac_dir_suffix.
17883 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17884 case $ac_top_builddir_sub in
17885 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
17886 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
17889 ac_abs_top_builddir
=$ac_pwd
17890 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
17891 # for backward compatibility:
17892 ac_top_builddir
=$ac_top_build_prefix
17895 .
) # We are building in place.
17897 ac_top_srcdir
=$ac_top_builddir_sub
17898 ac_abs_top_srcdir
=$ac_pwd ;;
17899 [\\/]* | ?
:[\\/]* ) # Absolute name.
17900 ac_srcdir
=$srcdir$ac_dir_suffix;
17901 ac_top_srcdir
=$srcdir
17902 ac_abs_top_srcdir
=$srcdir ;;
17903 *) # Relative name.
17904 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
17905 ac_top_srcdir
=$ac_top_build_prefix$srcdir
17906 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
17908 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
17919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17920 # If the template does not know about datarootdir, expand it.
17921 # FIXME: This hack should be removed a few years after 2.60.
17922 ac_datarootdir_hack
=; ac_datarootdir_seen
=
17935 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17936 *datarootdir
*) ac_datarootdir_seen
=yes;;
17937 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
17938 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17939 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17942 ac_datarootdir_hack='
17943 s&@datadir@&$datadir&g
17944 s&@docdir@&$docdir&g
17945 s&@infodir@&$infodir&g
17946 s&@localedir@&$localedir&g
17947 s&@mandir@&$mandir&g
17948 s&\\\${datarootdir}&$datarootdir&g' ;;
17952 # Neutralize VPATH when `$srcdir' = `.'.
17953 # Shell code in configure.ac might set extrasub.
17954 # FIXME: do we really want to maintain this feature?
17955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17956 ac_sed_extra="$ac_vpsub
17959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17961 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
17962 s|@configure_input@|
$ac_sed_conf_input|
;t t
17963 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
17964 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
17965 s
&@srcdir@
&$ac_srcdir&;t t
17966 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
17967 s
&@top_srcdir@
&$ac_top_srcdir&;t t
17968 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
17969 s
&@builddir@
&$ac_builddir&;t t
17970 s
&@abs_builddir@
&$ac_abs_builddir&;t t
17971 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
17972 $ac_datarootdir_hack
17974 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
17975 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
17976 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
17977 { (exit 1); exit 1; }; }
17979 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17980 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
17981 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
17982 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
17983 which seems to be undefined. Please make sure it is defined." >&5
17984 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
17985 which seems to be undefined. Please make sure it is defined." >&2;}
17989 -) cat "$tmp/out" && rm -f "$tmp/out";;
17990 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17992 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17993 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17994 { (exit 1); exit 1; }; }
18000 if test x"$ac_file" != x-; then
18002 $as_echo "/* $configure_input */" \
18003 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18004 } >"$tmp/config.h" \
18005 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18006 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18007 { (exit 1); exit 1; }; }
18008 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18009 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18010 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18013 mv "$tmp/config.h" "$ac_file" \
18014 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18015 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18016 { (exit 1); exit 1; }; }
18019 $as_echo "/* $configure_input */" \
18020 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18021 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18022 $as_echo "$as_me: error: could not create -" >&2;}
18023 { (exit 1); exit 1; }; }
18033 { (exit 0); exit 0; }
18035 chmod +x $CONFIG_STATUS
18036 ac_clean_files=$ac_clean_files_save
18038 test $ac_write_fail = 0 ||
18039 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18040 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18041 { (exit 1); exit 1; }; }
18044 # configure is writing to config.log, and then calls config.status.
18045 # config.status does its own redirection, appending to config.log.
18046 # Unfortunately, on DOS this fails, as config.log is still kept open
18047 # by configure, so config.status won't be able to
write to it
; its
18048 # output is simply discarded. So we exec the FD to /dev/null,
18049 # effectively closing config.log, so it can be properly (re)opened and
18050 # appended to by config.status. When coming back to configure, we
18051 # need to make the FD available again.
18052 if test "$no_create" != yes; then
18054 ac_config_status_args
=
18055 test "$silent" = yes &&
18056 ac_config_status_args
="$ac_config_status_args --quiet"
18058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18059 exec 5>>auto
/config.log
18060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18061 # would make configure fail if this is the last instruction.
18062 $ac_cs_success ||
{ (exit 1); exit 1; }
18064 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18065 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
18066 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}