2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="vim.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars
='LTLIBOBJS
692 PYTHON_GETPATH_CFLAGS
762 program_transform_name
774 enable_option_checking
788 enable_mzschemeinterp
792 with_python_config_dir
826 ac_precious_vars
='build_alias
838 # Initialize some variables set by options.
840 ac_init_version
=false
841 ac_unrecognized_opts
=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
852 program_transform_name
=s
,x
,x
,
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir
='${exec_prefix}/bin'
867 sbindir
='${exec_prefix}/sbin'
868 libexecdir
='${exec_prefix}/libexec'
869 datarootdir
='${prefix}/share'
870 datadir
='${datarootdir}'
871 sysconfdir
='${prefix}/etc'
872 sharedstatedir
='${prefix}/com'
873 localstatedir
='${prefix}/var'
874 includedir
='${prefix}/include'
875 oldincludedir
='/usr/include'
876 docdir
='${datarootdir}/doc/${PACKAGE}'
877 infodir
='${datarootdir}/info'
882 libdir
='${exec_prefix}/lib'
883 localedir
='${datarootdir}/locale'
884 mandir
='${datarootdir}/man'
890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
892 eval $ac_prev=\
$ac_option
898 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
908 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
910 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
913 -build |
--build |
--buil |
--bui |
--bu)
914 ac_prev
=build_alias
;;
915 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
916 build_alias
=$ac_optarg ;;
918 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
919 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
920 ac_prev
=cache_file
;;
921 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
922 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
923 cache_file
=$ac_optarg ;;
926 cache_file
=config.cache
;;
928 -datadir |
--datadir |
--datadi |
--datad)
930 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
931 datadir
=$ac_optarg ;;
933 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
934 |
--dataroo |
--dataro |
--datar)
935 ac_prev
=datarootdir
;;
936 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
937 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
938 datarootdir
=$ac_optarg ;;
940 -disable-* |
--disable-*)
941 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
944 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
945 { (exit 1); exit 1; }; }
946 ac_useropt_orig
=$ac_useropt
947 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
952 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep
=', ';;
955 eval enable_
$ac_useropt=no
;;
957 -docdir |
--docdir |
--docdi |
--doc |
--do)
959 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
962 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
964 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
967 -enable-* |
--enable-*)
968 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
971 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
972 { (exit 1); exit 1; }; }
973 ac_useropt_orig
=$ac_useropt
974 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep
=', ';;
982 eval enable_
$ac_useropt=\
$ac_optarg ;;
984 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
985 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
986 |
--exec |
--exe |
--ex)
987 ac_prev
=exec_prefix
;;
988 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
989 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
990 |
--exec=* |
--exe=* |
--ex=*)
991 exec_prefix
=$ac_optarg ;;
993 -gas |
--gas |
--ga |
--g)
994 # Obsolete; use --with-gas.
997 -help |
--help |
--hel |
--he |
-h)
999 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1000 ac_init_help
=recursive
;;
1001 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1002 ac_init_help
=short
;;
1004 -host |
--host |
--hos |
--ho)
1005 ac_prev
=host_alias
;;
1006 -host=* |
--host=* |
--hos=* |
--ho=*)
1007 host_alias
=$ac_optarg ;;
1009 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1011 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1013 htmldir
=$ac_optarg ;;
1015 -includedir |
--includedir |
--includedi |
--included |
--include \
1016 |
--includ |
--inclu |
--incl |
--inc)
1017 ac_prev
=includedir
;;
1018 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1019 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1020 includedir
=$ac_optarg ;;
1022 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1024 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1025 infodir
=$ac_optarg ;;
1027 -libdir |
--libdir |
--libdi |
--libd)
1029 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1030 libdir
=$ac_optarg ;;
1032 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1033 |
--libexe |
--libex |
--libe)
1034 ac_prev
=libexecdir
;;
1035 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1036 |
--libexe=* |
--libex=* |
--libe=*)
1037 libexecdir
=$ac_optarg ;;
1039 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1040 ac_prev
=localedir
;;
1041 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1042 localedir
=$ac_optarg ;;
1044 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1045 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1046 ac_prev
=localstatedir
;;
1047 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1048 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1049 localstatedir
=$ac_optarg ;;
1051 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1053 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1054 mandir
=$ac_optarg ;;
1056 -nfp |
--nfp |
--nf)
1057 # Obsolete; use --without-fp.
1060 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1061 |
--no-cr |
--no-c |
-n)
1064 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1065 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1068 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1069 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1070 |
--oldin |
--oldi |
--old |
--ol |
--o)
1071 ac_prev
=oldincludedir
;;
1072 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1073 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1074 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1075 oldincludedir
=$ac_optarg ;;
1077 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1079 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1080 prefix
=$ac_optarg ;;
1082 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1083 |
--program-pre |
--program-pr |
--program-p)
1084 ac_prev
=program_prefix
;;
1085 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1086 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1087 program_prefix
=$ac_optarg ;;
1089 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1090 |
--program-suf |
--program-su |
--program-s)
1091 ac_prev
=program_suffix
;;
1092 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1093 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1094 program_suffix
=$ac_optarg ;;
1096 -program-transform-name |
--program-transform-name \
1097 |
--program-transform-nam |
--program-transform-na \
1098 |
--program-transform-n |
--program-transform- \
1099 |
--program-transform |
--program-transfor \
1100 |
--program-transfo |
--program-transf \
1101 |
--program-trans |
--program-tran \
1102 |
--progr-tra |
--program-tr |
--program-t)
1103 ac_prev
=program_transform_name
;;
1104 -program-transform-name=* |
--program-transform-name=* \
1105 |
--program-transform-nam=* |
--program-transform-na=* \
1106 |
--program-transform-n=* |
--program-transform-=* \
1107 |
--program-transform=* |
--program-transfor=* \
1108 |
--program-transfo=* |
--program-transf=* \
1109 |
--program-trans=* |
--program-tran=* \
1110 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1111 program_transform_name
=$ac_optarg ;;
1113 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1115 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1116 pdfdir
=$ac_optarg ;;
1118 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1120 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1123 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1124 |
-silent |
--silent |
--silen |
--sile |
--sil)
1127 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1129 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1131 sbindir
=$ac_optarg ;;
1133 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1134 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1135 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1137 ac_prev
=sharedstatedir
;;
1138 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1139 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1140 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1142 sharedstatedir
=$ac_optarg ;;
1144 -site |
--site |
--sit)
1146 -site=* |
--site=* |
--sit=*)
1149 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1151 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1152 srcdir
=$ac_optarg ;;
1154 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1155 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1156 ac_prev
=sysconfdir
;;
1157 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1158 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1159 sysconfdir
=$ac_optarg ;;
1161 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1162 ac_prev
=target_alias
;;
1163 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1164 target_alias
=$ac_optarg ;;
1166 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1169 -version |
--version |
--versio |
--versi |
--vers |
-V)
1170 ac_init_version
=: ;;
1173 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1176 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1177 { (exit 1); exit 1; }; }
1178 ac_useropt_orig
=$ac_useropt
1179 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1184 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep
=', ';;
1187 eval with_
$ac_useropt=\
$ac_optarg ;;
1189 -without-* |
--without-*)
1190 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1193 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1194 { (exit 1); exit 1; }; }
1195 ac_useropt_orig
=$ac_useropt
1196 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep
=', ';;
1204 eval with_
$ac_useropt=no
;;
1207 # Obsolete; use --with-x.
1210 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1211 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1212 ac_prev
=x_includes
;;
1213 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1214 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1215 x_includes
=$ac_optarg ;;
1217 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1218 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1219 ac_prev
=x_libraries
;;
1220 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1221 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1222 x_libraries
=$ac_optarg ;;
1224 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1225 Try \`$0 --help' for more information." >&2
1226 { (exit 1); exit 1; }; }
1230 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1233 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1234 { (exit 1); exit 1; }; }
1235 eval $ac_envvar=\
$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 if test -n "$ac_prev"; then
1250 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1251 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1252 { (exit 1); exit 1; }; }
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1258 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1259 { (exit 1); exit 1; }; } ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264 # Check all directory arguments for consistency.
1265 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val
=\$
$ac_var
1271 # Remove trailing slashes.
1274 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\
$ac_val;;
1277 # Be sure to have absolute directory names.
1279 [\\/$
]* | ?
:[\\/]* ) continue;;
1280 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1282 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1283 { (exit 1); exit 1; }; }
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1291 target
=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x
; then
1295 if test "x$build_alias" = x
; then
1296 cross_compiling
=maybe
1297 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298 If a cross compiler is detected then cross compile mode will be used." >&2
1299 elif test "x$build_alias" != "x$host_alias"; then
1305 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1307 test "$silent" = yes && exec 6>/dev
/null
1310 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di
=`ls -di .` &&
1312 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1313 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1314 { (exit 1); exit 1; }; }
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1317 { (exit 1); exit 1; }; }
1320 # Find the source files, if location was not specified.
1321 if test -z "$srcdir"; then
1322 ac_srcdir_defaulted
=yes
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir
=`$as_dirname -- "$as_myself" ||
1325 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329 $as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1352 ac_srcdir_defaulted
=no
1354 if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1356 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1357 { (exit 1); exit 1; }; }
1359 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1362 { (exit 1); exit 1; }; }
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1372 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 for ac_var
in $ac_precious_vars; do
1375 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1377 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1382 # Report the --help message.
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1388 \`configure' configures this package to adapt to many kinds of systems.
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1395 Defaults for the options are specified in brackets.
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print \`checking...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for \`--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 By default, \`make install' will install all the files in
1415 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417 for instance \`--prefix=\$HOME'.
1419 For better control, use the options below.
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1446 --x-includes=DIR X include files are
in DIR
1447 --x-libraries=DIR X library files are
in DIR
1451 if test -n "$ac_init_help"; then
1456 --disable-option-checking ignore unrecognized
--enable/--with options
1457 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1458 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1459 --disable-darwin Disable Darwin
(Mac OS X
) support.
1460 --disable-selinux Don
't check for SELinux support.
1461 --disable-xsmp Disable XSMP session management
1462 --disable-xsmp-interact Disable XSMP interaction
1463 --enable-mzschemeinterp Include MzScheme interpreter.
1464 --enable-perlinterp Include Perl interpreter.
1465 --enable-pythoninterp Include Python interpreter.
1466 --enable-tclinterp Include Tcl interpreter.
1467 --enable-rubyinterp Include Ruby interpreter.
1468 --enable-cscope Include cscope interface.
1469 --enable-workshop Include Sun Visual Workshop support.
1470 --disable-netbeans Disable NetBeans integration support.
1471 --enable-sniff Include Sniff interface.
1472 --enable-multibyte Include multibyte editing support.
1473 --enable-hangulinput Include Hangul input support.
1474 --enable-xim Include XIM input support.
1475 --enable-fontset Include X fontset output support.
1476 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
1477 --enable-gtk-check If auto-select GUI, check for GTK default=yes
1478 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
1479 --enable-gnome-check If GTK GUI, check for GNOME default=no
1480 --enable-motif-check If auto-select GUI, check for Motif default=yes
1481 --enable-athena-check If auto-select GUI, check for Athena default=yes
1482 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
1483 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
1484 --disable-gtktest Do not try to compile and run a test GTK program
1485 --disable-acl Don't check
for ACL support.
1486 --disable-gpm Don
't use gpm (Linux mouse daemon).
1487 --disable-sysmouse Don't use sysmouse
(mouse
in *BSD console
).
1488 --disable-nls Don
't support NLS (gettext()).
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-mac-arch=ARCH current, intel, ppc or both
1494 --with-local-dir=PATH search PATH instead of /usr/local for local libraries.
1495 --without-local-dir do not search /usr/local for local libraries.
1496 --with-vim-name=NAME what to call the Vim executable
1497 --with-ex-name=NAME what to call the Ex executable
1498 --with-view-name=NAME what to call the View executable
1499 --with-global-runtime=DIR global runtime directory in 'runtimepath
'
1500 --with-modified-by=NAME name of who modified a release version
1501 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
1502 --with-compiledby=NAME name to show in :version message
1503 --with-plthome=PLTHOME Use PLTHOME.
1504 --with-python-config-dir=PATH Python's config directory
1505 --with-tclsh=PATH
which tclsh to use
(default
: tclsh8.0
)
1506 --with-x use the X Window System
1507 --with-gtk-prefix=PFX Prefix where GTK is installed
(optional
)
1508 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed
(optional
)
1509 --with-gnome-includes=DIR Specify location of GNOME headers
1510 --with-gnome-libs=DIR Specify location of GNOME libs
1511 --with-gnome Specify prefix
for GNOME files
1512 --with-motif-lib=STRING Library
for Motif
1513 --with-tlib=library terminal library to be used
1515 Some influential environment variables
:
1516 CC C compiler
command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1519 nonstandard directory
<lib dir
>
1520 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1521 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1522 you have headers
in a nonstandard directory
<include dir
>
1524 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1526 Use these variables to override the choices made by
`configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1558 .) # We are building in place.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1592 generated by GNU Autoconf 2.63
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1601 cat >auto/config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by $as_me, which was
1606 generated by GNU Autoconf 2.63. Invocation command line was
1611 exec 5>>auto/config.log
1618 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1619 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1620 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1621 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1622 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1624 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1625 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1627 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1628 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1629 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1631 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1632 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1633 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_must_keep_next=false
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1677 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 -* ) ac_must_keep_next=true ;;
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1725 eval ac_val=\$$ac_var
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1730 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1740 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 $as_echo "$ac_var='\''$ac_val'\''"
1770 if test -n "$ac_subst_files"; then
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 $as_echo "$ac_var='\''$ac_val'\''"
1788 if test -s confdefs.h; then
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1882 # Check that the precious variables saved in the cache have kept the same
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
1890 case $ac_old_set,$ac_new_set in
1892 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1893 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1896 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1897 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
1902 # differences in whitespace do not lead to failure.
1903 ac_old_val_w=`echo x
$ac_old_val`
1904 ac_new_val_w=`echo x
$ac_new_val`
1905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1908 ac_cache_corrupted=:
1910 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1912 eval $ac_var=\$ac_old_val
1914 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1915 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1916 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1920 # Pass precious variables to config.status.
1921 if test "$ac_new_set" = set; then
1923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1924 *) ac_arg=$ac_var=$ac_new_val ;;
1926 case " $ac_configure_args " in
1927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1928 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1932 if $ac_cache_corrupted; then
1933 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1935 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1937 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1938 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1939 { (exit 1); exit 1; }; }
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 ac_config_headers="$ac_config_headers auto
/config.h
:config.h.
in"
1968 cat >>confdefs.h <<\_ACEOF
1972 { $as_echo "$as_me:$LINENO: checking whether
${MAKE-make} sets \$
(MAKE
)" >&5
1973 $as_echo_n "checking whether
${MAKE-make} sets \$
(MAKE
)...
" >&6; }
1975 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1976 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1977 $as_echo_n "(cached
) " >&6
1979 cat >conftest.make <<\_ACEOF
1982 @echo '@@@%%%=$(MAKE)=@@@%%%'
1984 # GNU make sometimes prints "make[1]: Entering...
", which would confuse us.
1985 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1987 eval ac_cv_prog_make_${ac_make}_set=yes;;
1989 eval ac_cv_prog_make_${ac_make}_set=no;;
1993 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1994 { $as_echo "$as_me:$LINENO: result
: yes" >&5
1995 $as_echo "yes" >&6; }
1998 { $as_echo "$as_me:$LINENO: result
: no
" >&5
1999 $as_echo "no
" >&6; }
2000 SET_MAKE="MAKE
=${MAKE-make}"
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009 if test -n "$ac_tool_prefix"; then
2010 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2011 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2012 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2013 $as_echo_n "checking
for $ac_word...
" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015 $as_echo_n "(cached
) " >&6
2017 if test -n "$CC"; then
2018 ac_cv_prog_CC="$CC" # Let the user override the test.
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 test -z "$as_dir" && as_dir=.
2025 for ac_exec_ext in '' $ac_executable_extensions; do
2026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2028 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2038 if test -n "$CC"; then
2039 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2040 $as_echo "$CC" >&6; }
2042 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2043 $as_echo "no
" >&6; }
2048 if test -z "$ac_cv_prog_CC"; then
2050 # Extract the first word of "gcc
", so it can be a program name with args.
2051 set dummy gcc; ac_word=$2
2052 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2053 $as_echo_n "checking
for $ac_word...
" >&6; }
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055 $as_echo_n "(cached
) " >&6
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_prog_ac_ct_CC="gcc
"
2068 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2080 $as_echo "$ac_ct_CC" >&6; }
2082 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2083 $as_echo "no
" >&6; }
2086 if test "x
$ac_ct_CC" = x; then
2089 case $cross_compiling:$ac_tool_warned in
2091 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2092 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&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
: using cross tools not prefixed with
host triplet
" >&5
2292 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2293 ac_tool_warned=yes ;;
2302 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2305 See \`config.log' for more details.
" >&5
2306 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2307 See \
`config.log' for more details." >&2;}
2308 { (exit 1); exit 1; }; }; }
2310 # Provide some information about the compiler.
2311 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2314 { (ac_try="$ac_compiler --version >&5"
2316 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2317 *) ac_try_echo
=$ac_try;;
2319 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2320 $as_echo "$ac_try_echo") >&5
2321 (eval "$ac_compiler --version >&5") 2>&5
2323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }
2325 { (ac_try
="$ac_compiler -v >&5"
2327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2331 $as_echo "$ac_try_echo") >&5
2332 (eval "$ac_compiler -v >&5") 2>&5
2334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }
2336 { (ac_try="$ac_compiler -V >&5"
2338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2339 *) ac_try_echo
=$ac_try;;
2341 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2342 $as_echo "$ac_try_echo") >&5
2343 (eval "$ac_compiler -V >&5") 2>&5
2345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }
2348 cat >conftest.
$ac_ext <<_ACEOF
2351 cat confdefs.h
>>conftest.
$ac_ext
2352 cat >>conftest.
$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2363 ac_clean_files_save
=$ac_clean_files
2364 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2365 # Try to create an executable without -o first, disregard a.out.
2366 # It will help us diagnose broken compilers, and finding out an intuition
2368 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2369 $as_echo_n "checking for C compiler default output file name... " >&6; }
2370 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2372 # The possible output files:
2373 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2376 for ac_file
in $ac_files
2379 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2380 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2385 if { (ac_try
="$ac_link_default"
2387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2391 $as_echo "$ac_try_echo") >&5
2392 (eval "$ac_link_default") 2>&5
2394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; then
2396 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2397 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2398 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2399 # so that the user can short-circuit this test for compilers unknown to
2401 for ac_file in $ac_files ''
2403 test -f "$ac_file" || continue
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2408 # We found the default executable, but exeext='' is most
2412 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2414 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2416 # We set ac_cv_exeext here because the later test for it is not
2417 # safe: cross compilers may not add the suffix if given an `-o'
2418 # argument, so we may need to know it at that point already.
2419 # Even if this section looks crufty: it has the advantage of
2426 test "$ac_cv_exeext" = no && ac_cv_exeext=
2432 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2433 $as_echo "$ac_file" >&6; }
2434 if test -z "$ac_file"; then
2435 $as_echo "$as_me: failed program was:" >&5
2436 sed 's
/^
/|
/' conftest.$ac_ext >&5
2438 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
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
: in \
`$ac_pwd':" >&5
2473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2475 If you meant to cross compile, use \`--host'.
2476 See \
`config.log' for more details." >&5
2477 $as_echo "$as_me: error: cannot run C compiled programs.
2478 If you meant to cross compile, use \`--host'.
2479 See \`config.log' for more details.
" >&2;}
2480 { (exit 1); exit 1; }; }; }
2484 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2485 $as_echo "yes" >&6; }
2487 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2488 ac_clean_files=$ac_clean_files_save
2489 # Check that the compiler produces executables we can run. If not, either
2490 # the compiler is broken, or we cross compile.
2491 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2492 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2493 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2494 $as_echo "$cross_compiling" >&6; }
2496 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2497 $as_echo_n "checking
for suffix of executables...
" >&6; }
2498 if { (ac_try="$ac_link"
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2504 $as_echo "$ac_try_echo") >&5
2505 (eval "$ac_link") 2>&5
2507 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2508 (exit $ac_status); }; then
2509 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2510 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2511 # work properly (i.e., refer to `conftest.exe'), while it won't with
2513 for ac_file in conftest.exe conftest conftest.*; do
2514 test -f "$ac_file" || continue
2516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2517 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2523 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2526 See \`config.log' for more details.
" >&5
2527 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2528 See \
`config.log' for more details." >&2;}
2529 { (exit 1); exit 1; }; }; }
2532 rm -f conftest$ac_cv_exeext
2533 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2534 $as_echo "$ac_cv_exeext" >&6; }
2536 rm -f conftest.$ac_ext
2537 EXEEXT=$ac_cv_exeext
2539 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2540 $as_echo_n "checking for suffix of object files... " >&6; }
2541 if test "${ac_cv_objext+set}" = set; then
2542 $as_echo_n "(cached) " >&6
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.o conftest.obj
2560 if { (ac_try="$ac_compile"
2562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2563 *) ac_try_echo
=$ac_try;;
2565 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2566 $as_echo "$ac_try_echo") >&5
2567 (eval "$ac_compile") 2>&5
2569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; then
2571 for ac_file
in conftest.o conftest.obj conftest.
*; do
2572 test -f "$ac_file" ||
continue;
2574 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
2575 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2580 $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.
$ac_ext >&5
2583 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&5
2587 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588 See \`config.log' for more details." >&2;}
2589 { (exit 1); exit 1; }; }; }
2592 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2594 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595 $as_echo "$ac_cv_objext" >&6; }
2596 OBJEXT
=$ac_cv_objext
2598 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2600 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601 $as_echo_n "(cached) " >&6
2603 cat >conftest.
$ac_ext <<_ACEOF
2606 cat confdefs.h
>>conftest.
$ac_ext
2607 cat >>conftest.
$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2621 rm -f conftest.
$ac_objext
2622 if { (ac_try
="$ac_compile"
2624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2628 $as_echo "$ac_try_echo") >&5
2629 (eval "$ac_compile") 2>conftest.er1
2631 grep -v '^ *+' conftest.er1 >conftest.err
2633 cat conftest.err >&5
2634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } && {
2636 test -z "$ac_c_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest.$ac_objext; then
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2651 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2652 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2653 if test $ac_compiler_gnu = yes; then
2658 ac_test_CFLAGS=${CFLAGS+set}
2659 ac_save_CFLAGS=$CFLAGS
2660 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2662 if test "${ac_cv_prog_cc_g+set}" = set; then
2663 $as_echo_n "(cached) " >&6
2665 ac_save_c_werror_flag=$ac_c_werror_flag
2666 ac_c_werror_flag=yes
2669 cat >conftest.$ac_ext <<_ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2684 rm -f conftest.$ac_objext
2685 if { (ac_try="$ac_compile"
2687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2688 *) ac_try_echo
=$ac_try;;
2690 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2691 $as_echo "$ac_try_echo") >&5
2692 (eval "$ac_compile") 2>conftest.er1
2694 grep -v '^ *+' conftest.er1
>conftest.err
2696 cat conftest.err
>&5
2697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } && {
2699 test -z "$ac_c_werror_flag" ||
2700 test ! -s conftest.err
2701 } && test -s conftest.
$ac_objext; then
2704 $as_echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.
$ac_ext >&5
2708 cat >conftest.
$ac_ext <<_ACEOF
2711 cat confdefs.h
>>conftest.
$ac_ext
2712 cat >>conftest.
$ac_ext <<_ACEOF
2713 /* end confdefs.h. */
2723 rm -f conftest.
$ac_objext
2724 if { (ac_try
="$ac_compile"
2726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2730 $as_echo "$ac_try_echo") >&5
2731 (eval "$ac_compile") 2>conftest.er1
2733 grep -v '^ *+' conftest.er1 >conftest.err
2735 cat conftest.err >&5
2736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } && {
2738 test -z "$ac_c_werror_flag" ||
2739 test ! -s conftest.err
2740 } && test -s conftest.$ac_objext; then
2743 $as_echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2746 ac_c_werror_flag=$ac_save_c_werror_flag
2748 cat >conftest.$ac_ext <<_ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h. */
2763 rm -f conftest.$ac_objext
2764 if { (ac_try="$ac_compile"
2766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2767 *) ac_try_echo
=$ac_try;;
2769 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2770 $as_echo "$ac_try_echo") >&5
2771 (eval "$ac_compile") 2>conftest.er1
2773 grep -v '^ *+' conftest.er1
>conftest.err
2775 cat conftest.err
>&5
2776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } && {
2778 test -z "$ac_c_werror_flag" ||
2779 test ! -s conftest.err
2780 } && test -s conftest.
$ac_objext; then
2783 $as_echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.
$ac_ext >&5
2789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2796 ac_c_werror_flag
=$ac_save_c_werror_flag
2798 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2799 $as_echo "$ac_cv_prog_cc_g" >&6; }
2800 if test "$ac_test_CFLAGS" = set; then
2801 CFLAGS
=$ac_save_CFLAGS
2802 elif test $ac_cv_prog_cc_g = yes; then
2803 if test "$GCC" = yes; then
2809 if test "$GCC" = yes; then
2815 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2817 if test "${ac_cv_prog_cc_c89+set}" = set; then
2818 $as_echo_n "(cached) " >&6
2820 ac_cv_prog_cc_c89
=no
2822 cat >conftest.
$ac_ext <<_ACEOF
2825 cat confdefs.h
>>conftest.
$ac_ext
2826 cat >>conftest.
$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2830 #include <sys/types.h>
2831 #include <sys/stat.h>
2832 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2833 struct buf { int x; };
2834 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2835 static char *e (p, i)
2841 static char *f (char * (*g) (char **, int), char **p, ...)
2846 s = g (p, va_arg (v,int));
2851 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2852 function prototypes and stuff, but not '\xHH' hex character constants.
2853 These don't provoke an error unfortunately, instead are silently treated
2854 as 'x'. The following induces an error, until -std is added to get
2855 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2856 array size at least. It's necessary to write '\x00'==0 to get something
2857 that's true only with -std. */
2858 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2860 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2861 inside strings and character constants. */
2863 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2865 int test (int i, double x);
2866 struct s1 {int (*f) (int a);};
2867 struct s2 {int (*f) (double a);};
2868 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2874 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2879 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
2880 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2882 CC
="$ac_save_CC $ac_arg"
2883 rm -f conftest.
$ac_objext
2884 if { (ac_try
="$ac_compile"
2886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890 $as_echo "$ac_try_echo") >&5
2891 (eval "$ac_compile") 2>conftest.er1
2893 grep -v '^ *+' conftest.er1 >conftest.err
2895 cat conftest.err >&5
2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } && {
2898 test -z "$ac_c_werror_flag" ||
2899 test ! -s conftest.err
2900 } && test -s conftest.$ac_objext; then
2901 ac_cv_prog_cc_c89=$ac_arg
2903 $as_echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2909 rm -f core conftest.err conftest.$ac_objext
2910 test "x$ac_cv_prog_cc_c89" != "xno" && break
2912 rm -f conftest.$ac_ext
2917 case "x$ac_cv_prog_cc_c89" in
2919 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2920 $as_echo "none needed" >&6; } ;;
2922 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2923 $as_echo "unsupported" >&6; } ;;
2925 CC="$CC $ac_cv_prog_cc_c89"
2926 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2927 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2932 ac_cpp='$CPP $CPPFLAGS'
2933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2942 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2943 # On Suns, sometimes $CPP names a directory.
2944 if test -n "$CPP" && test -d "$CPP"; then
2947 if test -z "$CPP"; then
2948 if test "${ac_cv_prog_CPP+set}" = set; then
2949 $as_echo_n "(cached) " >&6
2951 # Double quotes because CPP needs to be expanded
2952 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2955 for ac_c_preproc_warn_flag in '' yes
2957 # Use a header file that comes with gcc, so configuring glibc
2958 # with a fresh cross-compiler works.
2959 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2960 # <limits.h> exists even on freestanding compilers.
2961 # On the NeXT, cc -E runs the code through the compiler's parser,
2962 # not just through cpp. "Syntax error" is here to catch this case.
2963 cat >conftest.$ac_ext <<_ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2970 # include <limits.h>
2972 # include <assert.h>
2976 if { (ac_try="$ac_cpp conftest.$ac_ext"
2978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2979 *) ac_try_echo
=$ac_try;;
2981 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2982 $as_echo "$ac_try_echo") >&5
2983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2985 grep -v '^ *+' conftest.er1
>conftest.err
2987 cat conftest.err
>&5
2988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev
/null
&& {
2990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2991 test ! -s conftest.err
2995 $as_echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.
$ac_ext >&5
2998 # Broken: fails on valid input.
3002 rm -f conftest.err conftest.
$ac_ext
3004 # OK, works on sane cases. Now check whether nonexistent headers
3005 # can be detected and how.
3006 cat >conftest.
$ac_ext <<_ACEOF
3009 cat confdefs.h
>>conftest.
$ac_ext
3010 cat >>conftest.
$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 #include <ac_nonexistent.h>
3014 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3020 $as_echo "$ac_try_echo") >&5
3021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3023 grep -v '^ *+' conftest.er1 >conftest.err
3025 cat conftest.err >&5
3026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } >/dev/null && {
3028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3029 test ! -s conftest.err
3031 # Broken: success on invalid input.
3034 $as_echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 # Passes both tests.
3042 rm -f conftest.err conftest.$ac_ext
3045 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3046 rm -f conftest.err conftest.
$ac_ext
3047 if $ac_preproc_ok; then
3059 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3060 $as_echo "$CPP" >&6; }
3062 for ac_c_preproc_warn_flag
in '' yes
3064 # Use a header file that comes with gcc, so configuring glibc
3065 # with a fresh cross-compiler works.
3066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3067 # <limits.h> exists even on freestanding compilers.
3068 # On the NeXT, cc -E runs the code through the compiler's parser,
3069 # not just through cpp. "Syntax error" is here to catch this case.
3070 cat >conftest.
$ac_ext <<_ACEOF
3073 cat confdefs.h
>>conftest.
$ac_ext
3074 cat >>conftest.
$ac_ext <<_ACEOF
3075 /* end confdefs.h. */
3077 # include <limits.h>
3079 # include <assert.h>
3083 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3089 $as_echo "$ac_try_echo") >&5
3090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } >/dev/null && {
3097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3102 $as_echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Broken: fails on valid input.
3109 rm -f conftest.err conftest.$ac_ext
3111 # OK, works on sane cases. Now check whether nonexistent headers
3112 # can be detected and how.
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3119 #include <ac_nonexistent.h>
3121 if { (ac_try="$ac_cpp conftest.$ac_ext"
3123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3124 *) ac_try_echo
=$ac_try;;
3126 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3127 $as_echo "$ac_try_echo") >&5
3128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1
>conftest.err
3132 cat conftest.err
>&5
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } >/dev
/null
&& {
3135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3138 # Broken: success on invalid input.
3141 $as_echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.
$ac_ext >&5
3144 # Passes both tests.
3149 rm -f conftest.err conftest.
$ac_ext
3152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153 rm -f conftest.err conftest.
$ac_ext
3154 if $ac_preproc_ok; then
3157 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3160 See \`config.log' for more details." >&5
3161 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3162 See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }; }
3167 ac_cpp
='$CPP $CPPFLAGS'
3168 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3173 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3174 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3175 if test "${ac_cv_path_GREP+set}" = set; then
3176 $as_echo_n "(cached) " >&6
3178 if test -z "$GREP"; then
3179 ac_path_GREP_found
=false
3180 # Loop through the user's path and test for each of PROGNAME-LIST
3181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3182 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3185 test -z "$as_dir" && as_dir
=.
3186 for ac_prog
in grep ggrep
; do
3187 for ac_exec_ext
in '' $ac_executable_extensions; do
3188 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3189 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3190 # Check for GNU ac_path_GREP and select it if it is found.
3191 # Check for GNU $ac_path_GREP
3192 case `"$ac_path_GREP" --version 2>&1` in
3194 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3197 $as_echo_n 0123456789 >"conftest.in"
3200 cat "conftest.in" "conftest.in" >"conftest.tmp"
3201 mv "conftest.tmp" "conftest.in"
3202 cp "conftest.in" "conftest.nl"
3203 $as_echo 'GREP' >> "conftest.nl"
3204 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3205 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3206 ac_count
=`expr $ac_count + 1`
3207 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3208 # Best one so far, save it but keep looking for a better one
3209 ac_cv_path_GREP
="$ac_path_GREP"
3210 ac_path_GREP_max
=$ac_count
3212 # 10*(2^10) chars as input seems more than enough
3213 test $ac_count -gt 10 && break
3215 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3218 $ac_path_GREP_found && break 3
3223 if test -z "$ac_cv_path_GREP"; then
3224 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3225 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3226 { (exit 1); exit 1; }; }
3229 ac_cv_path_GREP
=$GREP
3233 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3234 $as_echo "$ac_cv_path_GREP" >&6; }
3235 GREP
="$ac_cv_path_GREP"
3238 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3239 $as_echo_n "checking for egrep... " >&6; }
3240 if test "${ac_cv_path_EGREP+set}" = set; then
3241 $as_echo_n "(cached) " >&6
3243 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3244 then ac_cv_path_EGREP
="$GREP -E"
3246 if test -z "$EGREP"; then
3247 ac_path_EGREP_found
=false
3248 # Loop through the user's path and test for each of PROGNAME-LIST
3249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3250 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3253 test -z "$as_dir" && as_dir
=.
3254 for ac_prog
in egrep; do
3255 for ac_exec_ext
in '' $ac_executable_extensions; do
3256 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3257 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3258 # Check for GNU ac_path_EGREP and select it if it is found.
3259 # Check for GNU $ac_path_EGREP
3260 case `"$ac_path_EGREP" --version 2>&1` in
3262 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3265 $as_echo_n 0123456789 >"conftest.in"
3268 cat "conftest.in" "conftest.in" >"conftest.tmp"
3269 mv "conftest.tmp" "conftest.in"
3270 cp "conftest.in" "conftest.nl"
3271 $as_echo 'EGREP' >> "conftest.nl"
3272 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3273 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3274 ac_count
=`expr $ac_count + 1`
3275 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3276 # Best one so far, save it but keep looking for a better one
3277 ac_cv_path_EGREP
="$ac_path_EGREP"
3278 ac_path_EGREP_max
=$ac_count
3280 # 10*(2^10) chars as input seems more than enough
3281 test $ac_count -gt 10 && break
3283 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3286 $ac_path_EGREP_found && break 3
3291 if test -z "$ac_cv_path_EGREP"; then
3292 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3293 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3294 { (exit 1); exit 1; }; }
3297 ac_cv_path_EGREP
=$EGREP
3302 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3303 $as_echo "$ac_cv_path_EGREP" >&6; }
3304 EGREP
="$ac_cv_path_EGREP"
3307 cat >conftest.
$ac_ext <<_ACEOF
3310 cat confdefs.h
>>conftest.
$ac_ext
3311 cat >>conftest.
$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3316 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3317 $as_echo_n "checking for library containing strerror... " >&6; }
3318 if test "${ac_cv_search_strerror+set}" = set; then
3319 $as_echo_n "(cached) " >&6
3321 ac_func_search_save_LIBS
=$LIBS
3322 cat >conftest.
$ac_ext <<_ACEOF
3325 cat confdefs.h
>>conftest.
$ac_ext
3326 cat >>conftest.
$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3329 /* Override any GCC internal prototype to avoid an error.
3330 Use char because int might match the return type of a GCC
3331 builtin and then its argument prototype would still apply. */
3344 for ac_lib
in '' cposix
; do
3345 if test -z "$ac_lib"; then
3346 ac_res
="none required"
3349 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3351 rm -f conftest.
$ac_objext conftest
$ac_exeext
3352 if { (ac_try
="$ac_link"
3354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3358 $as_echo "$ac_try_echo") >&5
3359 (eval "$ac_link") 2>conftest.er1
3361 grep -v '^ *+' conftest.er1 >conftest.err
3363 cat conftest.err >&5
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } && {
3366 test -z "$ac_c_werror_flag" ||
3367 test ! -s conftest.err
3368 } && test -s conftest$ac_exeext && {
3369 test "$cross_compiling" = yes ||
3370 $as_test_x conftest$ac_exeext
3372 ac_cv_search_strerror=$ac_res
3374 $as_echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3380 rm -rf conftest.dSYM
3381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3383 if test "${ac_cv_search_strerror+set}" = set; then
3387 if test "${ac_cv_search_strerror+set}" = set; then
3390 ac_cv_search_strerror=no
3393 LIBS=$ac_func_search_save_LIBS
3395 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3396 $as_echo "$ac_cv_search_strerror" >&6; }
3397 ac_res=$ac_cv_search_strerror
3398 if test "$ac_res" != no; then
3399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3402 for ac_prog in gawk mawk nawk awk
3404 # Extract the first word of "$ac_prog", so it can be a program name with args.
3405 set dummy $ac_prog; ac_word=$2
3406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_AWK+set}" = set; then
3409 $as_echo_n "(cached) " >&6
3411 if test -n "$AWK"; then
3412 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_AWK="$ac_prog"
3422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 if test -n "$AWK"; then
3433 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3434 $as_echo "$AWK" >&6; }
3436 { $as_echo "$as_me:$LINENO: result: no" >&5
3437 $as_echo "no" >&6; }
3441 test -n "$AWK" && break
3444 # Extract the first word of "strip", so it can be a program name with args.
3445 set dummy strip; ac_word=$2
3446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if test "${ac_cv_prog_STRIP+set}" = set; then
3449 $as_echo_n "(cached) " >&6
3451 if test -n "$STRIP"; then
3452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 test -z "$as_dir" && as_dir=.
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461 ac_cv_prog_STRIP="strip"
3462 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3472 STRIP=$ac_cv_prog_STRIP
3473 if test -n "$STRIP"; then
3474 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3475 $as_echo "$STRIP" >&6; }
3477 { $as_echo "$as_me:$LINENO: result: no" >&5
3478 $as_echo "no" >&6; }
3485 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3486 $as_echo_n "checking for ANSI C header files... " >&6; }
3487 if test "${ac_cv_header_stdc+set}" = set; then
3488 $as_echo_n "(cached) " >&6
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3509 rm -f conftest.$ac_objext
3510 if { (ac_try="$ac_compile"
3512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3513 *) ac_try_echo
=$ac_try;;
3515 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3516 $as_echo "$ac_try_echo") >&5
3517 (eval "$ac_compile") 2>conftest.er1
3519 grep -v '^ *+' conftest.er1
>conftest.err
3521 cat conftest.err
>&5
3522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } && {
3524 test -z "$ac_c_werror_flag" ||
3525 test ! -s conftest.err
3526 } && test -s conftest.
$ac_objext; then
3527 ac_cv_header_stdc
=yes
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.
$ac_ext >&5
3532 ac_cv_header_stdc
=no
3535 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3537 if test $ac_cv_header_stdc = yes; then
3538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3539 cat >conftest.
$ac_ext <<_ACEOF
3542 cat confdefs.h
>>conftest.
$ac_ext
3543 cat >>conftest.
$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "memchr" >/dev
/null
2>&1; then
3552 ac_cv_header_stdc
=no
3558 if test $ac_cv_header_stdc = yes; then
3559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3560 cat >conftest.
$ac_ext <<_ACEOF
3563 cat confdefs.h
>>conftest.
$ac_ext
3564 cat >>conftest.
$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 $EGREP "free" >/dev
/null
2>&1; then
3573 ac_cv_header_stdc
=no
3579 if test $ac_cv_header_stdc = yes; then
3580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3581 if test "$cross_compiling" = yes; then
3584 cat >conftest.
$ac_ext <<_ACEOF
3587 cat confdefs.h
>>conftest.
$ac_ext
3588 cat >>conftest.
$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3592 #if ((' ' & 0x0FF) == 0x020)
3593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3596 # define ISLOWER(c) \
3597 (('a' <= (c) && (c) <= 'i') \
3598 || ('j' <= (c) && (c) <= 'r') \
3599 || ('s' <= (c) && (c) <= 'z'))
3600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3608 for (i = 0; i < 256; i++)
3609 if (XOR (islower (i), ISLOWER (i))
3610 || toupper (i) != TOUPPER (i))
3615 rm -f conftest
$ac_exeext
3616 if { (ac_try
="$ac_link"
3618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3619 *) ac_try_echo=$ac_try;;
3621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3622 $as_echo "$ac_try_echo") >&5
3623 (eval "$ac_link") 2>&5
3625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3627 { (case "(($ac_try" in
3628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3629 *) ac_try_echo
=$ac_try;;
3631 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3632 $as_echo "$ac_try_echo") >&5
3633 (eval "$ac_try") 2>&5
3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3639 $as_echo "$as_me: program exited with status $ac_status" >&5
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3644 ac_cv_header_stdc
=no
3646 rm -rf conftest.dSYM
3647 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
3653 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3654 $as_echo "$ac_cv_header_stdc" >&6; }
3655 if test $ac_cv_header_stdc = yes; then
3657 cat >>confdefs.h
<<\_ACEOF
3658 #define STDC_HEADERS 1
3663 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3664 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3665 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3666 $as_echo_n "(cached) " >&6
3668 cat >conftest.
$ac_ext <<_ACEOF
3671 cat confdefs.h
>>conftest.
$ac_ext
3672 cat >>conftest.
$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 #include <sys/types.h>
3675 #include <sys/wait.h>
3677 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3680 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3688 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3693 rm -f conftest.
$ac_objext
3694 if { (ac_try
="$ac_compile"
3696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3700 $as_echo "$ac_try_echo") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3703 grep -v '^ *+' conftest.er1 >conftest.err
3705 cat conftest.err >&5
3706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3711 ac_cv_header_sys_wait_h=yes
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_cv_header_sys_wait_h=no
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3722 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
3723 if test $ac_cv_header_sys_wait_h = yes; then
3725 cat >>confdefs.h <<\_ACEOF
3726 #define HAVE_SYS_WAIT_H 1
3732 if test -z "$CFLAGS"; then
3734 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3736 if test "$GCC" = yes; then
3737 gccversion=`"$CC" -dumpversion`
3738 if test "x$gccversion" = "x"; then
3739 gccversion=`"$CC" --version |
sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3741 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3742 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3743 CFLAGS=`echo "$CFLAGS" |
sed 's/-O[23456789]/-O/'`
3745 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" |
grep -v fno-strength-reduce
>/dev
/null
`; then
3746 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3747 CFLAGS="$CFLAGS -fno-strength-reduce"
3752 if test "$cross_compiling" = yes; then
3753 { $as_echo "$as_me:$LINENO: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3754 $as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3757 test "$GCC" = yes && CPP_MM=M;
3759 if test -f ./toolcheck; then
3760 { $as_echo "$as_me:$LINENO: checking for buggy tools..." >&5
3761 $as_echo "$as_me: checking for buggy tools..." >&6;}
3765 OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3767 { $as_echo "$as_me:$LINENO: checking for BeOS" >&5
3768 $as_echo_n "checking for BeOS... " >&6; }
3770 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3771 BEOS=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3772 $as_echo "yes" >&6; };;
3773 *) BEOS=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3774 $as_echo "no" >&6; };;
3777 { $as_echo "$as_me:$LINENO: checking for QNX" >&5
3778 $as_echo_n "checking for QNX... " >&6; }
3780 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3781 test -z "$with_x" && with_x=no
3782 QNX=yes; { $as_echo "$as_me:$LINENO: result: yes" >&5
3783 $as_echo "yes" >&6; };;
3784 *) QNX=no; { $as_echo "$as_me:$LINENO: result: no" >&5
3785 $as_echo "no" >&6; };;
3788 { $as_echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
3789 $as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3790 if test "`(uname
) 2>/dev
/null
`" = Darwin; then
3791 { $as_echo "$as_me:$LINENO: result: yes" >&5
3792 $as_echo "yes" >&6; }
3794 { $as_echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
3795 $as_echo_n "checking --disable-darwin argument... " >&6; }
3796 # Check whether --enable-darwin was given.
3797 if test "${enable_darwin+set}" = set; then
3798 enableval=$enable_darwin;
3803 if test "$enable_darwin" = "yes"; then
3804 { $as_echo "$as_me:$LINENO: result: no" >&5
3805 $as_echo "no" >&6; }
3806 { $as_echo "$as_me:$LINENO: checking if Darwin files are there" >&5
3807 $as_echo_n "checking if Darwin files are there... " >&6; }
3808 if test -f os_macosx.c; then
3809 { $as_echo "$as_me:$LINENO: result: yes" >&5
3810 $as_echo "yes" >&6; }
3812 { $as_echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
3813 $as_echo "no, Darwin support disabled" >&6; }
3817 { $as_echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
3818 $as_echo "yes, Darwin support excluded" >&6; }
3821 { $as_echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
3822 $as_echo_n "checking --with-mac-arch argument... " >&6; }
3824 # Check whether --with-mac-arch was given.
3825 if test "${with_mac_arch+set}" = set; then
3826 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:$LINENO: result: $MACARCH" >&5
3827 $as_echo "$MACARCH" >&6; }
3829 MACARCH="current"; { $as_echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
3830 $as_echo "defaulting to $MACARCH" >&6; }
3834 if test "x$MACARCH" = "xboth"; then
3835 { $as_echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
3836 $as_echo_n "checking for 10.4 universal SDK... " >&6; }
3837 save_cppflags="$CPPFLAGS"
3838 save_cflags="$CFLAGS"
3839 save_ldflags="$LDFLAGS"
3840 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3856 rm -f conftest.$ac_objext conftest$ac_exeext
3857 if { (ac_try="$ac_link"
3859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3860 *) ac_try_echo
=$ac_try;;
3862 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3863 $as_echo "$ac_try_echo") >&5
3864 (eval "$ac_link") 2>conftest.er1
3866 grep -v '^ *+' conftest.er1
>conftest.err
3868 cat conftest.err
>&5
3869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest
$ac_exeext && {
3874 test "$cross_compiling" = yes ||
3875 $as_test_x conftest
$ac_exeext
3877 { $as_echo "$as_me:$LINENO: result: found" >&5
3878 $as_echo "found" >&6; }
3880 $as_echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.
$ac_ext >&5
3883 { $as_echo "$as_me:$LINENO: result: not found" >&5
3884 $as_echo "not found" >&6; }
3885 CFLAGS
="$save_cflags"
3886 { $as_echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
3887 $as_echo_n "checking if Intel architecture is supported... " >&6; }
3888 CPPFLAGS
="$CPPFLAGS -arch i386"
3889 LDFLAGS
="$save_ldflags -arch i386"
3890 cat >conftest.
$ac_ext <<_ACEOF
3893 cat confdefs.h
>>conftest.
$ac_ext
3894 cat >>conftest.
$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3905 rm -f conftest.
$ac_objext conftest
$ac_exeext
3906 if { (ac_try
="$ac_link"
3908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3912 $as_echo "$ac_try_echo") >&5
3913 (eval "$ac_link") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest$ac_exeext && {
3923 test "$cross_compiling" = yes ||
3924 $as_test_x conftest$ac_exeext
3926 { $as_echo "$as_me:$LINENO: result: yes" >&5
3927 $as_echo "yes" >&6; }; MACARCH="intel"
3929 $as_echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3932 { $as_echo "$as_me:$LINENO: result: no" >&5
3933 $as_echo "no" >&6; }
3935 CPPFLAGS="$save_cppflags -arch ppc"
3936 LDFLAGS="$save_ldflags -arch ppc"
3939 rm -rf conftest.dSYM
3940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3941 conftest$ac_exeext conftest.$ac_ext
3944 rm -rf conftest.dSYM
3945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3946 conftest$ac_exeext conftest.$ac_ext
3947 elif test "x$MACARCH" = "xintel"; then
3948 CPPFLAGS="$CPPFLAGS -arch intel"
3949 LDFLAGS="$LDFLAGS -arch intel"
3950 elif test "x$MACARCH" = "xppc"; then
3951 CPPFLAGS="$CPPFLAGS -arch ppc"
3952 LDFLAGS="$LDFLAGS -arch ppc"
3955 if test "$enable_darwin" = "yes"; then
3957 OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
3958 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
3959 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3960 if test "x$MACARCH" = "xboth"; then
3961 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3963 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3966 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3976 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3977 inttypes.h stdint.h unistd.h
3979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3980 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3981 $as_echo_n "checking for $ac_header... " >&6; }
3982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3983 $as_echo_n "(cached) " >&6
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 $ac_includes_default
3993 #include <$ac_header>
3995 rm -f conftest.$ac_objext
3996 if { (ac_try="$ac_compile"
3998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3999 *) ac_try_echo
=$ac_try;;
4001 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4005 grep -v '^ *+' conftest.er1
>conftest.err
4007 cat conftest.err
>&5
4008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest.
$ac_objext; then
4013 eval "$as_ac_Header=yes"
4015 $as_echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.
$ac_ext >&5
4018 eval "$as_ac_Header=no"
4021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4023 ac_res
=`eval 'as_val=${'$as_ac_Header'}
4024 $as_echo "$as_val"'`
4025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4026 $as_echo "$ac_res" >&6; }
4027 as_val
=`eval 'as_val=${'$as_ac_Header'}
4028 $as_echo "$as_val"'`
4029 if test "x$as_val" = x
""yes; then
4030 cat >>confdefs.h
<<_ACEOF
4031 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4039 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4040 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4041 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4042 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4043 $as_echo_n "(cached) " >&6
4045 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4046 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4048 # Is the header compilable?
4049 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
4050 $as_echo_n "checking Carbon/Carbon.h usability... " >&6; }
4051 cat >conftest.
$ac_ext <<_ACEOF
4054 cat confdefs.h
>>conftest.
$ac_ext
4055 cat >>conftest.
$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 $ac_includes_default
4058 #include <Carbon/Carbon.h>
4060 rm -f conftest.
$ac_objext
4061 if { (ac_try
="$ac_compile"
4063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4067 $as_echo "$ac_try_echo") >&5
4068 (eval "$ac_compile") 2>conftest.er1
4070 grep -v '^ *+' conftest.er1 >conftest.err
4072 cat conftest.err >&5
4073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); } && {
4075 test -z "$ac_c_werror_flag" ||
4076 test ! -s conftest.err
4077 } && test -s conftest.$ac_objext; then
4078 ac_header_compiler=yes
4080 $as_echo "$as_me: failed program was:" >&5
4081 sed 's/^/| /' conftest.$ac_ext >&5
4083 ac_header_compiler=no
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4088 $as_echo "$ac_header_compiler" >&6; }
4090 # Is the header present?
4091 { $as_echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
4092 $as_echo_n "checking Carbon/Carbon.h presence... " >&6; }
4093 cat >conftest.$ac_ext <<_ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 #include <Carbon/Carbon.h>
4101 if { (ac_try="$ac_cpp conftest.$ac_ext"
4103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4104 *) ac_try_echo
=$ac_try;;
4106 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4107 $as_echo "$ac_try_echo") >&5
4108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4110 grep -v '^ *+' conftest.er1
>conftest.err
4112 cat conftest.err
>&5
4113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev
/null
&& {
4115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4118 ac_header_preproc
=yes
4120 $as_echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.
$ac_ext >&5
4123 ac_header_preproc
=no
4126 rm -f conftest.err conftest.
$ac_ext
4127 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4128 $as_echo "$ac_header_preproc" >&6; }
4130 # So? What about this header?
4131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4133 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
4134 $as_echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4135 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
4136 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
4137 ac_header_preproc
=yes
4140 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
4141 $as_echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
4142 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
4143 $as_echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
4144 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
4145 $as_echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
4146 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
4147 $as_echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
4148 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
4149 $as_echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
4150 { $as_echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
4151 $as_echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
4155 { $as_echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
4156 $as_echo_n "checking for Carbon/Carbon.h... " >&6; }
4157 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
4158 $as_echo_n "(cached) " >&6
4160 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
4162 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
4163 $as_echo "$ac_cv_header_Carbon_Carbon_h" >&6; }
4166 if test "x$ac_cv_header_Carbon_Carbon_h" = x
""yes; then
4171 if test "x$CARBON" = "xyes"; then
4172 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
4178 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4179 CFLAGS
=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4183 { $as_echo "$as_me:$LINENO: result: no" >&5
4184 $as_echo "no" >&6; }
4190 if test "$cross_compiling" = no
; then
4191 { $as_echo "$as_me:$LINENO: checking --with-local-dir argument" >&5
4192 $as_echo_n "checking --with-local-dir argument... " >&6; }
4193 have_local_include
=''
4196 # Check whether --with-local-dir was given.
4197 if test "${with_local_dir+set}" = set; then
4198 withval
=$with_local_dir;
4199 local_dir
="$withval"
4203 # avoid adding local dir to LDFLAGS and CPPFLAGS
4207 *) { { $as_echo "$as_me:$LINENO: error: must pass path argument to --with-local-dir" >&5
4208 $as_echo "$as_me: error: must pass path argument to --with-local-dir" >&2;}
4209 { (exit 1); exit 1; }; } ;;
4211 { $as_echo "$as_me:$LINENO: result: $local_dir" >&5
4212 $as_echo "$local_dir" >&6; }
4216 local_dir
=/usr
/local
4217 { $as_echo "$as_me:$LINENO: result: Defaulting to $local_dir" >&5
4218 $as_echo "Defaulting to $local_dir" >&6; }
4222 if test "$GCC" = yes -a "$local_dir" != no
; then
4223 echo 'void f(){}' > conftest.c
4224 have_local_include
=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4225 have_local_lib
=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4226 rm -f conftest.c conftest.o
4228 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4229 tt
=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4230 if test "$tt" = "$LDFLAGS"; then
4231 LDFLAGS
="$LDFLAGS -L${local_dir}/lib"
4234 if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4235 tt
=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4236 if test "$tt" = "$CPPFLAGS"; then
4237 CPPFLAGS
="$CPPFLAGS -I${local_dir}/include"
4242 { $as_echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
4243 $as_echo_n "checking --with-vim-name argument... " >&6; }
4245 # Check whether --with-vim-name was given.
4246 if test "${with_vim_name+set}" = set; then
4247 withval
=$with_vim_name; VIMNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIMNAME" >&5
4248 $as_echo "$VIMNAME" >&6; }
4250 VIMNAME
="vim"; { $as_echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
4251 $as_echo "Defaulting to $VIMNAME" >&6; }
4255 { $as_echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
4256 $as_echo_n "checking --with-ex-name argument... " >&6; }
4258 # Check whether --with-ex-name was given.
4259 if test "${with_ex_name+set}" = set; then
4260 withval
=$with_ex_name; EXNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $EXNAME" >&5
4261 $as_echo "$EXNAME" >&6; }
4263 EXNAME
="ex"; { $as_echo "$as_me:$LINENO: result: Defaulting to ex" >&5
4264 $as_echo "Defaulting to ex" >&6; }
4268 { $as_echo "$as_me:$LINENO: checking --with-view-name argument" >&5
4269 $as_echo_n "checking --with-view-name argument... " >&6; }
4271 # Check whether --with-view-name was given.
4272 if test "${with_view_name+set}" = set; then
4273 withval
=$with_view_name; VIEWNAME
="$withval"; { $as_echo "$as_me:$LINENO: result: $VIEWNAME" >&5
4274 $as_echo "$VIEWNAME" >&6; }
4276 VIEWNAME
="view"; { $as_echo "$as_me:$LINENO: result: Defaulting to view" >&5
4277 $as_echo "Defaulting to view" >&6; }
4282 { $as_echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
4283 $as_echo_n "checking --with-global-runtime argument... " >&6; }
4285 # Check whether --with-global-runtime was given.
4286 if test "${with_global_runtime+set}" = set; then
4287 withval
=$with_global_runtime; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4288 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4289 #define RUNTIME_GLOBAL "$withval"
4293 { $as_echo "$as_me:$LINENO: result: no" >&5
4294 $as_echo "no" >&6; }
4298 { $as_echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
4299 $as_echo_n "checking --with-modified-by argument... " >&6; }
4301 # Check whether --with-modified-by was given.
4302 if test "${with_modified_by+set}" = set; then
4303 withval
=$with_modified_by; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4304 $as_echo "$withval" >&6; }; cat >>confdefs.h
<<_ACEOF
4305 #define MODIFIED_BY "$withval"
4309 { $as_echo "$as_me:$LINENO: result: no" >&5
4310 $as_echo "no" >&6; }
4314 { $as_echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
4315 $as_echo_n "checking if character set is EBCDIC... " >&6; }
4316 cat >conftest.
$ac_ext <<_ACEOF
4319 cat confdefs.h
>>conftest.
$ac_ext
4320 cat >>conftest.
$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4326 /* TryCompile function for CharSet.
4327 Treat any failure as ASCII for compatibility with existing art.
4328 Use compile-time rather than run-time tests for cross-compiler
4331 make an error "Character set is not EBCDIC"
4337 rm -f conftest.
$ac_objext
4338 if { (ac_try
="$ac_compile"
4340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4344 $as_echo "$ac_try_echo") >&5
4345 (eval "$ac_compile") 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } && {
4352 test -z "$ac_c_werror_flag" ||
4353 test ! -s conftest.err
4354 } && test -s conftest.$ac_objext; then
4355 # TryCompile action if true
4358 $as_echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4361 # TryCompile action if false
4365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4366 # end of TryCompile ])
4367 # end of CacheVal CvEbcdic
4368 { $as_echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
4369 $as_echo "$cf_cv_ebcdic" >&6; }
4370 case "$cf_cv_ebcdic" in #(vi
4371 yes) cat >>confdefs.h <<\_ACEOF
4377 *) line_break='"\\012"';;
4381 if test "$cf_cv_ebcdic" = "yes"; then
4382 { $as_echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
4383 $as_echo_n "checking for OS/390 Unix... " >&6; }
4385 OS/390) OS390Unix="yes";
4386 if test "$CC" = "cc"; then
4390 if test "$CC" = "c89"; then
4397 if test "$ccm" != "1"; then
4399 echo "------------------------------------------"
4400 echo " On OS/390 Unix, the environment variable"
4401 echo " __CC_${ccn}MODE must be set to \"1\"!"
4403 echo " export _CC_${ccn}MODE=1"
4404 echo " and then call configure again."
4405 echo "------------------------------------------"
4408 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4409 { $as_echo "$as_me:$LINENO: result: yes" >&5
4410 $as_echo "yes" >&6; }
4413 { $as_echo "$as_me:$LINENO: result: no" >&5
4414 $as_echo "no" >&6; }
4419 { $as_echo "$as_me:$LINENO: checking --disable-selinux argument" >&5
4420 $as_echo_n "checking --disable-selinux argument... " >&6; }
4421 # Check whether --enable-selinux was given.
4422 if test "${enable_selinux+set}" = set; then
4423 enableval=$enable_selinux;
4425 enable_selinux="yes"
4428 if test "$enable_selinux" = "yes"; then
4429 { $as_echo "$as_me:$LINENO: result: no" >&5
4430 $as_echo "no" >&6; }
4431 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
4432 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4433 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
4434 $as_echo_n "(cached) " >&6
4436 ac_check_lib_save_LIBS=$LIBS
4437 LIBS="-lselinux $LIBS"
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4445 /* Override any GCC internal prototype to avoid an error.
4446 Use char because int might match the return type of a GCC
4447 builtin and then its argument prototype would still apply. */
4451 char is_selinux_enabled ();
4455 return is_selinux_enabled ();
4460 rm -f conftest.$ac_objext conftest$ac_exeext
4461 if { (ac_try="$ac_link"
4463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4464 *) ac_try_echo
=$ac_try;;
4466 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4467 $as_echo "$ac_try_echo") >&5
4468 (eval "$ac_link") 2>conftest.er1
4470 grep -v '^ *+' conftest.er1
>conftest.err
4472 cat conftest.err
>&5
4473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); } && {
4475 test -z "$ac_c_werror_flag" ||
4476 test ! -s conftest.err
4477 } && test -s conftest
$ac_exeext && {
4478 test "$cross_compiling" = yes ||
4479 $as_test_x conftest
$ac_exeext
4481 ac_cv_lib_selinux_is_selinux_enabled
=yes
4483 $as_echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.
$ac_ext >&5
4486 ac_cv_lib_selinux_is_selinux_enabled
=no
4489 rm -rf conftest.dSYM
4490 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4491 conftest
$ac_exeext conftest.
$ac_ext
4492 LIBS
=$ac_check_lib_save_LIBS
4494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4495 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4496 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then
4497 LIBS
="$LIBS -lselinux"
4498 cat >>confdefs.h
<<\_ACEOF
4499 #define HAVE_SELINUX 1
4505 { $as_echo "$as_me:$LINENO: result: yes" >&5
4506 $as_echo "yes" >&6; }
4510 { $as_echo "$as_me:$LINENO: checking --with-features argument" >&5
4511 $as_echo_n "checking --with-features argument... " >&6; }
4513 # Check whether --with-features was given.
4514 if test "${with_features+set}" = set; then
4515 withval
=$with_features; features
="$withval"; { $as_echo "$as_me:$LINENO: result: $features" >&5
4516 $as_echo "$features" >&6; }
4518 features
="normal"; { $as_echo "$as_me:$LINENO: result: Defaulting to normal" >&5
4519 $as_echo "Defaulting to normal" >&6; }
4526 tiny
) cat >>confdefs.h
<<\_ACEOF
4530 small
) cat >>confdefs.h
<<\_ACEOF
4531 #define FEAT_SMALL 1
4534 normal
) cat >>confdefs.h
<<\_ACEOF
4535 #define FEAT_NORMAL 1
4537 dovimdiff
="installvimdiff";
4538 dogvimdiff
="installgvimdiff" ;;
4539 big
) cat >>confdefs.h
<<\_ACEOF
4542 dovimdiff
="installvimdiff";
4543 dogvimdiff
="installgvimdiff" ;;
4544 huge
) cat >>confdefs.h
<<\_ACEOF
4547 dovimdiff
="installvimdiff";
4548 dogvimdiff
="installgvimdiff" ;;
4549 *) { $as_echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
4550 $as_echo "Sorry, $features is not supported" >&6; } ;;
4556 { $as_echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
4557 $as_echo_n "checking --with-compiledby argument... " >&6; }
4559 # Check whether --with-compiledby was given.
4560 if test "${with_compiledby+set}" = set; then
4561 withval
=$with_compiledby; compiledby
="$withval"; { $as_echo "$as_me:$LINENO: result: $withval" >&5
4562 $as_echo "$withval" >&6; }
4564 compiledby
=""; { $as_echo "$as_me:$LINENO: result: no" >&5
4565 $as_echo "no" >&6; }
4570 { $as_echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
4571 $as_echo_n "checking --disable-xsmp argument... " >&6; }
4572 # Check whether --enable-xsmp was given.
4573 if test "${enable_xsmp+set}" = set; then
4574 enableval
=$enable_xsmp;
4580 if test "$enable_xsmp" = "yes"; then
4581 { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4583 { $as_echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
4584 $as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4585 # Check whether --enable-xsmp-interact was given.
4586 if test "${enable_xsmp_interact+set}" = set; then
4587 enableval
=$enable_xsmp_interact;
4589 enable_xsmp_interact
="yes"
4592 if test "$enable_xsmp_interact" = "yes"; then
4593 { $as_echo "$as_me:$LINENO: result: no" >&5
4594 $as_echo "no" >&6; }
4595 cat >>confdefs.h
<<\_ACEOF
4596 #define USE_XSMP_INTERACT 1
4600 { $as_echo "$as_me:$LINENO: result: yes" >&5
4601 $as_echo "yes" >&6; }
4604 { $as_echo "$as_me:$LINENO: result: yes" >&5
4605 $as_echo "yes" >&6; }
4608 { $as_echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
4609 $as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4610 # Check whether --enable-mzschemeinterp was given.
4611 if test "${enable_mzschemeinterp+set}" = set; then
4612 enableval
=$enable_mzschemeinterp;
4614 enable_mzschemeinterp
="no"
4617 { $as_echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
4618 $as_echo "$enable_mzschemeinterp" >&6; }
4620 if test "$enable_mzschemeinterp" = "yes"; then
4623 { $as_echo "$as_me:$LINENO: checking --with-plthome argument" >&5
4624 $as_echo_n "checking --with-plthome argument... " >&6; }
4626 # Check whether --with-plthome was given.
4627 if test "${with_plthome+set}" = set; then
4628 withval
=$with_plthome; with_plthome
="$withval"; { $as_echo "$as_me:$LINENO: result: $with_plthome" >&5
4629 $as_echo "$with_plthome" >&6; }
4631 with_plthome
="";{ $as_echo "$as_me:$LINENO: result: \"no\"" >&5
4632 $as_echo "\"no\"" >&6; }
4636 if test "X$with_plthome" != "X"; then
4637 vi_cv_path_mzscheme_pfx
="$with_plthome"
4639 { $as_echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
4640 $as_echo_n "checking PLTHOME environment var... " >&6; }
4641 if test "X$PLTHOME" != "X"; then
4642 { $as_echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
4643 $as_echo "\"$PLTHOME\"" >&6; }
4644 vi_cv_path_mzscheme_pfx
="$PLTHOME"
4646 { $as_echo "$as_me:$LINENO: result: not set" >&5
4647 $as_echo "not set" >&6; }
4648 # Extract the first word of "mzscheme", so it can be a program name with args.
4649 set dummy mzscheme
; ac_word
=$2
4650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
4653 $as_echo_n "(cached) " >&6
4655 case $vi_cv_path_mzscheme in
4657 ac_cv_path_vi_cv_path_mzscheme
="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir
=.
4665 for ac_exec_ext
in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_path_vi_cv_path_mzscheme
="$as_dir/$ac_word$ac_exec_ext"
4668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 vi_cv_path_mzscheme
=$ac_cv_path_vi_cv_path_mzscheme
4679 if test -n "$vi_cv_path_mzscheme"; then
4680 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
4681 $as_echo "$vi_cv_path_mzscheme" >&6; }
4683 { $as_echo "$as_me:$LINENO: result: no" >&5
4684 $as_echo "no" >&6; }
4689 if test "X$vi_cv_path_mzscheme" != "X"; then
4690 lsout
=`ls -l $vi_cv_path_mzscheme`
4691 if echo "$lsout" |
grep -e '->' >/dev
/null
2>/dev
/null
; then
4692 vi_cv_path_mzscheme
=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4696 if test "X$vi_cv_path_mzscheme" != "X"; then
4697 { $as_echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
4698 $as_echo_n "checking MzScheme install prefix... " >&6; }
4699 if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
4700 $as_echo_n "(cached) " >&6
4702 echo "(display (simplify-path \
4703 (build-path (call-with-values \
4704 (lambda () (split-path (find-system-path (quote exec-file)))) \
4705 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4706 vi_cv_path_mzscheme_pfx
=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4709 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
4710 $as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4717 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4718 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4719 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4720 if test -f $vi_cv_path_mzscheme_pfx/include
/scheme.h
; then
4721 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
4722 { $as_echo "$as_me:$LINENO: result: yes" >&5
4723 $as_echo "yes" >&6; }
4725 { $as_echo "$as_me:$LINENO: result: no" >&5
4726 $as_echo "no" >&6; }
4727 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4728 $as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4729 if test -f $vi_cv_path_mzscheme_pfx/include
/plt
/scheme.h
; then
4730 { $as_echo "$as_me:$LINENO: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 SCHEME_INC
=${vi_cv_path_mzscheme_pfx}/include
/plt
4734 { $as_echo "$as_me:$LINENO: result: no" >&5
4735 $as_echo "no" >&6; }
4736 { $as_echo "$as_me:$LINENO: checking if scheme.h can be found in /usr/include/plt/" >&5
4737 $as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4738 if test -f /usr
/include
/plt
/scheme.h
; then
4739 { $as_echo "$as_me:$LINENO: result: yes" >&5
4740 $as_echo "yes" >&6; }
4741 SCHEME_INC
=/usr
/include
/plt
4743 { $as_echo "$as_me:$LINENO: result: no" >&5
4744 $as_echo "no" >&6; }
4745 vi_cv_path_mzscheme_pfx
=
4751 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4752 if test "x$MACOSX" = "xyes"; then
4753 MZSCHEME_LIBS
="-framework PLT_MzScheme"
4754 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4755 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4756 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4757 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4758 MZSCHEME_LIBS
="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4760 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4761 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4762 MZSCHEME_CFLAGS
="-DMZ_PRECISE_GC"
4764 MZSCHEME_LIBS
="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4766 if test "$GCC" = yes; then
4767 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4768 elif test "`(uname) 2>/dev/null`" = SunOS
&&
4769 uname
-r |
grep '^5' >/dev
/null
; then
4770 MZSCHEME_LIBS
="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4773 if test -d $vi_cv_path_mzscheme_pfx/lib
/plt
/collects
; then
4774 SCHEME_COLLECTS
=lib
/plt
/
4776 if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4777 MZSCHEME_EXTRA
="mzscheme_base.c"
4778 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4779 MZSCHEME_MZC
="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4781 MZSCHEME_CFLAGS
="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4782 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4783 MZSCHEME_SRC
="if_mzsch.c"
4784 MZSCHEME_OBJ
="objects/if_mzsch.o"
4785 MZSCHEME_PRO
="if_mzsch.pro"
4786 cat >>confdefs.h
<<\_ACEOF
4787 #define FEAT_MZSCHEME 1
4801 { $as_echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
4802 $as_echo_n "checking --enable-perlinterp argument... " >&6; }
4803 # Check whether --enable-perlinterp was given.
4804 if test "${enable_perlinterp+set}" = set; then
4805 enableval
=$enable_perlinterp;
4807 enable_perlinterp
="no"
4810 { $as_echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
4811 $as_echo "$enable_perlinterp" >&6; }
4812 if test "$enable_perlinterp" = "yes"; then
4814 # Extract the first word of "perl", so it can be a program name with args.
4815 set dummy perl
; ac_word
=$2
4816 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
4819 $as_echo_n "(cached) " >&6
4821 case $vi_cv_path_perl in
4823 ac_cv_path_vi_cv_path_perl
="$vi_cv_path_perl" # Let the user override the test with a path.
4826 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4830 test -z "$as_dir" && as_dir
=.
4831 for ac_exec_ext
in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_path_vi_cv_path_perl
="$as_dir/$ac_word$ac_exec_ext"
4834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 vi_cv_path_perl
=$ac_cv_path_vi_cv_path_perl
4845 if test -n "$vi_cv_path_perl"; then
4846 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
4847 $as_echo "$vi_cv_path_perl" >&6; }
4849 { $as_echo "$as_me:$LINENO: result: no" >&5
4850 $as_echo "no" >&6; }
4854 if test "X$vi_cv_path_perl" != "X"; then
4855 { $as_echo "$as_me:$LINENO: checking Perl version" >&5
4856 $as_echo_n "checking Perl version... " >&6; }
4857 if $vi_cv_path_perl -e 'require 5.003_01' >/dev
/null
2>/dev
/null
; then
4858 eval `$vi_cv_path_perl -V:usethreads`
4859 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4862 if $vi_cv_path_perl -e 'require 5.6.0' >/dev
/null
2>/dev
/null
; then
4863 eval `$vi_cv_path_perl -V:use5005threads`
4864 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4868 { $as_echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4869 $as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4873 { $as_echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4874 $as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4877 if test $badthreads = no
; then
4878 { $as_echo "$as_me:$LINENO: result: OK" >&5
4879 $as_echo "OK" >&6; }
4880 eval `$vi_cv_path_perl -V:shrpenv`
4881 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4884 vi_cv_perllib
=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4886 perlcppflags
=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4887 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4888 perllibs
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4889 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4890 -e 's/-bE:perl.exp//' -e 's/-lc //'`
4891 perlldflags
=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4892 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4894 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
4895 $as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4898 ldflags_save
=$LDFLAGS
4899 CFLAGS
="$CFLAGS $perlcppflags"
4900 LIBS
="$LIBS $perllibs"
4901 LDFLAGS
="$perlldflags $LDFLAGS"
4902 cat >conftest.
$ac_ext <<_ACEOF
4905 cat confdefs.h
>>conftest.
$ac_ext
4906 cat >>conftest.
$ac_ext <<_ACEOF
4907 /* end confdefs.h. */
4917 rm -f conftest.
$ac_objext conftest
$ac_exeext
4918 if { (ac_try
="$ac_link"
4920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4924 $as_echo "$ac_try_echo") >&5
4925 (eval "$ac_link") 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && {
4932 test -z "$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 } && test -s conftest$ac_exeext && {
4935 test "$cross_compiling" = yes ||
4936 $as_test_x conftest$ac_exeext
4938 { $as_echo "$as_me:$LINENO: result: yes" >&5
4939 $as_echo "yes" >&6; }; perl_ok=yes
4941 $as_echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 { $as_echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4945 $as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4948 rm -rf conftest.dSYM
4949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4950 conftest$ac_exeext conftest.$ac_ext
4953 LDFLAGS=$ldflags_save
4954 if test $perl_ok = yes; then
4955 if test "X$perlcppflags" != "X"; then
4956 PERL_CFLAGS=`echo "$perlcppflags" |
sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4958 if test "X$perlldflags" != "X"; then
4959 LDFLAGS="$perlldflags $LDFLAGS"
4962 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4963 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4964 PERL_PRO="if_perl.pro if_perlsfio.pro"
4965 cat >>confdefs.h <<\_ACEOF
4972 { $as_echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4973 $as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4977 if test "x$MACOSX" = "xyes"; then
4978 dir=/System/Library/Perl
4979 darwindir=$dir/darwin
4980 if test -d $darwindir; then
4983 dir=/System/Library/Perl/5.8.1
4984 darwindir=$dir/darwin-thread-multi-2level
4985 if test -d $darwindir; then
4989 if test -n "$PERL"; then
4991 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4992 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4993 PERL_LIBS="-L$darwindir/CORE -lperl"
5004 { $as_echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
5005 $as_echo_n "checking --enable-pythoninterp argument... " >&6; }
5006 # Check whether --enable-pythoninterp was given.
5007 if test "${enable_pythoninterp+set}" = set; then
5008 enableval=$enable_pythoninterp;
5010 enable_pythoninterp="no"
5013 { $as_echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
5014 $as_echo "$enable_pythoninterp" >&6; }
5015 if test "$enable_pythoninterp" = "yes"; then
5016 # Extract the first word of "python", so it can be a program name with args.
5017 set dummy python; ac_word=$2
5018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
5021 $as_echo_n "(cached) " >&6
5023 case $vi_cv_path_python in
5025 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
5036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 vi_cv_path_python=$ac_cv_path_vi_cv_path_python
5047 if test -n "$vi_cv_path_python"; then
5048 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
5049 $as_echo "$vi_cv_path_python" >&6; }
5051 { $as_echo "$as_me:$LINENO: result: no" >&5
5052 $as_echo "no" >&6; }
5056 if test "X$vi_cv_path_python" != "X"; then
5058 { $as_echo "$as_me:$LINENO: checking Python version" >&5
5059 $as_echo_n "checking Python version... " >&6; }
5060 if test "${vi_cv_var_python_version+set}" = set; then
5061 $as_echo_n "(cached) " >&6
5063 vi_cv_var_python_version=`
5064 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
5067 { $as_echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
5068 $as_echo "$vi_cv_var_python_version" >&6; }
5070 { $as_echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
5071 $as_echo_n "checking Python is 1.4 or better... " >&6; }
5072 if ${vi_cv_path_python} -c \
5073 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5075 { $as_echo "$as_me:$LINENO: result: yep" >&5
5076 $as_echo "yep" >&6; }
5078 { $as_echo "$as_me:$LINENO: checking Python's install prefix" >&5
5079 $as_echo_n "checking Python's install prefix... " >&6; }
5080 if test "${vi_cv_path_python_pfx+set}" = set; then
5081 $as_echo_n "(cached) " >&6
5083 vi_cv_path_python_pfx=`
5084 ${vi_cv_path_python} -c \
5085 "import sys; print sys.prefix"`
5087 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
5088 $as_echo "$vi_cv_path_python_pfx" >&6; }
5090 { $as_echo "$as_me:$LINENO: checking Python's execution prefix" >&5
5091 $as_echo_n "checking Python's execution prefix... " >&6; }
5092 if test "${vi_cv_path_python_epfx+set}" = set; then
5093 $as_echo_n "(cached) " >&6
5095 vi_cv_path_python_epfx=`
5096 ${vi_cv_path_python} -c \
5097 "import sys; print sys.exec_prefix"`
5099 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
5100 $as_echo "$vi_cv_path_python_epfx" >&6; }
5103 if test "${vi_cv_path_pythonpath+set}" = set; then
5104 $as_echo_n "(cached) " >&6
5106 vi_cv_path_pythonpath=`
5108 ${vi_cv_path_python} -c \
5109 "import sys, string; print string.join(sys.path,':')"`
5115 # Check whether --with-python-config-dir was given.
5116 if test "${with_python_config_dir+set}" = set; then
5117 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}"
5121 { $as_echo "$as_me:$LINENO: checking Python's configuration directory" >&5
5122 $as_echo_n "checking Python's configuration directory... " >&6; }
5123 if test "${vi_cv_path_python_conf+set}" = set; then
5124 $as_echo_n "(cached) " >&6
5127 vi_cv_path_python_conf=
5128 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5129 for subdir in lib share; do
5130 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5131 if test -d "$d" && test -f "$d/config.c"; then
5132 vi_cv_path_python_conf="$d"
5138 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
5139 $as_echo "$vi_cv_path_python_conf" >&6; }
5141 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5143 if test "X$PYTHON_CONFDIR" = "X"; then
5144 { $as_echo "$as_me:$LINENO: result: can't find it!" >&5
5145 $as_echo "can't find it!" >&6; }
5148 if test "${vi_cv_path_python_plibs+set}" = set; then
5149 $as_echo_n "(cached) " >&6
5153 tmp_mkf="$pwd/config-PyMake$$"
5154 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5156 @echo "python_MODLIBS='$(MODLIBS)'"
5157 @echo "python_LIBS='$(LIBS)'"
5158 @echo "python_SYSLIBS='$(SYSLIBS)'"
5159 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5161 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ |
sed '/ directory /d'`"
5162 rm -f -- "${tmp_mkf}"
5163 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5164 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5165 vi_cv_path_python_plibs="-framework Python"
5167 if test "${vi_cv_var_python_version}" = "1.4"; then
5168 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5170 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5172 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5173 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs |
sed s
/-ltermcap//`
5179 PYTHON_LIBS="${vi_cv_path_python_plibs}"
5180 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5181 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5183 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}"
5185 PYTHON_SRC="if_python.c"
5186 if test "x$MACOSX" = "xyes"; then
5187 PYTHON_OBJ="objects/if_python.o"
5189 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5191 if test "${vi_cv_var_python_version}" = "1.4"; then
5192 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5194 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5196 { $as_echo "$as_me:$LINENO: checking if -pthread should be used" >&5
5197 $as_echo_n "checking if -pthread should be used... " >&6; }
5200 if test "`(uname
) 2>/dev
/null
`" != Darwin; then
5201 test "$GCC" = yes && threadsafe_flag="-pthread"
5202 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
5203 threadsafe_flag="-D_THREAD_SAFE"
5204 thread_lib="-pthread"
5208 if test -n "$threadsafe_flag"; then
5210 CFLAGS="$CFLAGS $threadsafe_flag"
5211 LIBS="$LIBS $thread_lib"
5212 cat >conftest.$ac_ext <<_ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (ac_try="$ac_link"
5230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5231 *) ac_try_echo
=$ac_try;;
5233 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5234 $as_echo "$ac_try_echo") >&5
5235 (eval "$ac_link") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1
>conftest.err
5239 cat conftest.err
>&5
5240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest
$ac_exeext && {
5245 test "$cross_compiling" = yes ||
5246 $as_test_x conftest
$ac_exeext
5248 { $as_echo "$as_me:$LINENO: result: yes" >&5
5249 $as_echo "yes" >&6; }; PYTHON_CFLAGS
="$PYTHON_CFLAGS $threadsafe_flag"
5251 $as_echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.
$ac_ext >&5
5254 { $as_echo "$as_me:$LINENO: result: no" >&5
5255 $as_echo "no" >&6; }; LIBS
=$libs_save_old
5259 rm -rf conftest.dSYM
5260 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5261 conftest
$ac_exeext conftest.
$ac_ext
5264 { $as_echo "$as_me:$LINENO: result: no" >&5
5265 $as_echo "no" >&6; }
5268 { $as_echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
5269 $as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5272 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
5273 LIBS
="$LIBS $PYTHON_LIBS"
5274 cat >conftest.
$ac_ext <<_ACEOF
5277 cat confdefs.h
>>conftest.
$ac_ext
5278 cat >>conftest.
$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5289 rm -f conftest.
$ac_objext conftest
$ac_exeext
5290 if { (ac_try
="$ac_link"
5292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5296 $as_echo "$ac_try_echo") >&5
5297 (eval "$ac_link") 2>conftest.er1
5299 grep -v '^ *+' conftest.er1 >conftest.err
5301 cat conftest.err >&5
5302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && {
5304 test -z "$ac_c_werror_flag" ||
5305 test ! -s conftest.err
5306 } && test -s conftest$ac_exeext && {
5307 test "$cross_compiling" = yes ||
5308 $as_test_x conftest$ac_exeext
5310 { $as_echo "$as_me:$LINENO: result: yes" >&5
5311 $as_echo "yes" >&6; }; python_ok=yes
5313 $as_echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.$ac_ext >&5
5316 { $as_echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
5317 $as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5320 rm -rf conftest.dSYM
5321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5322 conftest$ac_exeext conftest.$ac_ext
5325 if test $python_ok = yes; then
5326 cat >>confdefs.h <<\_ACEOF
5327 #define FEAT_PYTHON 1
5340 { $as_echo "$as_me:$LINENO: result: too old" >&5
5341 $as_echo "too old" >&6; }
5352 { $as_echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
5353 $as_echo_n "checking --enable-tclinterp argument... " >&6; }
5354 # Check whether --enable-tclinterp was given.
5355 if test "${enable_tclinterp+set}" = set; then
5356 enableval=$enable_tclinterp;
5358 enable_tclinterp="no"
5361 { $as_echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
5362 $as_echo "$enable_tclinterp" >&6; }
5364 if test "$enable_tclinterp" = "yes"; then
5366 { $as_echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
5367 $as_echo_n "checking --with-tclsh argument... " >&6; }
5369 # Check whether --with-tclsh was given.
5370 if test "${with_tclsh+set}" = set; then
5371 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:$LINENO: result: $tclsh_name" >&5
5372 $as_echo "$tclsh_name" >&6; }
5374 tclsh_name="tclsh8.5"; { $as_echo "$as_me:$LINENO: result: no" >&5
5375 $as_echo "no" >&6; }
5378 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5379 set dummy $tclsh_name; ac_word=$2
5380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5383 $as_echo_n "(cached) " >&6
5385 case $vi_cv_path_tcl in
5387 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5398 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5409 if test -n "$vi_cv_path_tcl"; then
5410 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5411 $as_echo "$vi_cv_path_tcl" >&6; }
5413 { $as_echo "$as_me:$LINENO: result: no" >&5
5414 $as_echo "no" >&6; }
5420 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5421 tclsh_name="tclsh8.4"
5422 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5423 set dummy $tclsh_name; ac_word=$2
5424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5427 $as_echo_n "(cached) " >&6
5429 case $vi_cv_path_tcl in
5431 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5453 if test -n "$vi_cv_path_tcl"; then
5454 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5455 $as_echo "$vi_cv_path_tcl" >&6; }
5457 { $as_echo "$as_me:$LINENO: result: no" >&5
5458 $as_echo "no" >&6; }
5463 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5464 tclsh_name="tclsh8.2"
5465 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5466 set dummy $tclsh_name; ac_word=$2
5467 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5470 $as_echo_n "(cached) " >&6
5472 case $vi_cv_path_tcl in
5474 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5496 if test -n "$vi_cv_path_tcl"; then
5497 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5498 $as_echo "$vi_cv_path_tcl" >&6; }
5500 { $as_echo "$as_me:$LINENO: result: no" >&5
5501 $as_echo "no" >&6; }
5506 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5507 tclsh_name="tclsh8.0"
5508 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5509 set dummy $tclsh_name; ac_word=$2
5510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5513 $as_echo_n "(cached) " >&6
5515 case $vi_cv_path_tcl in
5517 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5539 if test -n "$vi_cv_path_tcl"; then
5540 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5541 $as_echo "$vi_cv_path_tcl" >&6; }
5543 { $as_echo "$as_me:$LINENO: result: no" >&5
5544 $as_echo "no" >&6; }
5549 if test "X$vi_cv_path_tcl" = "X"; then
5551 # Extract the first word of "$tclsh_name", so it can be a program name with args.
5552 set dummy $tclsh_name; ac_word=$2
5553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5554 $as_echo_n "checking for $ac_word... " >&6; }
5555 if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
5556 $as_echo_n "(cached) " >&6
5558 case $vi_cv_path_tcl in
5560 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5582 if test -n "$vi_cv_path_tcl"; then
5583 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
5584 $as_echo "$vi_cv_path_tcl" >&6; }
5586 { $as_echo "$as_me:$LINENO: result: no" >&5
5587 $as_echo "no" >&6; }
5592 if test "X$vi_cv_path_tcl" != "X"; then
5593 { $as_echo "$as_me:$LINENO: checking Tcl version" >&5
5594 $as_echo_n "checking Tcl version... " >&6; }
5595 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5596 tclver=`echo 'puts [info tclversion]' |
$vi_cv_path_tcl -`
5597 { $as_echo "$as_me:$LINENO: result: $tclver - OK" >&5
5598 $as_echo "$tclver - OK" >&6; };
5599 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 -`
5601 { $as_echo "$as_me:$LINENO: checking for location of Tcl include" >&5
5602 $as_echo_n "checking for location of Tcl include... " >&6; }
5603 if test "x$MACOSX" != "xyes"; then
5604 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5606 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5609 for try in $tclinc; do
5610 if test -f "$try/tcl.h"; then
5611 { $as_echo "$as_me:$LINENO: result: $try/tcl.h" >&5
5612 $as_echo "$try/tcl.h" >&6; }
5617 if test -z "$TCL_INC"; then
5618 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5619 $as_echo "<not found>" >&6; }
5622 if test -z "$SKIP_TCL"; then
5623 { $as_echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
5624 $as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5625 if test "x$MACOSX" != "xyes"; then
5626 tclcnf=`echo $tclinc |
sed s
/include
/lib
/g
`
5627 tclcnf="$tclcnf `echo $tclinc |
sed s
/include
/lib64
/g
`"
5629 tclcnf="/System/Library/Frameworks/Tcl.framework"
5631 for try in $tclcnf; do
5632 if test -f $try/tclConfig.sh; then
5633 { $as_echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
5634 $as_echo "$try/tclConfig.sh" >&6; }
5636 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5637 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'`
5641 if test -z "$TCL_LIBS"; then
5642 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5643 $as_echo "<not found>" >&6; }
5644 { $as_echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
5645 $as_echo_n "checking for Tcl library by myself... " >&6; }
5646 tcllib=`echo $tclinc |
sed s
/include
/lib
/g
`
5647 tcllib="$tcllib `echo $tclinc |
sed s
/include
/lib64
/g
`"
5648 for ext in .so .a ; do
5649 for ver in "" $tclver ; do
5650 for try in $tcllib ; do
5652 if test -f $try/lib$trylib ; then
5653 { $as_echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
5654 $as_echo "$try/lib$trylib" >&6; }
5655 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5656 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
5657 uname -r | grep '^5' >/dev/null; then
5658 TCL_LIBS="$TCL_LIBS -R $try"
5665 if test -z "$TCL_LIBS"; then
5666 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
5667 $as_echo "<not found>" >&6; }
5671 if test -z "$SKIP_TCL"; then
5672 cat >>confdefs.h <<\_ACEOF
5677 TCL_OBJ=objects/if_tcl.o
5679 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5683 { $as_echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
5684 $as_echo "too old; need Tcl version 8.0 or later" >&6; }
5694 { $as_echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
5695 $as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5696 # Check whether --enable-rubyinterp was given.
5697 if test "${enable_rubyinterp+set}" = set; then
5698 enableval=$enable_rubyinterp;
5700 enable_rubyinterp="no"
5703 { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
5704 $as_echo "$enable_rubyinterp" >&6; }
5705 if test "$enable_rubyinterp" = "yes"; then
5707 # Extract the first word of "ruby", so it can be a program name with args.
5708 set dummy ruby; ac_word=$2
5709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
5712 $as_echo_n "(cached) " >&6
5714 case $vi_cv_path_ruby in
5716 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5738 if test -n "$vi_cv_path_ruby"; then
5739 { $as_echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
5740 $as_echo "$vi_cv_path_ruby" >&6; }
5742 { $as_echo "$as_me:$LINENO: result: no" >&5
5743 $as_echo "no" >&6; }
5747 if test "X$vi_cv_path_ruby" != "X"; then
5748 { $as_echo "$as_me:$LINENO: checking Ruby version" >&5
5749 $as_echo_n "checking Ruby version... " >&6; }
5750 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5751 { $as_echo "$as_me:$LINENO: result: OK" >&5
5752 $as_echo "OK" >&6; }
5753 { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
5754 $as_echo_n "checking Ruby header files... " >&6; }
5755 rubyhdrdir=`$vi_cv_path_ruby -r mkmf
-e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev
/null
`
5756 if test "X$rubyhdrdir" != "X"; then
5757 { $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
5758 $as_echo "$rubyhdrdir" >&6; }
5759 RUBY_CFLAGS="-I$rubyhdrdir"
5760 rubylibs=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LIBS"]'`
5761 if test "X$rubylibs" != "X"; then
5762 RUBY_LIBS="$rubylibs"
5764 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5765 if test -f "$rubyhdrdir/$librubyarg"; then
5766 librubyarg="$rubyhdrdir/$librubyarg"
5768 rubylibdir=`$vi_cv_path_ruby -r rbconfig
-e 'print Config.expand(Config::CONFIG["libdir"])'`
5769 if test -f "$rubylibdir/$librubyarg"; then
5770 librubyarg="$rubylibdir/$librubyarg"
5771 elif test "$librubyarg" = "libruby.a"; then
5774 librubyarg=`$vi_cv_path_ruby -r rbconfig
-e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5778 if test "X$librubyarg" != "X"; then
5779 RUBY_LIBS="$librubyarg $RUBY_LIBS"
5781 rubyldflags=`$vi_cv_path_ruby -r rbconfig
-e 'print Config::CONFIG["LDFLAGS"]'`
5782 if test "X$rubyldflags" != "X"; then
5783 rubyldflags=`echo "$rubyldflags" |
sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5784 if test "X$rubyldflags" != "X"; then
5785 LDFLAGS="$rubyldflags $LDFLAGS"
5788 RUBY_SRC="if_ruby.c"
5789 RUBY_OBJ="objects/if_ruby.o"
5790 RUBY_PRO="if_ruby.pro"
5791 cat >>confdefs.h <<\_ACEOF
5796 { $as_echo "$as_me:$LINENO: result: not found" >&5
5797 $as_echo "not found" >&6; }
5800 { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
5801 $as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5811 { $as_echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
5812 $as_echo_n "checking --enable-cscope argument... " >&6; }
5813 # Check whether --enable-cscope was given.
5814 if test "${enable_cscope+set}" = set; then
5815 enableval=$enable_cscope;
5820 { $as_echo "$as_me:$LINENO: result: $enable_cscope" >&5
5821 $as_echo "$enable_cscope" >&6; }
5822 if test "$enable_cscope" = "yes"; then
5823 cat >>confdefs.h <<\_ACEOF
5824 #define FEAT_CSCOPE 1
5829 { $as_echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
5830 $as_echo_n "checking --enable-workshop argument... " >&6; }
5831 # Check whether --enable-workshop was given.
5832 if test "${enable_workshop+set}" = set; then
5833 enableval=$enable_workshop;
5835 enable_workshop="no"
5838 { $as_echo "$as_me:$LINENO: result: $enable_workshop" >&5
5839 $as_echo "$enable_workshop" >&6; }
5840 if test "$enable_workshop" = "yes"; then
5841 cat >>confdefs.h <<\_ACEOF
5842 #define FEAT_SUN_WORKSHOP 1
5845 WORKSHOP_SRC="workshop.c integration.c"
5847 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5849 if test "${enable_gui-xxx}" = xxx; then
5854 { $as_echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
5855 $as_echo_n "checking --disable-netbeans argument... " >&6; }
5856 # Check whether --enable-netbeans was given.
5857 if test "${enable_netbeans+set}" = set; then
5858 enableval=$enable_netbeans;
5860 enable_netbeans="yes"
5863 if test "$enable_netbeans" = "yes"; then
5864 { $as_echo "$as_me:$LINENO: result: no" >&5
5865 $as_echo "no" >&6; }
5867 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5868 $as_echo_n "checking for socket in -lsocket... " >&6; }
5869 if test "${ac_cv_lib_socket_socket+set}" = set; then
5870 $as_echo_n "(cached) " >&6
5872 ac_check_lib_save_LIBS=$LIBS
5873 LIBS="-lsocket $LIBS"
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5881 /* Override any GCC internal prototype to avoid an error.
5882 Use char because int might match the return type of a GCC
5883 builtin and then its argument prototype would still apply. */
5896 rm -f conftest.$ac_objext conftest$ac_exeext
5897 if { (ac_try="$ac_link"
5899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5900 *) ac_try_echo
=$ac_try;;
5902 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5903 $as_echo "$ac_try_echo") >&5
5904 (eval "$ac_link") 2>conftest.er1
5906 grep -v '^ *+' conftest.er1
>conftest.err
5908 cat conftest.err
>&5
5909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } && {
5911 test -z "$ac_c_werror_flag" ||
5912 test ! -s conftest.err
5913 } && test -s conftest
$ac_exeext && {
5914 test "$cross_compiling" = yes ||
5915 $as_test_x conftest
$ac_exeext
5917 ac_cv_lib_socket_socket
=yes
5919 $as_echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.
$ac_ext >&5
5922 ac_cv_lib_socket_socket
=no
5925 rm -rf conftest.dSYM
5926 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5927 conftest
$ac_exeext conftest.
$ac_ext
5928 LIBS
=$ac_check_lib_save_LIBS
5930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5931 $as_echo "$ac_cv_lib_socket_socket" >&6; }
5932 if test "x$ac_cv_lib_socket_socket" = x
""yes; then
5933 cat >>confdefs.h
<<_ACEOF
5934 #define HAVE_LIBSOCKET 1
5937 LIBS
="-lsocket $LIBS"
5942 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5943 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5944 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5945 $as_echo_n "(cached) " >&6
5947 ac_check_lib_save_LIBS
=$LIBS
5949 cat >conftest.
$ac_ext <<_ACEOF
5952 cat confdefs.h
>>conftest.
$ac_ext
5953 cat >>conftest.
$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5956 /* Override any GCC internal prototype to avoid an error.
5957 Use char because int might match the return type of a GCC
5958 builtin and then its argument prototype would still apply. */
5962 char gethostbyname ();
5966 return gethostbyname ();
5971 rm -f conftest.
$ac_objext conftest
$ac_exeext
5972 if { (ac_try
="$ac_link"
5974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5978 $as_echo "$ac_try_echo") >&5
5979 (eval "$ac_link") 2>conftest.er1
5981 grep -v '^ *+' conftest.er1 >conftest.err
5983 cat conftest.err >&5
5984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && {
5986 test -z "$ac_c_werror_flag" ||
5987 test ! -s conftest.err
5988 } && test -s conftest$ac_exeext && {
5989 test "$cross_compiling" = yes ||
5990 $as_test_x conftest$ac_exeext
5992 ac_cv_lib_nsl_gethostbyname=yes
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 ac_cv_lib_nsl_gethostbyname=no
6000 rm -rf conftest.dSYM
6001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6002 conftest$ac_exeext conftest.$ac_ext
6003 LIBS=$ac_check_lib_save_LIBS
6005 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6006 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6007 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6008 cat >>confdefs.h <<_ACEOF
6009 #define HAVE_LIBNSL 1
6016 { $as_echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
6017 $as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
6018 cat >conftest.$ac_ext <<_ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6030 #include <netinet/in.h>
6032 #include <sys/types.h>
6033 #include <sys/socket.h>
6034 /* Check bitfields */
6036 unsigned int initDone:1;
6044 /* Check creating a socket. */
6045 struct sockaddr_in server;
6046 (void)socket(AF_INET, SOCK_STREAM, 0);
6048 (void)gethostbyname("microsoft.com");
6049 if (errno == ECONNREFUSED)
6050 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (ac_try="$ac_link"
6059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6060 *) ac_try_echo
=$ac_try;;
6062 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6063 $as_echo "$ac_try_echo") >&5
6064 (eval "$ac_link") 2>conftest.er1
6066 grep -v '^ *+' conftest.er1
>conftest.err
6068 cat conftest.err
>&5
6069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } && {
6071 test -z "$ac_c_werror_flag" ||
6072 test ! -s conftest.err
6073 } && test -s conftest
$ac_exeext && {
6074 test "$cross_compiling" = yes ||
6075 $as_test_x conftest
$ac_exeext
6077 { $as_echo "$as_me:$LINENO: result: yes" >&5
6078 $as_echo "yes" >&6; }
6080 $as_echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.
$ac_ext >&5
6083 { $as_echo "$as_me:$LINENO: result: no" >&5
6084 $as_echo "no" >&6; }; enable_netbeans
="no"
6087 rm -rf conftest.dSYM
6088 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6089 conftest
$ac_exeext conftest.
$ac_ext
6091 { $as_echo "$as_me:$LINENO: result: yes" >&5
6092 $as_echo "yes" >&6; }
6094 if test "$enable_netbeans" = "yes"; then
6095 cat >>confdefs.h
<<\_ACEOF
6096 #define FEAT_NETBEANS_INTG 1
6099 NETBEANS_SRC
="netbeans.c"
6101 NETBEANS_OBJ
="objects/netbeans.o"
6105 { $as_echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
6106 $as_echo_n "checking --enable-sniff argument... " >&6; }
6107 # Check whether --enable-sniff was given.
6108 if test "${enable_sniff+set}" = set; then
6109 enableval
=$enable_sniff;
6114 { $as_echo "$as_me:$LINENO: result: $enable_sniff" >&5
6115 $as_echo "$enable_sniff" >&6; }
6116 if test "$enable_sniff" = "yes"; then
6117 cat >>confdefs.h
<<\_ACEOF
6118 #define FEAT_SNIFF 1
6121 SNIFF_SRC
="if_sniff.c"
6123 SNIFF_OBJ
="objects/if_sniff.o"
6127 { $as_echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
6128 $as_echo_n "checking --enable-multibyte argument... " >&6; }
6129 # Check whether --enable-multibyte was given.
6130 if test "${enable_multibyte+set}" = set; then
6131 enableval
=$enable_multibyte;
6133 enable_multibyte
="no"
6136 { $as_echo "$as_me:$LINENO: result: $enable_multibyte" >&5
6137 $as_echo "$enable_multibyte" >&6; }
6138 if test "$enable_multibyte" = "yes"; then
6139 cat >>confdefs.h
<<\_ACEOF
6140 #define FEAT_MBYTE 1
6145 { $as_echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
6146 $as_echo_n "checking --enable-hangulinput argument... " >&6; }
6147 # Check whether --enable-hangulinput was given.
6148 if test "${enable_hangulinput+set}" = set; then
6149 enableval
=$enable_hangulinput;
6151 enable_hangulinput
="no"
6154 { $as_echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
6155 $as_echo "$enable_hangulinput" >&6; }
6157 { $as_echo "$as_me:$LINENO: checking --enable-xim argument" >&5
6158 $as_echo_n "checking --enable-xim argument... " >&6; }
6159 # Check whether --enable-xim was given.
6160 if test "${enable_xim+set}" = set; then
6161 enableval
=$enable_xim; { $as_echo "$as_me:$LINENO: result: $enable_xim" >&5
6162 $as_echo "$enable_xim" >&6; }
6164 enable_xim
="auto"; { $as_echo "$as_me:$LINENO: result: defaulting to auto" >&5
6165 $as_echo "defaulting to auto" >&6; }
6169 { $as_echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
6170 $as_echo_n "checking --enable-fontset argument... " >&6; }
6171 # Check whether --enable-fontset was given.
6172 if test "${enable_fontset+set}" = set; then
6173 enableval
=$enable_fontset;
6178 { $as_echo "$as_me:$LINENO: result: $enable_fontset" >&5
6179 $as_echo "$enable_fontset" >&6; }
6181 test -z "$with_x" && with_x
=yes
6182 test "${enable_gui-yes}" != no
-a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x
=yes
6183 if test "$with_x" = no
; then
6184 { $as_echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
6185 $as_echo "defaulting to: don't HAVE_X11" >&6; }
6188 # Extract the first word of "xmkmf", so it can be a program name with args.
6189 set dummy xmkmf
; ac_word
=$2
6190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if test "${ac_cv_path_xmkmfpath+set}" = set; then
6193 $as_echo_n "(cached) " >&6
6197 ac_cv_path_xmkmfpath
="$xmkmfpath" # Let the user override the test with a path.
6200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir
=.
6205 for ac_exec_ext
in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_path_xmkmfpath
="$as_dir/$ac_word$ac_exec_ext"
6208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 xmkmfpath
=$ac_cv_path_xmkmfpath
6219 if test -n "$xmkmfpath"; then
6220 { $as_echo "$as_me:$LINENO: result: $xmkmfpath" >&5
6221 $as_echo "$xmkmfpath" >&6; }
6223 { $as_echo "$as_me:$LINENO: result: no" >&5
6224 $as_echo "no" >&6; }
6229 { $as_echo "$as_me:$LINENO: checking for X" >&5
6230 $as_echo_n "checking for X... " >&6; }
6233 # Check whether --with-x was given.
6234 if test "${with_x+set}" = set; then
6238 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6239 if test "x$with_x" = xno
; then
6240 # The user explicitly disabled X.
6243 case $x_includes,$x_libraries in #(
6244 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
6245 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
6246 { (exit 1); exit 1; }; };; #(
6247 *,NONE | NONE
,*) if test "${ac_cv_have_x+set}" = set; then
6248 $as_echo_n "(cached) " >&6
6250 # One or both of the vars are not set, and there is no cached value.
6251 ac_x_includes
=no ac_x_libraries
=no
6252 rm -f -r conftest.dir
6253 if mkdir conftest.dir
; then
6255 cat >Imakefile
<<'_ACEOF'
6257 @echo incroot='${INCROOT}'
6259 @echo usrlibdir='${USRLIBDIR}'
6261 @echo libdir='${LIBDIR}'
6263 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6265 for ac_var
in incroot usrlibdir libdir
; do
6266 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6268 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6269 for ac_extension
in a so sl dylib la dll
; do
6270 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6271 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6272 ac_im_usrlibdir
=$ac_im_libdir; break
6275 # Screen out bogus values from the imake configuration. They are
6276 # bogus both because they are the default anyway, and because
6277 # using them would break gcc on systems where it needs fixed includes.
6278 case $ac_im_incroot in
6279 /usr
/include
) ac_x_includes
= ;;
6280 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6282 case $ac_im_usrlibdir in
6283 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
6284 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6288 rm -f -r conftest.dir
6291 # Standard set of common directories for X headers.
6292 # Check X11 before X11Rn because it is often a symlink to the current release.
6304 /usr/local/X11/include
6305 /usr/local/X11R6/include
6306 /usr/local/X11R5/include
6307 /usr/local/X11R4/include
6309 /usr/local/include/X11
6310 /usr/local/include/X11R6
6311 /usr/local/include/X11R5
6312 /usr/local/include/X11R4
6316 /usr/XFree86/include/X11
6320 /usr/unsupported/include
6322 /usr/local/x11r5/include
6323 /usr/lpp/Xamples/include
6325 /usr/openwin/include
6326 /usr/openwin/share/include'
6328 if test "$ac_x_includes" = no
; then
6329 # Guess where to find include files, by looking for Xlib.h.
6330 # First, try using that file with no special directory specified.
6331 cat >conftest.
$ac_ext <<_ACEOF
6334 cat confdefs.h
>>conftest.
$ac_ext
6335 cat >>conftest.
$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 #include <X11/Xlib.h>
6339 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6345 $as_echo "$ac_try_echo") >&5
6346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } >/dev/null && {
6353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6354 test ! -s conftest.err
6356 # We can compile using X headers with no special include directory.
6359 $as_echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 for ac_dir in $ac_x_header_dirs; do
6363 if test -r "$ac_dir/X11/Xlib.h"; then
6364 ac_x_includes=$ac_dir
6370 rm -f conftest.err conftest.$ac_ext
6371 fi # $ac_x_includes = no
6373 if test "$ac_x_libraries" = no; then
6374 # Check for the libraries.
6375 # See if we find them without any special options.
6376 # Don't add to $LIBS permanently.
6379 cat >conftest.$ac_ext <<_ACEOF
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6385 #include <X11/Xlib.h>
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6398 *) ac_try_echo
=$ac_try;;
6400 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6401 $as_echo "$ac_try_echo") >&5
6402 (eval "$ac_link") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1
>conftest.err
6406 cat conftest.err
>&5
6407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest
$ac_exeext && {
6412 test "$cross_compiling" = yes ||
6413 $as_test_x conftest
$ac_exeext
6416 # We can link X programs with no special library path.
6419 $as_echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.
$ac_ext >&5
6423 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6425 # Don't even attempt the hair of trying to link an X program!
6426 for ac_extension
in a so sl dylib la dll
; do
6427 if test -r "$ac_dir/libX11.$ac_extension"; then
6428 ac_x_libraries
=$ac_dir
6435 rm -rf conftest.dSYM
6436 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6437 conftest
$ac_exeext conftest.
$ac_ext
6438 fi # $ac_x_libraries = no
6440 case $ac_x_includes,$ac_x_libraries in #(
6442 # Didn't find X, or a directory has "'" in its name.
6443 ac_cv_have_x
="have_x=no";; #(
6445 # Record where we found X for the cache.
6446 ac_cv_have_x
="have_x=yes\
6447 ac_x_includes='$ac_x_includes'\
6448 ac_x_libraries='$ac_x_libraries'"
6454 eval "$ac_cv_have_x"
6457 if test "$have_x" != yes; then
6458 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
6459 $as_echo "$have_x" >&6; }
6462 # If each of the values was on the command line, it overrides each guess.
6463 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6464 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6465 # Update the cache value to reflect the command line values.
6466 ac_cv_have_x
="have_x=yes\
6467 ac_x_includes='$x_includes'\
6468 ac_x_libraries='$x_libraries'"
6469 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6470 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6473 if test "$no_x" = yes; then
6474 # Not all programs may use this symbol, but it does not hurt to define it.
6476 cat >>confdefs.h
<<\_ACEOF
6477 #define X_DISPLAY_MISSING 1
6480 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
6482 if test -n "$x_includes"; then
6483 X_CFLAGS
="$X_CFLAGS -I$x_includes"
6486 # It would also be nice to do this for all -L options, not just this one.
6487 if test -n "$x_libraries"; then
6488 X_LIBS
="$X_LIBS -L$x_libraries"
6489 # For Solaris; some versions of Sun CC require a space after -R and
6490 # others require no space. Words are not sufficient . . . .
6491 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6492 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6493 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
6494 ac_xsave_c_werror_flag
=$ac_c_werror_flag
6495 ac_c_werror_flag
=yes
6496 cat >conftest.
$ac_ext <<_ACEOF
6499 cat confdefs.h
>>conftest.
$ac_ext
6500 cat >>conftest.
$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6511 rm -f conftest.
$ac_objext conftest
$ac_exeext
6512 if { (ac_try
="$ac_link"
6514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6518 $as_echo "$ac_try_echo") >&5
6519 (eval "$ac_link") 2>conftest.er1
6521 grep -v '^ *+' conftest.er1 >conftest.err
6523 cat conftest.err >&5
6524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } && {
6526 test -z "$ac_c_werror_flag" ||
6527 test ! -s conftest.err
6528 } && test -s conftest$ac_exeext && {
6529 test "$cross_compiling" = yes ||
6530 $as_test_x conftest$ac_exeext
6532 { $as_echo "$as_me:$LINENO: result: no" >&5
6533 $as_echo "no" >&6; }
6534 X_LIBS="$X_LIBS -R$x_libraries"
6536 $as_echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 LIBS="$ac_xsave_LIBS -R $x_libraries"
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6555 rm -f conftest.$ac_objext conftest$ac_exeext
6556 if { (ac_try="$ac_link"
6558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6559 *) ac_try_echo
=$ac_try;;
6561 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6562 $as_echo "$ac_try_echo") >&5
6563 (eval "$ac_link") 2>conftest.er1
6565 grep -v '^ *+' conftest.er1
>conftest.err
6567 cat conftest.err
>&5
6568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest
$ac_exeext && {
6573 test "$cross_compiling" = yes ||
6574 $as_test_x conftest
$ac_exeext
6576 { $as_echo "$as_me:$LINENO: result: yes" >&5
6577 $as_echo "yes" >&6; }
6578 X_LIBS
="$X_LIBS -R $x_libraries"
6580 $as_echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.
$ac_ext >&5
6583 { $as_echo "$as_me:$LINENO: result: neither works" >&5
6584 $as_echo "neither works" >&6; }
6587 rm -rf conftest.dSYM
6588 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6589 conftest
$ac_exeext conftest.
$ac_ext
6592 rm -rf conftest.dSYM
6593 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6594 conftest
$ac_exeext conftest.
$ac_ext
6595 ac_c_werror_flag
=$ac_xsave_c_werror_flag
6599 # Check for system-dependent libraries X programs must link with.
6600 # Do this before checking for the system-independent R6 libraries
6601 # (-lICE), since we may need -lsocket or whatever for X linking.
6603 if test "$ISC" = yes; then
6604 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
6606 # Martyn Johnson says this is needed for Ultrix, if the X
6607 # libraries were built with DECnet support. And Karl Berry says
6608 # the Alpha needs dnet_stub (dnet does not exist).
6609 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
6610 cat >conftest.
$ac_ext <<_ACEOF
6613 cat confdefs.h
>>conftest.
$ac_ext
6614 cat >>conftest.
$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6617 /* Override any GCC internal prototype to avoid an error.
6618 Use char because int might match the return type of a GCC
6619 builtin and then its argument prototype would still apply. */
6623 char XOpenDisplay ();
6627 return XOpenDisplay ();
6632 rm -f conftest.
$ac_objext conftest
$ac_exeext
6633 if { (ac_try
="$ac_link"
6635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639 $as_echo "$ac_try_echo") >&5
6640 (eval "$ac_link") 2>conftest.er1
6642 grep -v '^ *+' conftest.er1 >conftest.err
6644 cat conftest.err >&5
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest$ac_exeext && {
6650 test "$cross_compiling" = yes ||
6651 $as_test_x conftest$ac_exeext
6655 $as_echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6659 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6660 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6661 $as_echo_n "(cached) " >&6
6663 ac_check_lib_save_LIBS=$LIBS
6665 cat >conftest.$ac_ext <<_ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6672 /* Override any GCC internal prototype to avoid an error.
6673 Use char because int might match the return type of a GCC
6674 builtin and then its argument prototype would still apply. */
6682 return dnet_ntoa ();
6687 rm -f conftest.$ac_objext conftest$ac_exeext
6688 if { (ac_try="$ac_link"
6690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6691 *) ac_try_echo
=$ac_try;;
6693 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6694 $as_echo "$ac_try_echo") >&5
6695 (eval "$ac_link") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1
>conftest.err
6699 cat conftest.err
>&5
6700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest
$ac_exeext && {
6705 test "$cross_compiling" = yes ||
6706 $as_test_x conftest
$ac_exeext
6708 ac_cv_lib_dnet_dnet_ntoa
=yes
6710 $as_echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.
$ac_ext >&5
6713 ac_cv_lib_dnet_dnet_ntoa
=no
6716 rm -rf conftest.dSYM
6717 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6718 conftest
$ac_exeext conftest.
$ac_ext
6719 LIBS
=$ac_check_lib_save_LIBS
6721 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6722 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6723 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x
""yes; then
6724 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
6727 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
6728 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6729 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6730 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6731 $as_echo_n "(cached) " >&6
6733 ac_check_lib_save_LIBS
=$LIBS
6734 LIBS
="-ldnet_stub $LIBS"
6735 cat >conftest.
$ac_ext <<_ACEOF
6738 cat confdefs.h
>>conftest.
$ac_ext
6739 cat >>conftest.
$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6742 /* Override any GCC internal prototype to avoid an error.
6743 Use char because int might match the return type of a GCC
6744 builtin and then its argument prototype would still apply. */
6752 return dnet_ntoa ();
6757 rm -f conftest.
$ac_objext conftest
$ac_exeext
6758 if { (ac_try
="$ac_link"
6760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6764 $as_echo "$ac_try_echo") >&5
6765 (eval "$ac_link") 2>conftest.er1
6767 grep -v '^ *+' conftest.er1 >conftest.err
6769 cat conftest.err >&5
6770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } && {
6772 test -z "$ac_c_werror_flag" ||
6773 test ! -s conftest.err
6774 } && test -s conftest$ac_exeext && {
6775 test "$cross_compiling" = yes ||
6776 $as_test_x conftest$ac_exeext
6778 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6780 $as_echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6783 ac_cv_lib_dnet_stub_dnet_ntoa=no
6786 rm -rf conftest.dSYM
6787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6788 conftest$ac_exeext conftest.$ac_ext
6789 LIBS=$ac_check_lib_save_LIBS
6791 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6792 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6793 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6794 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6800 rm -rf conftest.dSYM
6801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6802 conftest$ac_exeext conftest.$ac_ext
6803 LIBS="$ac_xsave_LIBS"
6805 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6806 # to get the SysV transport functions.
6807 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6809 # The nsl library prevents programs from opening the X display
6810 # on Irix 5.2, according to T.E. Dickey.
6811 # The functions gethostbyname, getservbyname, and inet_addr are
6812 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6813 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6814 $as_echo_n "checking for gethostbyname... " >&6; }
6815 if test "${ac_cv_func_gethostbyname+set}" = set; then
6816 $as_echo_n "(cached) " >&6
6818 cat >conftest.$ac_ext <<_ACEOF
6821 cat confdefs.h >>conftest.$ac_ext
6822 cat >>conftest.$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6824 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6826 #define gethostbyname innocuous_gethostbyname
6828 /* System header to define __stub macros and hopefully few prototypes,
6829 which can conflict with char gethostbyname (); below.
6830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6831 <limits.h> exists even on freestanding compilers. */
6834 # include <limits.h>
6836 # include <assert.h>
6839 #undef gethostbyname
6841 /* Override any GCC internal prototype to avoid an error.
6842 Use char because int might match the return type of a GCC
6843 builtin and then its argument prototype would still apply. */
6847 char gethostbyname ();
6848 /* The GNU C library defines this for functions which it implements
6849 to always fail with ENOSYS. Some functions are actually named
6850 something starting with __ and the normal name is an alias. */
6851 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6858 return gethostbyname ();
6863 rm -f conftest.$ac_objext conftest$ac_exeext
6864 if { (ac_try="$ac_link"
6866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6867 *) ac_try_echo
=$ac_try;;
6869 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6870 $as_echo "$ac_try_echo") >&5
6871 (eval "$ac_link") 2>conftest.er1
6873 grep -v '^ *+' conftest.er1
>conftest.err
6875 cat conftest.err
>&5
6876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } && {
6878 test -z "$ac_c_werror_flag" ||
6879 test ! -s conftest.err
6880 } && test -s conftest
$ac_exeext && {
6881 test "$cross_compiling" = yes ||
6882 $as_test_x conftest
$ac_exeext
6884 ac_cv_func_gethostbyname
=yes
6886 $as_echo "$as_me: failed program was:" >&5
6887 sed 's/^/| /' conftest.
$ac_ext >&5
6889 ac_cv_func_gethostbyname
=no
6892 rm -rf conftest.dSYM
6893 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6894 conftest
$ac_exeext conftest.
$ac_ext
6896 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6897 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6899 if test $ac_cv_func_gethostbyname = no
; then
6900 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6901 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6902 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6903 $as_echo_n "(cached) " >&6
6905 ac_check_lib_save_LIBS
=$LIBS
6907 cat >conftest.
$ac_ext <<_ACEOF
6910 cat confdefs.h
>>conftest.
$ac_ext
6911 cat >>conftest.
$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6914 /* Override any GCC internal prototype to avoid an error.
6915 Use char because int might match the return type of a GCC
6916 builtin and then its argument prototype would still apply. */
6920 char gethostbyname ();
6924 return gethostbyname ();
6929 rm -f conftest.
$ac_objext conftest
$ac_exeext
6930 if { (ac_try
="$ac_link"
6932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6936 $as_echo "$ac_try_echo") >&5
6937 (eval "$ac_link") 2>conftest.er1
6939 grep -v '^ *+' conftest.er1 >conftest.err
6941 cat conftest.err >&5
6942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && {
6944 test -z "$ac_c_werror_flag" ||
6945 test ! -s conftest.err
6946 } && test -s conftest$ac_exeext && {
6947 test "$cross_compiling" = yes ||
6948 $as_test_x conftest$ac_exeext
6950 ac_cv_lib_nsl_gethostbyname=yes
6952 $as_echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6955 ac_cv_lib_nsl_gethostbyname=no
6958 rm -rf conftest.dSYM
6959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6960 conftest$ac_exeext conftest.$ac_ext
6961 LIBS=$ac_check_lib_save_LIBS
6963 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6964 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6965 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6966 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6969 if test $ac_cv_lib_nsl_gethostbyname = no; then
6970 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6971 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6972 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6973 $as_echo_n "(cached) " >&6
6975 ac_check_lib_save_LIBS=$LIBS
6977 cat >conftest.$ac_ext <<_ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6984 /* Override any GCC internal prototype to avoid an error.
6985 Use char because int might match the return type of a GCC
6986 builtin and then its argument prototype would still apply. */
6990 char gethostbyname ();
6994 return gethostbyname ();
6999 rm -f conftest.$ac_objext conftest$ac_exeext
7000 if { (ac_try="$ac_link"
7002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7003 *) ac_try_echo
=$ac_try;;
7005 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7006 $as_echo "$ac_try_echo") >&5
7007 (eval "$ac_link") 2>conftest.er1
7009 grep -v '^ *+' conftest.er1
>conftest.err
7011 cat conftest.err
>&5
7012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest
$ac_exeext && {
7017 test "$cross_compiling" = yes ||
7018 $as_test_x conftest
$ac_exeext
7020 ac_cv_lib_bsd_gethostbyname
=yes
7022 $as_echo "$as_me: failed program was:" >&5
7023 sed 's/^/| /' conftest.
$ac_ext >&5
7025 ac_cv_lib_bsd_gethostbyname
=no
7028 rm -rf conftest.dSYM
7029 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7030 conftest
$ac_exeext conftest.
$ac_ext
7031 LIBS
=$ac_check_lib_save_LIBS
7033 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7034 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7035 if test "x$ac_cv_lib_bsd_gethostbyname" = x
""yes; then
7036 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
7042 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7043 # socket/setsockopt and other routines are undefined under SCO ODT
7044 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7045 # on later versions), says Simon Leinen: it contains gethostby*
7046 # variants that don't use the name server (or something). -lsocket
7047 # must be given before -lnsl if both are needed. We assume that
7048 # if connect needs -lnsl, so does gethostbyname.
7049 { $as_echo "$as_me:$LINENO: checking for connect" >&5
7050 $as_echo_n "checking for connect... " >&6; }
7051 if test "${ac_cv_func_connect+set}" = set; then
7052 $as_echo_n "(cached) " >&6
7054 cat >conftest.
$ac_ext <<_ACEOF
7057 cat confdefs.h
>>conftest.
$ac_ext
7058 cat >>conftest.
$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7062 #define connect innocuous_connect
7064 /* System header to define __stub macros and hopefully few prototypes,
7065 which can conflict with char connect (); below.
7066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067 <limits.h> exists even on freestanding compilers. */
7070 # include <limits.h>
7072 # include <assert.h>
7077 /* Override any GCC internal prototype to avoid an error.
7078 Use char because int might match the return type of a GCC
7079 builtin and then its argument prototype would still apply. */
7084 /* The GNU C library defines this for functions which it implements
7085 to always fail with ENOSYS. Some functions are actually named
7086 something starting with __ and the normal name is an alias. */
7087 #if defined __stub_connect || defined __stub___connect
7099 rm -f conftest.
$ac_objext conftest
$ac_exeext
7100 if { (ac_try
="$ac_link"
7102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107 (eval "$ac_link") 2>conftest.er1
7109 grep -v '^ *+' conftest.er1 >conftest.err
7111 cat conftest.err >&5
7112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); } && {
7114 test -z "$ac_c_werror_flag" ||
7115 test ! -s conftest.err
7116 } && test -s conftest$ac_exeext && {
7117 test "$cross_compiling" = yes ||
7118 $as_test_x conftest$ac_exeext
7120 ac_cv_func_connect=yes
7122 $as_echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7125 ac_cv_func_connect=no
7128 rm -rf conftest.dSYM
7129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7130 conftest$ac_exeext conftest.$ac_ext
7132 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7133 $as_echo "$ac_cv_func_connect" >&6; }
7135 if test $ac_cv_func_connect = no; then
7136 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7137 $as_echo_n "checking for connect in -lsocket... " >&6; }
7138 if test "${ac_cv_lib_socket_connect+set}" = set; then
7139 $as_echo_n "(cached) " >&6
7141 ac_check_lib_save_LIBS=$LIBS
7142 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7143 cat >conftest.$ac_ext <<_ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7150 /* Override any GCC internal prototype to avoid an error.
7151 Use char because int might match the return type of a GCC
7152 builtin and then its argument prototype would still apply. */
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (ac_try="$ac_link"
7168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7169 *) ac_try_echo
=$ac_try;;
7171 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7172 $as_echo "$ac_try_echo") >&5
7173 (eval "$ac_link") 2>conftest.er1
7175 grep -v '^ *+' conftest.er1
>conftest.err
7177 cat conftest.err
>&5
7178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest
$ac_exeext && {
7183 test "$cross_compiling" = yes ||
7184 $as_test_x conftest
$ac_exeext
7186 ac_cv_lib_socket_connect
=yes
7188 $as_echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.
$ac_ext >&5
7191 ac_cv_lib_socket_connect
=no
7194 rm -rf conftest.dSYM
7195 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7196 conftest
$ac_exeext conftest.
$ac_ext
7197 LIBS
=$ac_check_lib_save_LIBS
7199 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7200 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7201 if test "x$ac_cv_lib_socket_connect" = x
""yes; then
7202 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
7207 # Guillermo Gomez says -lposix is necessary on A/UX.
7208 { $as_echo "$as_me:$LINENO: checking for remove" >&5
7209 $as_echo_n "checking for remove... " >&6; }
7210 if test "${ac_cv_func_remove+set}" = set; then
7211 $as_echo_n "(cached) " >&6
7213 cat >conftest.
$ac_ext <<_ACEOF
7216 cat confdefs.h
>>conftest.
$ac_ext
7217 cat >>conftest.
$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7221 #define remove innocuous_remove
7223 /* System header to define __stub macros and hopefully few prototypes,
7224 which can conflict with char remove (); below.
7225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7226 <limits.h> exists even on freestanding compilers. */
7229 # include <limits.h>
7231 # include <assert.h>
7236 /* Override any GCC internal prototype to avoid an error.
7237 Use char because int might match the return type of a GCC
7238 builtin and then its argument prototype would still apply. */
7243 /* The GNU C library defines this for functions which it implements
7244 to always fail with ENOSYS. Some functions are actually named
7245 something starting with __ and the normal name is an alias. */
7246 #if defined __stub_remove || defined __stub___remove
7258 rm -f conftest.
$ac_objext conftest
$ac_exeext
7259 if { (ac_try
="$ac_link"
7261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7265 $as_echo "$ac_try_echo") >&5
7266 (eval "$ac_link") 2>conftest.er1
7268 grep -v '^ *+' conftest.er1 >conftest.err
7270 cat conftest.err >&5
7271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest$ac_exeext && {
7276 test "$cross_compiling" = yes ||
7277 $as_test_x conftest$ac_exeext
7279 ac_cv_func_remove=yes
7281 $as_echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 ac_cv_func_remove=no
7287 rm -rf conftest.dSYM
7288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7289 conftest$ac_exeext conftest.$ac_ext
7291 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7292 $as_echo "$ac_cv_func_remove" >&6; }
7294 if test $ac_cv_func_remove = no; then
7295 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7296 $as_echo_n "checking for remove in -lposix... " >&6; }
7297 if test "${ac_cv_lib_posix_remove+set}" = set; then
7298 $as_echo_n "(cached) " >&6
7300 ac_check_lib_save_LIBS=$LIBS
7301 LIBS="-lposix $LIBS"
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7309 /* Override any GCC internal prototype to avoid an error.
7310 Use char because int might match the return type of a GCC
7311 builtin and then its argument prototype would still apply. */
7324 rm -f conftest.$ac_objext conftest$ac_exeext
7325 if { (ac_try="$ac_link"
7327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7328 *) ac_try_echo
=$ac_try;;
7330 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7331 $as_echo "$ac_try_echo") >&5
7332 (eval "$ac_link") 2>conftest.er1
7334 grep -v '^ *+' conftest.er1
>conftest.err
7336 cat conftest.err
>&5
7337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest
$ac_exeext && {
7342 test "$cross_compiling" = yes ||
7343 $as_test_x conftest
$ac_exeext
7345 ac_cv_lib_posix_remove
=yes
7347 $as_echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.
$ac_ext >&5
7350 ac_cv_lib_posix_remove
=no
7353 rm -rf conftest.dSYM
7354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7355 conftest
$ac_exeext conftest.
$ac_ext
7356 LIBS
=$ac_check_lib_save_LIBS
7358 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7359 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7360 if test "x$ac_cv_lib_posix_remove" = x
""yes; then
7361 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
7366 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7367 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
7368 $as_echo_n "checking for shmat... " >&6; }
7369 if test "${ac_cv_func_shmat+set}" = set; then
7370 $as_echo_n "(cached) " >&6
7372 cat >conftest.
$ac_ext <<_ACEOF
7375 cat confdefs.h
>>conftest.
$ac_ext
7376 cat >>conftest.
$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7380 #define shmat innocuous_shmat
7382 /* System header to define __stub macros and hopefully few prototypes,
7383 which can conflict with char shmat (); below.
7384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7385 <limits.h> exists even on freestanding compilers. */
7388 # include <limits.h>
7390 # include <assert.h>
7395 /* Override any GCC internal prototype to avoid an error.
7396 Use char because int might match the return type of a GCC
7397 builtin and then its argument prototype would still apply. */
7402 /* The GNU C library defines this for functions which it implements
7403 to always fail with ENOSYS. Some functions are actually named
7404 something starting with __ and the normal name is an alias. */
7405 #if defined __stub_shmat || defined __stub___shmat
7417 rm -f conftest.
$ac_objext conftest
$ac_exeext
7418 if { (ac_try
="$ac_link"
7420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7424 $as_echo "$ac_try_echo") >&5
7425 (eval "$ac_link") 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest$ac_exeext && {
7435 test "$cross_compiling" = yes ||
7436 $as_test_x conftest$ac_exeext
7438 ac_cv_func_shmat=yes
7440 $as_echo "$as_me: failed program was:" >&5
7441 sed 's/^/| /' conftest.$ac_ext >&5
7446 rm -rf conftest.dSYM
7447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7448 conftest$ac_exeext conftest.$ac_ext
7450 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7451 $as_echo "$ac_cv_func_shmat" >&6; }
7453 if test $ac_cv_func_shmat = no; then
7454 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7455 $as_echo_n "checking for shmat in -lipc... " >&6; }
7456 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7457 $as_echo_n "(cached) " >&6
7459 ac_check_lib_save_LIBS=$LIBS
7461 cat >conftest.$ac_ext <<_ACEOF
7464 cat confdefs.h >>conftest.$ac_ext
7465 cat >>conftest.$ac_ext <<_ACEOF
7466 /* end confdefs.h. */
7468 /* Override any GCC internal prototype to avoid an error.
7469 Use char because int might match the return type of a GCC
7470 builtin and then its argument prototype would still apply. */
7483 rm -f conftest.$ac_objext conftest$ac_exeext
7484 if { (ac_try="$ac_link"
7486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7487 *) ac_try_echo
=$ac_try;;
7489 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7490 $as_echo "$ac_try_echo") >&5
7491 (eval "$ac_link") 2>conftest.er1
7493 grep -v '^ *+' conftest.er1
>conftest.err
7495 cat conftest.err
>&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest
$ac_exeext && {
7501 test "$cross_compiling" = yes ||
7502 $as_test_x conftest
$ac_exeext
7504 ac_cv_lib_ipc_shmat
=yes
7506 $as_echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.
$ac_ext >&5
7509 ac_cv_lib_ipc_shmat
=no
7512 rm -rf conftest.dSYM
7513 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7514 conftest
$ac_exeext conftest.
$ac_ext
7515 LIBS
=$ac_check_lib_save_LIBS
7517 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7518 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7519 if test "x$ac_cv_lib_ipc_shmat" = x
""yes; then
7520 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
7526 # Check for libraries that X11R6 Xt/Xaw programs need.
7527 ac_save_LDFLAGS
=$LDFLAGS
7528 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
7529 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7530 # check for ICE first), but we must link in the order -lSM -lICE or
7531 # we get undefined symbols. So assume we have SM if we have ICE.
7532 # These have to be linked with before -lX11, unlike the other
7533 # libraries we check for below, so use a different variable.
7534 # John Interrante, Karl Berry
7535 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7536 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7537 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7538 $as_echo_n "(cached) " >&6
7540 ac_check_lib_save_LIBS
=$LIBS
7541 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
7542 cat >conftest.
$ac_ext <<_ACEOF
7545 cat confdefs.h
>>conftest.
$ac_ext
7546 cat >>conftest.
$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7549 /* Override any GCC internal prototype to avoid an error.
7550 Use char because int might match the return type of a GCC
7551 builtin and then its argument prototype would still apply. */
7555 char IceConnectionNumber ();
7559 return IceConnectionNumber ();
7564 rm -f conftest.
$ac_objext conftest
$ac_exeext
7565 if { (ac_try
="$ac_link"
7567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7571 $as_echo "$ac_try_echo") >&5
7572 (eval "$ac_link") 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } && {
7579 test -z "$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7581 } && test -s conftest$ac_exeext && {
7582 test "$cross_compiling" = yes ||
7583 $as_test_x conftest$ac_exeext
7585 ac_cv_lib_ICE_IceConnectionNumber=yes
7587 $as_echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 ac_cv_lib_ICE_IceConnectionNumber=no
7593 rm -rf conftest.dSYM
7594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7595 conftest$ac_exeext conftest.$ac_ext
7596 LIBS=$ac_check_lib_save_LIBS
7598 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7599 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7600 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7601 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7604 LDFLAGS=$ac_save_LDFLAGS
7609 if test "$OS390Unix" = "yes"; then
7610 CFLAGS="$CFLAGS -W c,dll"
7611 LDFLAGS="$LDFLAGS -W l,dll"
7612 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
7616 if test -d "$x_includes" && test ! -d "$x_libraries"; then
7617 x_libraries=`echo "$x_includes" |
sed s
/include
/lib
/`
7618 { $as_echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
7619 $as_echo "Corrected X libraries to $x_libraries" >&6; }
7620 X_LIBS="$X_LIBS -L$x_libraries"
7621 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
7622 uname -r | grep '^5' >/dev/null; then
7623 X_LIBS="$X_LIBS -R $x_libraries"
7627 if test -d "$x_libraries" && test ! -d "$x_includes"; then
7628 x_includes=`echo "$x_libraries" |
sed s
/lib
/include
/`
7629 { $as_echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
7630 $as_echo "Corrected X includes to $x_includes" >&6; }
7631 X_CFLAGS="$X_CFLAGS -I$x_includes"
7634 X_CFLAGS="`echo $X_CFLAGS\ |
sed 's%-I/usr/include %%'`"
7635 X_LIBS="`echo $X_LIBS\ |
sed 's%-L/usr/lib %%'`"
7636 X_LIBS="`echo $X_LIBS\ |
sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
7639 { $as_echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
7640 $as_echo_n "checking if X11 header files can be found... " >&6; }
7642 CFLAGS="$CFLAGS $X_CFLAGS"
7643 cat >conftest.$ac_ext <<_ACEOF
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7649 #include <X11/Xlib.h>
7650 #include <X11/Intrinsic.h>
7659 rm -f conftest.$ac_objext
7660 if { (ac_try="$ac_compile"
7662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7663 *) ac_try_echo
=$ac_try;;
7665 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7666 $as_echo "$ac_try_echo") >&5
7667 (eval "$ac_compile") 2>conftest.er1
7669 grep -v '^ *+' conftest.er1
>conftest.err
7671 cat conftest.err
>&5
7672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); } && {
7674 test -z "$ac_c_werror_flag" ||
7675 test ! -s conftest.err
7676 } && test -s conftest.
$ac_objext; then
7677 { $as_echo "$as_me:$LINENO: result: yes" >&5
7678 $as_echo "yes" >&6; }
7680 $as_echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.
$ac_ext >&5
7683 { $as_echo "$as_me:$LINENO: result: no" >&5
7684 $as_echo "no" >&6; }; no_x
=yes
7687 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7690 if test "${no_x-no}" = yes; then
7693 cat >>confdefs.h
<<\_ACEOF
7700 ac_save_LDFLAGS
="$LDFLAGS"
7701 LDFLAGS
="-L$x_libraries $LDFLAGS"
7703 { $as_echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
7704 $as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
7705 if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
7706 $as_echo_n "(cached) " >&6
7708 ac_check_lib_save_LIBS
=$LIBS
7709 LIBS
="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
7710 cat >conftest.
$ac_ext <<_ACEOF
7713 cat confdefs.h
>>conftest.
$ac_ext
7714 cat >>conftest.
$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7717 /* Override any GCC internal prototype to avoid an error.
7718 Use char because int might match the return type of a GCC
7719 builtin and then its argument prototype would still apply. */
7723 char _XdmcpAuthDoIt ();
7727 return _XdmcpAuthDoIt ();
7732 rm -f conftest.
$ac_objext conftest
$ac_exeext
7733 if { (ac_try
="$ac_link"
7735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7739 $as_echo "$ac_try_echo") >&5
7740 (eval "$ac_link") 2>conftest.er1
7742 grep -v '^ *+' conftest.er1 >conftest.err
7744 cat conftest.err >&5
7745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && {
7747 test -z "$ac_c_werror_flag" ||
7748 test ! -s conftest.err
7749 } && test -s conftest$ac_exeext && {
7750 test "$cross_compiling" = yes ||
7751 $as_test_x conftest$ac_exeext
7753 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
7755 $as_echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7758 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
7761 rm -rf conftest.dSYM
7762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7763 conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7766 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
7767 $as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
7768 if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then
7769 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
7773 { $as_echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
7774 $as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
7775 if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
7776 $as_echo_n "(cached) " >&6
7778 ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7780 cat >conftest.$ac_ext <<_ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7787 /* Override any GCC internal prototype to avoid an error.
7788 Use char because int might match the return type of a GCC
7789 builtin and then its argument prototype would still apply. */
7793 char IceOpenConnection ();
7797 return IceOpenConnection ();
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (ac_try="$ac_link"
7805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7806 *) ac_try_echo
=$ac_try;;
7808 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7809 $as_echo "$ac_try_echo") >&5
7810 (eval "$ac_link") 2>conftest.er1
7812 grep -v '^ *+' conftest.er1
>conftest.err
7814 cat conftest.err
>&5
7815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest
$ac_exeext && {
7820 test "$cross_compiling" = yes ||
7821 $as_test_x conftest
$ac_exeext
7823 ac_cv_lib_ICE_IceOpenConnection
=yes
7825 $as_echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.
$ac_ext >&5
7828 ac_cv_lib_ICE_IceOpenConnection
=no
7831 rm -rf conftest.dSYM
7832 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7833 conftest
$ac_exeext conftest.
$ac_ext
7834 LIBS
=$ac_check_lib_save_LIBS
7836 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
7837 $as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
7838 if test "x$ac_cv_lib_ICE_IceOpenConnection" = x
""yes; then
7839 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lSM -lICE"
7843 LDFLAGS
="$X_LIBS $ac_save_LDFLAGS"
7844 { $as_echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
7845 $as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
7846 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
7847 $as_echo_n "(cached) " >&6
7849 ac_check_lib_save_LIBS
=$LIBS
7850 LIBS
="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
7851 cat >conftest.
$ac_ext <<_ACEOF
7854 cat confdefs.h
>>conftest.
$ac_ext
7855 cat >>conftest.
$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7858 /* Override any GCC internal prototype to avoid an error.
7859 Use char because int might match the return type of a GCC
7860 builtin and then its argument prototype would still apply. */
7864 char XpmCreatePixmapFromData ();
7868 return XpmCreatePixmapFromData ();
7873 rm -f conftest.
$ac_objext conftest
$ac_exeext
7874 if { (ac_try
="$ac_link"
7876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880 $as_echo "$ac_try_echo") >&5
7881 (eval "$ac_link") 2>conftest.er1
7883 grep -v '^ *+' conftest.er1 >conftest.err
7885 cat conftest.err >&5
7886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest$ac_exeext && {
7891 test "$cross_compiling" = yes ||
7892 $as_test_x conftest$ac_exeext
7894 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
7896 $as_echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7899 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
7902 rm -rf conftest.dSYM
7903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7904 conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7907 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
7908 $as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
7909 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then
7910 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
7914 { $as_echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
7915 $as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
7917 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 #include <X11/Xlib.h>
7933 rm -f conftest.$ac_objext
7934 if { (ac_try="$ac_compile"
7936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7937 *) ac_try_echo
=$ac_try;;
7939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7940 $as_echo "$ac_try_echo") >&5
7941 (eval "$ac_compile") 2>conftest.er1
7943 grep -v '^ *+' conftest.er1
>conftest.err
7945 cat conftest.err
>&5
7946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest.
$ac_objext; then
7951 { $as_echo "$as_me:$LINENO: result: no" >&5
7952 $as_echo "no" >&6; }
7954 $as_echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.
$ac_ext >&5
7957 CFLAGS
="$CFLAGS -Wno-implicit-int"
7958 cat >conftest.
$ac_ext <<_ACEOF
7961 cat confdefs.h
>>conftest.
$ac_ext
7962 cat >>conftest.
$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 #include <X11/Xlib.h>
7973 rm -f conftest.
$ac_objext
7974 if { (ac_try
="$ac_compile"
7976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7991 { $as_echo "$as_me:$LINENO: result: yes" >&5
7992 $as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
7994 $as_echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 { $as_echo "$as_me:$LINENO: result: test failed" >&5
7998 $as_echo "test failed" >&6; }
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009 LDFLAGS="$ac_save_LDFLAGS"
8011 { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
8012 $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
8013 if test "${ac_cv_small_wchar_t+set}" = set; then
8014 $as_echo_n "(cached) " >&6
8016 if test "$cross_compiling" = yes; then
8017 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
8018 $as_echo "$as_me: error: failed to compile test program" >&2;}
8019 { (exit 1); exit 1; }; }
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8028 #include <X11/Xlib.h>
8030 # include <stdlib.h>
8031 # include <stddef.h>
8035 if (sizeof(wchar_t) <= 2)
8040 rm -f conftest$ac_exeext
8041 if { (ac_try="$ac_link"
8043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8044 *) ac_try_echo
=$ac_try;;
8046 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8047 $as_echo "$ac_try_echo") >&5
8048 (eval "$ac_link") 2>&5
8050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8052 { (case "(($ac_try" in
8053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8057 $as_echo "$ac_try_echo") >&5
8058 (eval "$ac_try") 2>&5
8060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); }; }; then
8062 ac_cv_small_wchar_t="no"
8064 $as_echo "$as_me: program exited with status $ac_status" >&5
8065 $as_echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_cv_small_wchar_t="yes"
8071 rm -rf conftest.dSYM
8072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8078 { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
8079 $as_echo "$ac_cv_small_wchar_t" >&6; }
8080 if test "x$ac_cv_small_wchar_t" = "xyes" ; then
8081 cat >>confdefs.h <<\_ACEOF
8082 #define SMALL_WCHAR_T 1
8090 test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
8092 { $as_echo "$as_me:$LINENO: checking --enable-gui argument" >&5
8093 $as_echo_n "checking --enable-gui argument... " >&6; }
8094 # Check whether --enable-gui was given.
8095 if test "${enable_gui+set}" = set; then
8096 enableval=$enable_gui;
8102 enable_gui_canon=`echo "_$enable_gui" | \
8103 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
8115 if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
8117 case "$enable_gui_canon" in
8118 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8119 $as_echo "no GUI support" >&6; }
8121 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8122 $as_echo "yes - automatic GUI support" >&6; } ;;
8123 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8124 $as_echo "auto - automatic GUI support" >&6; } ;;
8125 photon) { $as_echo "$as_me:$LINENO: result: Photon GUI support" >&5
8126 $as_echo "Photon GUI support" >&6; } ;;
8127 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8128 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8132 elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
8134 case "$enable_gui_canon" in
8135 no) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8136 $as_echo "no GUI support" >&6; }
8138 yes|"") { $as_echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
8139 $as_echo "yes - automatic GUI support" >&6; } ;;
8140 auto) { $as_echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
8141 $as_echo "auto - automatic GUI support" >&6; } ;;
8142 carbon) { $as_echo "$as_me:$LINENO: result: Carbon GUI support" >&5
8143 $as_echo "Carbon GUI support" >&6; } ;;
8144 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8145 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
8151 case "$enable_gui_canon" in
8152 no|none) { $as_echo "$as_me:$LINENO: result: no GUI support" >&5
8153 $as_echo "no GUI support" >&6; } ;;
8154 yes|""|auto) { $as_echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
8155 $as_echo "yes/auto - automatic GUI support" >&6; }
8163 gtk) { $as_echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
8164 $as_echo "GTK+ 1.x GUI support" >&6; }
8166 gtk2) { $as_echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
8167 $as_echo "GTK+ 2.x GUI support" >&6; }
8170 gnome) { $as_echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
8171 $as_echo "GNOME 1.x GUI support" >&6; }
8174 gnome2) { $as_echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
8175 $as_echo "GNOME 2.x GUI support" >&6; }
8179 motif) { $as_echo "$as_me:$LINENO: result: Motif GUI support" >&5
8180 $as_echo "Motif GUI support" >&6; }
8182 athena) { $as_echo "$as_me:$LINENO: result: Athena GUI support" >&5
8183 $as_echo "Athena GUI support" >&6; }
8185 nextaw) { $as_echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
8186 $as_echo "neXtaw GUI support" >&6; }
8188 *) { $as_echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
8189 $as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
8194 if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
8195 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
8196 $as_echo_n "checking whether or not to look for GTK... " >&6; }
8197 # Check whether --enable-gtk-check was given.
8198 if test "${enable_gtk_check+set}" = set; then
8199 enableval=$enable_gtk_check;
8201 enable_gtk_check="yes"
8204 { $as_echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
8205 $as_echo "$enable_gtk_check" >&6; }
8206 if test "x$enable_gtk_check" = "xno"; then
8212 if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
8213 -a "$enable_gui_canon" != "gnome2"; then
8214 { $as_echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
8215 $as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
8216 # Check whether --enable-gtk2-check was given.
8217 if test "${enable_gtk2_check+set}" = set; then
8218 enableval=$enable_gtk2_check;
8220 enable_gtk2_check="yes"
8223 { $as_echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
8224 $as_echo "$enable_gtk2_check" >&6; }
8225 if test "x$enable_gtk2_check" = "xno"; then
8230 if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
8231 -a "$enable_gui_canon" != "gnome2"; then
8232 { $as_echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
8233 $as_echo_n "checking whether or not to look for GNOME... " >&6; }
8234 # Check whether --enable-gnome-check was given.
8235 if test "${enable_gnome_check+set}" = set; then
8236 enableval=$enable_gnome_check;
8238 enable_gnome_check="no"
8241 { $as_echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
8242 $as_echo "$enable_gnome_check" >&6; }
8243 if test "x$enable_gnome_check" = "xno"; then
8248 if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
8249 { $as_echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
8250 $as_echo_n "checking whether or not to look for Motif... " >&6; }
8251 # Check whether --enable-motif-check was given.
8252 if test "${enable_motif_check+set}" = set; then
8253 enableval=$enable_motif_check;
8255 enable_motif_check="yes"
8258 { $as_echo "$as_me:$LINENO: result: $enable_motif_check" >&5
8259 $as_echo "$enable_motif_check" >&6; }
8260 if test "x$enable_motif_check" = "xno"; then
8265 if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
8266 { $as_echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
8267 $as_echo_n "checking whether or not to look for Athena... " >&6; }
8268 # Check whether --enable-athena-check was given.
8269 if test "${enable_athena_check+set}" = set; then
8270 enableval=$enable_athena_check;
8272 enable_athena_check="yes"
8275 { $as_echo "$as_me:$LINENO: result: $enable_athena_check" >&5
8276 $as_echo "$enable_athena_check" >&6; }
8277 if test "x$enable_athena_check" = "xno"; then
8282 if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
8283 { $as_echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
8284 $as_echo_n "checking whether or not to look for neXtaw... " >&6; }
8285 # Check whether --enable-nextaw-check was given.
8286 if test "${enable_nextaw_check+set}" = set; then
8287 enableval=$enable_nextaw_check;
8289 enable_nextaw_check="yes"
8292 { $as_echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
8293 $as_echo "$enable_nextaw_check" >&6; };
8294 if test "x$enable_nextaw_check" = "xno"; then
8299 if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
8300 { $as_echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
8301 $as_echo_n "checking whether or not to look for Carbon... " >&6; }
8302 # Check whether --enable-carbon-check was given.
8303 if test "${enable_carbon_check+set}" = set; then
8304 enableval=$enable_carbon_check;
8306 enable_carbon_check="yes"
8309 { $as_echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
8310 $as_echo "$enable_carbon_check" >&6; };
8311 if test "x$enable_carbon_check" = "xno"; then
8317 if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
8318 { $as_echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8319 $as_echo_n "checking for Carbon GUI... " >&6; }
8320 { $as_echo "$as_me:$LINENO: result: yes" >&5
8321 $as_echo "yes" >&6; };
8323 if test "$VIMNAME" = "vim"; then
8327 if test x$prefix = xNONE; then
8328 prefix=/Applications
8331 datadir='${prefix}/Vim.app/Contents/Resources'
8351 if test -z "$SKIP_GTK"; then
8353 { $as_echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8354 $as_echo_n "checking --with-gtk-prefix argument... " >&6; }
8356 # Check whether --with-gtk-prefix was given.
8357 if test "${with_gtk_prefix+set}" = set; then
8358 withval=$with_gtk_prefix; gtk_config_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8359 $as_echo "$gtk_config_prefix" >&6; }
8361 gtk_config_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8362 $as_echo "no" >&6; }
8366 { $as_echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8367 $as_echo_n "checking --with-gtk-exec-prefix argument... " >&6; }
8369 # Check whether --with-gtk-exec-prefix was given.
8370 if test "${with_gtk_exec_prefix+set}" = set; then
8371 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"; { $as_echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8372 $as_echo "$gtk_config_prefix" >&6; }
8374 gtk_config_exec_prefix=""; { $as_echo "$as_me:$LINENO: result: no" >&5
8375 $as_echo "no" >&6; }
8379 { $as_echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8380 $as_echo_n "checking --disable-gtktest argument... " >&6; }
8381 # Check whether --enable-gtktest was given.
8382 if test "${enable_gtktest+set}" = set; then
8383 enableval=$enable_gtktest;
8388 if test "x$enable_gtktest" = "xyes" ; then
8389 { $as_echo "$as_me:$LINENO: result: gtk test enabled" >&5
8390 $as_echo "gtk test enabled" >&6; }
8392 { $as_echo "$as_me:$LINENO: result: gtk test disabled" >&5
8393 $as_echo "gtk test disabled" >&6; }
8396 if test "x$gtk_config_prefix" != "x" ; then
8397 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8398 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8400 if test "x$gtk_config_exec_prefix" != "x" ; then
8401 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8402 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8404 if test "X$GTK_CONFIG" = "X"; then
8405 # Extract the first word of "gtk-config", so it can be a program name with args.
8406 set dummy gtk-config; ac_word=$2
8407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8408 $as_echo_n "checking for $ac_word... " >&6; }
8409 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8410 $as_echo_n "(cached) " >&6
8414 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8436 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8437 if test -n "$GTK_CONFIG"; then
8438 { $as_echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8439 $as_echo "$GTK_CONFIG" >&6; }
8441 { $as_echo "$as_me:$LINENO: result: no" >&5
8442 $as_echo "no" >&6; }
8446 if test "X$GTK_CONFIG" = "Xno"; then
8447 # Extract the first word of "gtk12-config", so it can be a program name with args.
8448 set dummy gtk12-config; ac_word=$2
8449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8452 $as_echo_n "(cached) " >&6
8454 case $GTK12_CONFIG in
8456 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8478 GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8479 if test -n "$GTK12_CONFIG"; then
8480 { $as_echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8481 $as_echo "$GTK12_CONFIG" >&6; }
8483 { $as_echo "$as_me:$LINENO: result: no" >&5
8484 $as_echo "no" >&6; }
8488 GTK_CONFIG="$GTK12_CONFIG"
8491 { $as_echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8492 $as_echo "Using GTK configuration program $GTK_CONFIG" >&6; }
8494 if test "X$PKG_CONFIG" = "X"; then
8495 # Extract the first word of "pkg-config", so it can be a program name with args.
8496 set dummy pkg-config; ac_word=$2
8497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8498 $as_echo_n "checking for $ac_word... " >&6; }
8499 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8500 $as_echo_n "(cached) " >&6
8504 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 test -z "$as_dir" && as_dir=.
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8514 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8526 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8527 if test -n "$PKG_CONFIG"; then
8528 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8529 $as_echo "$PKG_CONFIG" >&6; }
8531 { $as_echo "$as_me:$LINENO: result: no" >&5
8532 $as_echo "no" >&6; }
8538 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8539 if test "X$SKIP_GTK2" != "XYES"; then
8541 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8543 min_gtk_version=2.2.0
8544 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8545 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8547 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8548 && $PKG_CONFIG --exists gtk+-2.0; then
8550 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8551 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8552 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8553 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8554 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8555 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8556 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8557 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8558 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8560 elif test "X$GTK_CONFIG" != "Xno"; then
8562 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8564 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8565 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8566 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8567 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8568 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8569 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8570 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8576 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8578 ac_save_CFLAGS="$CFLAGS"
8579 ac_save_LIBS="$LIBS"
8580 CFLAGS="$CFLAGS $GTK_CFLAGS"
8581 LIBS="$LIBS $GTK_LIBS"
8584 if test "$cross_compiling" = yes; then
8585 echo $ac_n "cross compiling; assumed OK... $ac_c"
8587 cat >conftest.$ac_ext <<_ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h. */
8594 #include <gtk/gtk.h>
8597 # include <stdlib.h>
8598 # include <stddef.h>
8604 int major, minor, micro;
8607 system ("touch conf.gtktest");
8609 /* HP/UX 9 (%@#!) writes to sscanf strings */
8610 tmp_version = g_strdup("$min_gtk_version");
8611 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8612 printf("%s, bad version string\n", "$min_gtk_version");
8616 if ((gtk_major_version > major) ||
8617 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8618 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8619 (gtk_micro_version >= micro)))
8627 rm -f conftest$ac_exeext
8628 if { (ac_try="$ac_link"
8630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8631 *) ac_try_echo
=$ac_try;;
8633 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8634 $as_echo "$ac_try_echo") >&5
8635 (eval "$ac_link") 2>&5
8637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8639 { (case "(($ac_try" in
8640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8644 $as_echo "$ac_try_echo") >&5
8645 (eval "$ac_try") 2>&5
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8651 $as_echo "$as_me: program exited with status $ac_status" >&5
8652 $as_echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8658 rm -rf conftest.dSYM
8659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8663 CFLAGS="$ac_save_CFLAGS"
8664 LIBS="$ac_save_LIBS"
8667 if test "x$no_gtk" = x ; then
8668 if test "x$enable_gtktest" = "xyes"; then
8669 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8670 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8672 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8673 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8675 GUI_LIB_LOC="$GTK_LIBDIR"
8676 GTK_LIBNAME="$GTK_LIBS"
8677 GUI_INC_LOC="$GTK_CFLAGS"
8680 { $as_echo "$as_me:$LINENO: result: no" >&5
8681 $as_echo "no" >&6; }
8697 if test "x$GTK_CFLAGS" != "x"; then
8706 if test "x$GUITYPE" != "xGTK"; then
8709 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8711 min_gtk_version=1.1.16
8712 { $as_echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8713 $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
8715 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8716 && $PKG_CONFIG --exists gtk+-2.0; then
8718 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk
+-2.0
`
8719 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk
+-2.0
`
8720 GTK_LIBS=`$PKG_CONFIG --libs gtk
+-2.0
`
8721 gtk_major_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8722 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8723 gtk_minor_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8724 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8725 gtk_micro_version=`$PKG_CONFIG --modversion gtk
+-2.0 | \
8726 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8728 elif test "X$GTK_CONFIG" != "Xno"; then
8730 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8732 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8733 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8734 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8735 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8736 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8737 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8738 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8744 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8746 ac_save_CFLAGS="$CFLAGS"
8747 ac_save_LIBS="$LIBS"
8748 CFLAGS="$CFLAGS $GTK_CFLAGS"
8749 LIBS="$LIBS $GTK_LIBS"
8752 if test "$cross_compiling" = yes; then
8753 echo $ac_n "cross compiling; assumed OK... $ac_c"
8755 cat >conftest.$ac_ext <<_ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8762 #include <gtk/gtk.h>
8765 # include <stdlib.h>
8766 # include <stddef.h>
8772 int major, minor, micro;
8775 system ("touch conf.gtktest");
8777 /* HP/UX 9 (%@#!) writes to sscanf strings */
8778 tmp_version = g_strdup("$min_gtk_version");
8779 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
8780 printf("%s, bad version string\n", "$min_gtk_version");
8784 if ((gtk_major_version > major) ||
8785 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8786 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8787 (gtk_micro_version >= micro)))
8795 rm -f conftest$ac_exeext
8796 if { (ac_try="$ac_link"
8798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8799 *) ac_try_echo
=$ac_try;;
8801 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8802 $as_echo "$ac_try_echo") >&5
8803 (eval "$ac_link") 2>&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8807 { (case "(($ac_try" in
8808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8809 *) ac_try_echo=$ac_try;;
8811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8812 $as_echo "$ac_try_echo") >&5
8813 (eval "$ac_try") 2>&5
8815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8819 $as_echo "$as_me: program exited with status $ac_status" >&5
8820 $as_echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8826 rm -rf conftest.dSYM
8827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8831 CFLAGS="$ac_save_CFLAGS"
8832 LIBS="$ac_save_LIBS"
8835 if test "x$no_gtk" = x ; then
8836 if test "x$enable_gtktest" = "xyes"; then
8837 { $as_echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8838 $as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8840 { $as_echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8841 $as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
8843 GTK_LIBNAME="$GTK_LIBS"
8844 GUI_INC_LOC="$GTK_CFLAGS"
8847 { $as_echo "$as_me:$LINENO: result: no" >&5
8848 $as_echo "no" >&6; }
8864 if test "x$GTK_CFLAGS" != "x"; then
8873 if test "x$GUITYPE" = "xGTK"; then
8874 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8875 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
8876 { $as_echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8877 $as_echo "this GTK version is old; version 1.2.3 or later is recommended" >&6; }
8880 if test "0$gtk_major_version" -ge 2; then
8881 cat >>confdefs.h <<\_ACEOF
8885 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8886 || test "0$gtk_minor_version" -ge 2 \
8887 || test "0$gtk_major_version" -gt 2; then
8888 cat >>confdefs.h <<\_ACEOF
8889 #define HAVE_GTK_MULTIHEAD 1
8894 if test -z "$SKIP_GNOME"; then
8902 # Check whether --with-gnome-includes was given.
8903 if test "${with_gnome_includes+set}" = set; then
8904 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
8910 # Check whether --with-gnome-libs was given.
8911 if test "${with_gnome_libs+set}" = set; then
8912 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
8918 # Check whether --with-gnome was given.
8919 if test "${with_gnome+set}" = set; then
8920 withval=$with_gnome; if test x$withval = xyes; then
8924 if test "x$withval" = xno; then
8928 LDFLAGS="$LDFLAGS -L$withval/lib"
8929 CFLAGS="$CFLAGS -I$withval/include"
8930 gnome_prefix=$withval/lib
8938 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8940 { $as_echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8941 $as_echo_n "checking for libgnomeui-2.0... " >&6; }
8942 if $PKG_CONFIG --exists libgnomeui-2.0; then
8943 { $as_echo "$as_me:$LINENO: result: yes" >&5
8944 $as_echo "yes" >&6; }
8945 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0
`
8946 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0
`
8947 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0
`
8949 { $as_echo "$as_me:$LINENO: checking for FreeBSD" >&5
8950 $as_echo_n "checking for FreeBSD... " >&6; }
8951 if test "`(uname
) 2>/dev
/null
`" = FreeBSD; then
8952 { $as_echo "$as_me:$LINENO: result: yes" >&5
8953 $as_echo "yes" >&6; }
8954 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
8955 GNOME_LIBS="$GNOME_LIBS -pthread"
8957 { $as_echo "$as_me:$LINENO: result: no" >&5
8958 $as_echo "no" >&6; }
8962 { $as_echo "$as_me:$LINENO: result: not found" >&5
8963 $as_echo "not found" >&6; }
8964 if test "x" = xfail; then
8965 { { $as_echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8966 $as_echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8967 { (exit 1); exit 1; }; }
8971 elif test "x$want_gnome" = xyes; then
8973 # Extract the first word of "gnome-config", so it can be a program name with args.
8974 set dummy gnome-config; ac_word=$2
8975 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8976 $as_echo_n "checking for $ac_word... " >&6; }
8977 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8978 $as_echo_n "(cached) " >&6
8980 case $GNOME_CONFIG in
8982 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8993 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
9004 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
9005 if test -n "$GNOME_CONFIG"; then
9006 { $as_echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
9007 $as_echo "$GNOME_CONFIG" >&6; }
9009 { $as_echo "$as_me:$LINENO: result: no" >&5
9010 $as_echo "no" >&6; }
9014 if test "$GNOME_CONFIG" = "no"; then
9015 no_gnome_config="yes"
9017 { $as_echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
9018 $as_echo_n "checking if $GNOME_CONFIG works... " >&6; }
9019 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
9020 { $as_echo "$as_me:$LINENO: result: yes" >&5
9021 $as_echo "yes" >&6; }
9022 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui
`"
9023 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui
`"
9024 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui
`"
9027 { $as_echo "$as_me:$LINENO: result: no" >&5
9028 $as_echo "no" >&6; }
9029 no_gnome_config="yes"
9033 if test x$exec_prefix = xNONE; then
9034 if test x$prefix = xNONE; then
9035 gnome_prefix=$ac_default_prefix/lib
9037 gnome_prefix=$prefix/lib
9040 gnome_prefix=`eval echo \
`echo $libdir\``
9043 if test "$no_gnome_config" = "yes"; then
9044 { $as_echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
9045 $as_echo_n "checking for gnomeConf.sh file in $gnome_prefix... " >&6; }
9046 if test -f $gnome_prefix/gnomeConf.sh; then
9047 { $as_echo "$as_me:$LINENO: result: found" >&5
9048 $as_echo "found" >&6; }
9049 echo "loading gnome configuration from" \
9050 "$gnome_prefix/gnomeConf.sh"
9051 . $gnome_prefix/gnomeConf.sh
9054 { $as_echo "$as_me:$LINENO: result: not found" >&5
9055 $as_echo "not found" >&6; }
9056 if test x = xfail; then
9057 { { $as_echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
9058 $as_echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
9059 { (exit 1); exit 1; }; }
9066 if test x$have_gnome = xyes ; then
9067 cat >>confdefs.h <<\_ACEOF
9068 #define FEAT_GUI_GNOME 1
9071 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
9072 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
9082 if test -z "$SKIP_MOTIF"; then
9083 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"
9084 GUI_INC_LOC="`echo $GUI_INC_LOC|
sed 's%-I%%g'`"
9086 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
9087 $as_echo_n "checking for location of Motif GUI includes... " >&6; }
9088 gui_includes="`echo $x_includes|
sed 's%/^/^/*$%%'` `echo "$gui_XXX" |
sed s
/XXX
/include
/g
` $GUI_INC_LOC"
9090 for try in $gui_includes; do
9091 if test -f "$try/Xm/Xm.h"; then
9095 if test -n "$GUI_INC_LOC"; then
9096 if test "$GUI_INC_LOC" = /usr/include; then
9098 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9099 $as_echo "in default path" >&6; }
9101 { $as_echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
9102 $as_echo "$GUI_INC_LOC" >&6; }
9105 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9106 $as_echo "<not found>" >&6; }
9112 if test -z "$SKIP_MOTIF"; then
9113 { $as_echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
9114 $as_echo_n "checking --with-motif-lib argument... " >&6; }
9116 # Check whether --with-motif-lib was given.
9117 if test "${with_motif_lib+set}" = set; then
9118 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}"
9122 if test -n "$MOTIF_LIBNAME"; then
9123 { $as_echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
9124 $as_echo "$MOTIF_LIBNAME" >&6; }
9127 { $as_echo "$as_me:$LINENO: result: no" >&5
9128 $as_echo "no" >&6; }
9130 GUI_LIB_LOC="`echo $GUI_LIB_LOC|
sed 's%-L%%g'`"
9132 { $as_echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
9133 $as_echo_n "checking for location of Motif GUI libs... " >&6; }
9134 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"
9136 for try in $gui_libs; do
9137 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
9138 if test -f "$libtry"; then
9143 if test -n "$GUI_LIB_LOC"; then
9144 if test "$GUI_LIB_LOC" = /usr/lib; then
9146 { $as_echo "$as_me:$LINENO: result: in default path" >&5
9147 $as_echo "in default path" >&6; }
9149 if test -n "$GUI_LIB_LOC"; then
9150 { $as_echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
9151 $as_echo "$GUI_LIB_LOC" >&6; }
9152 if test "`(uname
) 2>/dev
/null
`" = SunOS &&
9153 uname -r | grep '^5' >/dev/null; then
9154 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
9160 { $as_echo "$as_me:$LINENO: result: <not found>" >&5
9161 $as_echo "<not found>" >&6; }
9167 if test -z "$SKIP_MOTIF"; then
9177 if test -z "$SKIP_ATHENA"; then
9178 { $as_echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
9179 $as_echo_n "checking if Athena header files can be found... " >&6; }
9181 CFLAGS="$CFLAGS $X_CFLAGS"
9182 cat >conftest.$ac_ext <<_ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9189 #include <X11/Intrinsic.h>
9190 #include <X11/Xaw/Paned.h>
9199 rm -f conftest.$ac_objext
9200 if { (ac_try="$ac_compile"
9202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9203 *) ac_try_echo
=$ac_try;;
9205 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9206 $as_echo "$ac_try_echo") >&5
9207 (eval "$ac_compile") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1
>conftest.err
9211 cat conftest.err
>&5
9212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest.
$ac_objext; then
9217 { $as_echo "$as_me:$LINENO: result: yes" >&5
9218 $as_echo "yes" >&6; }
9220 $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.
$ac_ext >&5
9223 { $as_echo "$as_me:$LINENO: result: no" >&5
9224 $as_echo "no" >&6; }; SKIP_ATHENA
=YES
9227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9231 if test -z "$SKIP_ATHENA"; then
9235 if test -z "$SKIP_NEXTAW"; then
9236 { $as_echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
9237 $as_echo_n "checking if neXtaw header files can be found... " >&6; }
9239 CFLAGS
="$CFLAGS $X_CFLAGS"
9240 cat >conftest.
$ac_ext <<_ACEOF
9243 cat confdefs.h
>>conftest.
$ac_ext
9244 cat >>conftest.
$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9247 #include <X11/Intrinsic.h>
9248 #include <X11/neXtaw/Paned.h>
9257 rm -f conftest.
$ac_objext
9258 if { (ac_try
="$ac_compile"
9260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9264 $as_echo "$ac_try_echo") >&5
9265 (eval "$ac_compile") 2>conftest.er1
9267 grep -v '^ *+' conftest.er1 >conftest.err
9269 cat conftest.err >&5
9270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } && {
9272 test -z "$ac_c_werror_flag" ||
9273 test ! -s conftest.err
9274 } && test -s conftest.$ac_objext; then
9275 { $as_echo "$as_me:$LINENO: result: yes" >&5
9276 $as_echo "yes" >&6; }
9278 $as_echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 { $as_echo "$as_me:$LINENO: result: no" >&5
9282 $as_echo "no" >&6; }; SKIP_NEXTAW=YES
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9289 if test -z "$SKIP_NEXTAW"; then
9293 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9294 if test -n "$GUI_INC_LOC"; then
9295 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|
sed 's%-I%%'`"
9297 if test -n "$GUI_LIB_LOC"; then
9298 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|
sed 's%-L%%'`"
9301 ldflags_save=$LDFLAGS
9302 LDFLAGS="$X_LIBS $LDFLAGS"
9303 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9304 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9305 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9306 $as_echo_n "(cached) " >&6
9308 ac_check_lib_save_LIBS=$LIBS
9309 LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9317 /* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9323 char XShapeQueryExtension ();
9327 return XShapeQueryExtension ();
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (ac_try="$ac_link"
9335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9336 *) ac_try_echo
=$ac_try;;
9338 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9339 $as_echo "$ac_try_echo") >&5
9340 (eval "$ac_link") 2>conftest.er1
9342 grep -v '^ *+' conftest.er1
>conftest.err
9344 cat conftest.err
>&5
9345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest
$ac_exeext && {
9350 test "$cross_compiling" = yes ||
9351 $as_test_x conftest
$ac_exeext
9353 ac_cv_lib_Xext_XShapeQueryExtension
=yes
9355 $as_echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.
$ac_ext >&5
9358 ac_cv_lib_Xext_XShapeQueryExtension
=no
9361 rm -rf conftest.dSYM
9362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9363 conftest
$ac_exeext conftest.
$ac_ext
9364 LIBS
=$ac_check_lib_save_LIBS
9366 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9367 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9368 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x
""yes; then
9372 { $as_echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9373 $as_echo_n "checking for wslen in -lw... " >&6; }
9374 if test "${ac_cv_lib_w_wslen+set}" = set; then
9375 $as_echo_n "(cached) " >&6
9377 ac_check_lib_save_LIBS
=$LIBS
9378 LIBS
="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9379 cat >conftest.
$ac_ext <<_ACEOF
9382 cat confdefs.h
>>conftest.
$ac_ext
9383 cat >>conftest.
$ac_ext <<_ACEOF
9384 /* end confdefs.h. */
9386 /* Override any GCC internal prototype to avoid an error.
9387 Use char because int might match the return type of a GCC
9388 builtin and then its argument prototype would still apply. */
9401 rm -f conftest.
$ac_objext conftest
$ac_exeext
9402 if { (ac_try
="$ac_link"
9404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9408 $as_echo "$ac_try_echo") >&5
9409 (eval "$ac_link") 2>conftest.er1
9411 grep -v '^ *+' conftest.er1 >conftest.err
9413 cat conftest.err >&5
9414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && {
9416 test -z "$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 } && test -s conftest$ac_exeext && {
9419 test "$cross_compiling" = yes ||
9420 $as_test_x conftest$ac_exeext
9422 ac_cv_lib_w_wslen=yes
9424 $as_echo "$as_me: failed program was:" >&5
9425 sed 's/^/| /' conftest.$ac_ext >&5
9427 ac_cv_lib_w_wslen=no
9430 rm -rf conftest.dSYM
9431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9432 conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9435 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9436 $as_echo "$ac_cv_lib_w_wslen" >&6; }
9437 if test "x$ac_cv_lib_w_wslen" = x""yes; then
9438 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
9441 { $as_echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9442 $as_echo_n "checking for dlsym in -ldl... " >&6; }
9443 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9444 $as_echo_n "(cached) " >&6
9446 ac_check_lib_save_LIBS=$LIBS
9447 LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9448 cat >conftest.$ac_ext <<_ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h. */
9455 /* Override any GCC internal prototype to avoid an error.
9456 Use char because int might match the return type of a GCC
9457 builtin and then its argument prototype would still apply. */
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9474 *) ac_try_echo
=$ac_try;;
9476 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9477 $as_echo "$ac_try_echo") >&5
9478 (eval "$ac_link") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1
>conftest.err
9482 cat conftest.err
>&5
9483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest
$ac_exeext && {
9488 test "$cross_compiling" = yes ||
9489 $as_test_x conftest
$ac_exeext
9491 ac_cv_lib_dl_dlsym
=yes
9493 $as_echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.
$ac_ext >&5
9496 ac_cv_lib_dl_dlsym
=no
9499 rm -rf conftest.dSYM
9500 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9501 conftest
$ac_exeext conftest.
$ac_ext
9502 LIBS
=$ac_check_lib_save_LIBS
9504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9505 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9506 if test "x$ac_cv_lib_dl_dlsym" = x
""yes; then
9507 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldl"
9510 { $as_echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9511 $as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
9512 if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9513 $as_echo_n "(cached) " >&6
9515 ac_check_lib_save_LIBS
=$LIBS
9516 LIBS
="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9517 cat >conftest.
$ac_ext <<_ACEOF
9520 cat confdefs.h
>>conftest.
$ac_ext
9521 cat >>conftest.
$ac_ext <<_ACEOF
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9530 char XmuCreateStippledPixmap ();
9534 return XmuCreateStippledPixmap ();
9539 rm -f conftest.
$ac_objext conftest
$ac_exeext
9540 if { (ac_try
="$ac_link"
9542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9546 $as_echo "$ac_try_echo") >&5
9547 (eval "$ac_link") 2>conftest.er1
9549 grep -v '^ *+' conftest.er1 >conftest.err
9551 cat conftest.err >&5
9552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest$ac_exeext && {
9557 test "$cross_compiling" = yes ||
9558 $as_test_x conftest$ac_exeext
9560 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
9562 $as_echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
9568 rm -rf conftest.dSYM
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9571 LIBS=$ac_check_lib_save_LIBS
9573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9574 $as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
9575 if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then
9576 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
9579 if test -z "$SKIP_MOTIF"; then
9580 { $as_echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9581 $as_echo_n "checking for XpEndJob in -lXp... " >&6; }
9582 if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9583 $as_echo_n "(cached) " >&6
9585 ac_check_lib_save_LIBS=$LIBS
9586 LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9587 cat >conftest.$ac_ext <<_ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9594 /* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9613 *) ac_try_echo
=$ac_try;;
9615 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9616 $as_echo "$ac_try_echo") >&5
9617 (eval "$ac_link") 2>conftest.er1
9619 grep -v '^ *+' conftest.er1
>conftest.err
9621 cat conftest.err
>&5
9622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest
$ac_exeext && {
9627 test "$cross_compiling" = yes ||
9628 $as_test_x conftest
$ac_exeext
9630 ac_cv_lib_Xp_XpEndJob
=yes
9632 $as_echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.
$ac_ext >&5
9635 ac_cv_lib_Xp_XpEndJob
=no
9638 rm -rf conftest.dSYM
9639 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9640 conftest
$ac_exeext conftest.
$ac_ext
9641 LIBS
=$ac_check_lib_save_LIBS
9643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9644 $as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
9645 if test "x$ac_cv_lib_Xp_XpEndJob" = x
""yes; then
9646 GUI_X_LIBS
="-lXp $GUI_X_LIBS"
9650 LDFLAGS
=$ldflags_save
9652 { $as_echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9653 $as_echo_n "checking for extra X11 defines... " >&6; }
9656 if mkdir conftestdir
; then
9658 cat > Imakefile
<<'EOF'
9660 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9662 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9663 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9668 if test -z "$NARROW_PROTO"; then
9669 { $as_echo "$as_me:$LINENO: result: no" >&5
9670 $as_echo "no" >&6; }
9672 { $as_echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9673 $as_echo "$NARROW_PROTO" >&6; }
9678 if test "$enable_xsmp" = "yes"; then
9679 cppflags_save
=$CPPFLAGS
9680 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9682 for ac_header
in X11
/SM
/SMlib.h
9684 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 $as_echo_n "checking for $ac_header... " >&6; }
9688 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 $as_echo_n "(cached) " >&6
9691 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9692 $as_echo "$as_val"'`
9693 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9694 $as_echo "$ac_res" >&6; }
9696 # Is the header compilable?
9697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9698 $as_echo_n "checking $ac_header usability... " >&6; }
9699 cat >conftest.
$ac_ext <<_ACEOF
9702 cat confdefs.h
>>conftest.
$ac_ext
9703 cat >>conftest.
$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9705 $ac_includes_default
9706 #include <$ac_header>
9708 rm -f conftest.
$ac_objext
9709 if { (ac_try
="$ac_compile"
9711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715 $as_echo "$ac_try_echo") >&5
9716 (eval "$ac_compile") 2>conftest.er1
9718 grep -v '^ *+' conftest.er1 >conftest.err
9720 cat conftest.err >&5
9721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } && {
9723 test -z "$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 } && test -s conftest.$ac_objext; then
9726 ac_header_compiler=yes
9728 $as_echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_header_compiler=no
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9736 $as_echo "$ac_header_compiler" >&6; }
9738 # Is the header present?
9739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9740 $as_echo_n "checking $ac_header presence... " >&6; }
9741 cat >conftest.$ac_ext <<_ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 #include <$ac_header>
9749 if { (ac_try="$ac_cpp conftest.$ac_ext"
9751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9752 *) ac_try_echo
=$ac_try;;
9754 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9755 $as_echo "$ac_try_echo") >&5
9756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9758 grep -v '^ *+' conftest.er1
>conftest.err
9760 cat conftest.err
>&5
9761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev
/null
&& {
9763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9764 test ! -s conftest.err
9766 ac_header_preproc
=yes
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.
$ac_ext >&5
9771 ac_header_preproc
=no
9774 rm -f conftest.err conftest.
$ac_ext
9775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9776 $as_echo "$ac_header_preproc" >&6; }
9778 # So? What about this header?
9779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9785 ac_header_preproc
=yes
9788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9791 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9795 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9796 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9798 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9803 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9804 $as_echo_n "checking for $ac_header... " >&6; }
9805 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9806 $as_echo_n "(cached) " >&6
9808 eval "$as_ac_Header=\$ac_header_preproc"
9810 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9811 $as_echo "$as_val"'`
9812 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9813 $as_echo "$ac_res" >&6; }
9816 as_val
=`eval 'as_val=${'$as_ac_Header'}
9817 $as_echo "$as_val"'`
9818 if test "x$as_val" = x
""yes; then
9819 cat >>confdefs.h
<<_ACEOF
9820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9827 CPPFLAGS
=$cppflags_save
9831 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9832 cppflags_save
=$CPPFLAGS
9833 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
9836 for ac_header
in X11
/xpm.h X11
/Sunkeysym.h
9838 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9841 $as_echo_n "checking for $ac_header... " >&6; }
9842 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9843 $as_echo_n "(cached) " >&6
9845 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9846 $as_echo "$as_val"'`
9847 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9848 $as_echo "$ac_res" >&6; }
9850 # Is the header compilable?
9851 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9852 $as_echo_n "checking $ac_header usability... " >&6; }
9853 cat >conftest.
$ac_ext <<_ACEOF
9856 cat confdefs.h
>>conftest.
$ac_ext
9857 cat >>conftest.
$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 $ac_includes_default
9860 #include <$ac_header>
9862 rm -f conftest.
$ac_objext
9863 if { (ac_try
="$ac_compile"
9865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9869 $as_echo "$ac_try_echo") >&5
9870 (eval "$ac_compile") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } && {
9877 test -z "$ac_c_werror_flag" ||
9878 test ! -s conftest.err
9879 } && test -s conftest.$ac_objext; then
9880 ac_header_compiler=yes
9882 $as_echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9885 ac_header_compiler=no
9888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9890 $as_echo "$ac_header_compiler" >&6; }
9892 # Is the header present?
9893 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9894 $as_echo_n "checking $ac_header presence... " >&6; }
9895 cat >conftest.$ac_ext <<_ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h. */
9901 #include <$ac_header>
9903 if { (ac_try="$ac_cpp conftest.$ac_ext"
9905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9906 *) ac_try_echo
=$ac_try;;
9908 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9909 $as_echo "$ac_try_echo") >&5
9910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9912 grep -v '^ *+' conftest.er1
>conftest.err
9914 cat conftest.err
>&5
9915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } >/dev
/null
&& {
9917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9918 test ! -s conftest.err
9920 ac_header_preproc
=yes
9922 $as_echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.
$ac_ext >&5
9925 ac_header_preproc
=no
9928 rm -f conftest.err conftest.
$ac_ext
9929 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9930 $as_echo "$ac_header_preproc" >&6; }
9932 # So? What about this header?
9933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9936 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9938 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9939 ac_header_preproc
=yes
9942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9943 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9945 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9947 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9949 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9951 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9952 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9953 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9957 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9958 $as_echo_n "checking for $ac_header... " >&6; }
9959 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9960 $as_echo_n "(cached) " >&6
9962 eval "$as_ac_Header=\$ac_header_preproc"
9964 ac_res
=`eval 'as_val=${'$as_ac_Header'}
9965 $as_echo "$as_val"'`
9966 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9967 $as_echo "$ac_res" >&6; }
9970 as_val
=`eval 'as_val=${'$as_ac_Header'}
9971 $as_echo "$as_val"'`
9972 if test "x$as_val" = x
""yes; then
9973 cat >>confdefs.h
<<_ACEOF
9974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9982 if test ! "$enable_xim" = "no"; then
9983 { $as_echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9984 $as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
9985 cat >conftest.
$ac_ext <<_ACEOF
9988 cat confdefs.h
>>conftest.
$ac_ext
9989 cat >>conftest.
$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9991 #include <X11/Xlib.h>
9993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9994 $EGREP "XIMText" >/dev
/null
2>&1; then
9995 { $as_echo "$as_me:$LINENO: result: yes" >&5
9996 $as_echo "yes" >&6; }
9998 { $as_echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9999 $as_echo "no; xim has been disabled" >&6; }; enable_xim
= "no"
10004 CPPFLAGS
=$cppflags_save
10006 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
10007 -a "x$GUITYPE" != "xNONE" ; then
10008 { $as_echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
10009 $as_echo "X GUI selected; xim has been enabled" >&6; }
10014 if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
10015 cppflags_save
=$CPPFLAGS
10016 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
10017 { $as_echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
10018 $as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
10019 cat >conftest.
$ac_ext <<_ACEOF
10022 cat confdefs.h
>>conftest.
$ac_ext
10023 cat >>conftest.
$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10026 #include <X11/Intrinsic.h>
10027 #include <X11/Xmu/Editres.h>
10036 rm -f conftest.
$ac_objext
10037 if { (ac_try
="$ac_compile"
10038 case "(($ac_try" in
10039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10043 $as_echo "$ac_try_echo") >&5
10044 (eval "$ac_compile") 2>conftest.er1
10046 grep -v '^ *+' conftest.er1 >conftest.err
10048 cat conftest.err >&5
10049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest.$ac_objext; then
10054 { $as_echo "$as_me:$LINENO: result: yes" >&5
10055 $as_echo "yes" >&6; }
10056 cat >>confdefs.h <<\_ACEOF
10057 #define HAVE_X11_XMU_EDITRES_H 1
10061 $as_echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 { $as_echo "$as_me:$LINENO: result: no" >&5
10065 $as_echo "no" >&6; }
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 CPPFLAGS=$cppflags_save
10072 if test -z "$SKIP_MOTIF"; then
10073 cppflags_save=$CPPFLAGS
10074 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10082 for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
10083 Xm/UnhighlightT.h Xm/Notebook.h
10085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 ac_res=`eval 'as_val=${'$as_ac_Header'}
10093 $as_echo "$as_val"'`
10094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10095 $as_echo "$ac_res" >&6; }
10097 # Is the header compilable?
10098 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10099 $as_echo_n "checking $ac_header usability... " >&6; }
10100 cat >conftest.$ac_ext <<_ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 $ac_includes_default
10107 #include <$ac_header>
10109 rm -f conftest.$ac_objext
10110 if { (ac_try="$ac_compile"
10111 case "(($ac_try" in
10112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10113 *) ac_try_echo
=$ac_try;;
10115 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10116 $as_echo "$ac_try_echo") >&5
10117 (eval "$ac_compile") 2>conftest.er1
10119 grep -v '^ *+' conftest.er1
>conftest.err
10121 cat conftest.err
>&5
10122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest.
$ac_objext; then
10127 ac_header_compiler
=yes
10129 $as_echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.
$ac_ext >&5
10132 ac_header_compiler
=no
10135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10136 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10137 $as_echo "$ac_header_compiler" >&6; }
10139 # Is the header present?
10140 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10141 $as_echo_n "checking $ac_header presence... " >&6; }
10142 cat >conftest.
$ac_ext <<_ACEOF
10145 cat confdefs.h
>>conftest.
$ac_ext
10146 cat >>conftest.
$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 #include <$ac_header>
10150 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10151 case "(($ac_try" in
10152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10153 *) ac_try_echo=$ac_try;;
10155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10156 $as_echo "$ac_try_echo") >&5
10157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10159 grep -v '^ *+' conftest.er1 >conftest.err
10161 cat conftest.err >&5
10162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); } >/dev/null && {
10164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10165 test ! -s conftest.err
10167 ac_header_preproc=yes
10169 $as_echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10172 ac_header_preproc=no
10175 rm -f conftest.err conftest.$ac_ext
10176 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10177 $as_echo "$ac_header_preproc" >&6; }
10179 # So? What about this header?
10180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10183 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10185 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10186 ac_header_preproc=yes
10189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10190 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10192 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10194 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10196 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10198 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10200 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10205 $as_echo_n "checking for $ac_header... " >&6; }
10206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10207 $as_echo_n "(cached) " >&6
10209 eval "$as_ac_Header=\$ac_header_preproc"
10211 ac_res=`eval 'as_val=${'$as_ac_Header'}
10212 $as_echo "$as_val"'`
10213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10214 $as_echo "$ac_res" >&6; }
10217 as_val=`eval 'as_val=${'$as_ac_Header'}
10218 $as_echo "$as_val"'`
10219 if test "x$as_val" = x""yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10229 if test $ac_cv_header_Xm_XpmP_h = yes; then
10230 { $as_echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
10231 $as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 #include <Xm/XpmP.h>
10242 XpmAttributes_21 attr;
10247 rm -f conftest.$ac_objext
10248 if { (ac_try="$ac_compile"
10249 case "(($ac_try" in
10250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10251 *) ac_try_echo
=$ac_try;;
10253 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10254 $as_echo "$ac_try_echo") >&5
10255 (eval "$ac_compile") 2>conftest.er1
10257 grep -v '^ *+' conftest.er1
>conftest.err
10259 cat conftest.err
>&5
10260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } && {
10262 test -z "$ac_c_werror_flag" ||
10263 test ! -s conftest.err
10264 } && test -s conftest.
$ac_objext; then
10265 { $as_echo "$as_me:$LINENO: result: yes" >&5
10266 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10267 #define XPMATTRIBUTES_TYPE XpmAttributes_21
10271 $as_echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.
$ac_ext >&5
10274 { $as_echo "$as_me:$LINENO: result: no" >&5
10275 $as_echo "no" >&6; }; cat >>confdefs.h
<<\_ACEOF
10276 #define XPMATTRIBUTES_TYPE XpmAttributes
10282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10284 cat >>confdefs.h
<<\_ACEOF
10285 #define XPMATTRIBUTES_TYPE XpmAttributes
10289 CPPFLAGS
=$cppflags_save
10292 if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
10293 { $as_echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
10294 $as_echo "no GUI selected; xim has been disabled" >&6; }
10297 if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
10298 { $as_echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
10299 $as_echo "no GUI selected; fontset has been disabled" >&6; }
10300 enable_fontset
="no"
10302 if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
10303 { $as_echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
10304 $as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
10305 enable_fontset
="no"
10308 if test -z "$SKIP_PHOTON"; then
10317 if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
10318 { { $as_echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
10319 $as_echo "$as_me: error: cannot use workshop without Motif" >&2;}
10320 { (exit 1); exit 1; }; }
10323 if test "$enable_xim" = "yes"; then
10324 cat >>confdefs.h
<<\_ACEOF
10329 if test "$enable_fontset" = "yes"; then
10330 cat >>confdefs.h
<<\_ACEOF
10331 #define FEAT_XFONTSET 1
10339 if test "$enable_hangulinput" = "yes"; then
10340 if test "x$GUITYPE" = "xNONE"; then
10341 { $as_echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
10342 $as_echo "no GUI selected; hangul input has been disabled" >&6; }
10343 enable_hangulinput
=no
10345 cat >>confdefs.h
<<\_ACEOF
10346 #define FEAT_HANGULIN 1
10349 HANGULIN_SRC
=hangulin.c
10351 HANGULIN_OBJ
=objects
/hangulin.o
10357 { $as_echo "$as_me:$LINENO: checking whether toupper is broken" >&5
10358 $as_echo_n "checking whether toupper is broken... " >&6; }
10359 if test "${vim_cv_toupper_broken+set}" = set; then
10360 $as_echo_n "(cached) " >&6
10363 if test "$cross_compiling" = yes; then
10365 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&5
10366 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_toupper_broken'" >&2;}
10367 { (exit 1); exit 1; }; }
10370 cat >conftest.
$ac_ext <<_ACEOF
10372 #include "confdefs.h"
10375 # include <stdlib.h>
10376 # include <stddef.h>
10378 main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
10381 rm -f conftest
$ac_exeext
10382 if { (ac_try
="$ac_link"
10383 case "(($ac_try" in
10384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10388 $as_echo "$ac_try_echo") >&5
10389 (eval "$ac_link") 2>&5
10391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10395 *) ac_try_echo
=$ac_try;;
10397 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10398 $as_echo "$ac_try_echo") >&5
10399 (eval "$ac_try") 2>&5
10401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); }; }; then
10404 vim_cv_toupper_broken
=yes
10407 $as_echo "$as_me: program exited with status $ac_status" >&5
10408 $as_echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.
$ac_ext >&5
10411 ( exit $ac_status )
10413 vim_cv_toupper_broken
=no
10416 rm -rf conftest.dSYM
10417 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10422 { $as_echo "$as_me:$LINENO: result: $vim_cv_toupper_broken" >&5
10423 $as_echo "$vim_cv_toupper_broken" >&6; }
10425 if test "x$vim_cv_toupper_broken" = "xyes" ; then
10426 cat >>confdefs.h
<<\_ACEOF
10427 #define BROKEN_TOUPPER 1
10432 { $as_echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10433 $as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
10434 cat >conftest.
$ac_ext <<_ACEOF
10437 cat confdefs.h
>>conftest.
$ac_ext
10438 cat >>conftest.
$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10444 printf("(" __DATE__ " " __TIME__ ")");
10449 rm -f conftest.
$ac_objext
10450 if { (ac_try
="$ac_compile"
10451 case "(($ac_try" in
10452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10456 $as_echo "$ac_try_echo") >&5
10457 (eval "$ac_compile") 2>conftest.er1
10459 grep -v '^ *+' conftest.er1 >conftest.err
10461 cat conftest.err >&5
10462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } && {
10464 test -z "$ac_c_werror_flag" ||
10465 test ! -s conftest.err
10466 } && test -s conftest.$ac_objext; then
10467 { $as_echo "$as_me:$LINENO: result: yes" >&5
10468 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
10469 #define HAVE_DATE_TIME 1
10473 $as_echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10476 { $as_echo "$as_me:$LINENO: result: no" >&5
10477 $as_echo "no" >&6; }
10480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10482 { $as_echo "$as_me:$LINENO: checking whether __attribute__((unused)) is allowed" >&5
10483 $as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
10484 cat >conftest.$ac_ext <<_ACEOF
10487 cat confdefs.h >>conftest.$ac_ext
10488 cat >>conftest.$ac_ext <<_ACEOF
10489 /* end confdefs.h. */
10494 int x __attribute__((unused));
10499 rm -f conftest.$ac_objext
10500 if { (ac_try="$ac_compile"
10501 case "(($ac_try" in
10502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10503 *) ac_try_echo
=$ac_try;;
10505 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10506 $as_echo "$ac_try_echo") >&5
10507 (eval "$ac_compile") 2>conftest.er1
10509 grep -v '^ *+' conftest.er1
>conftest.err
10511 cat conftest.err
>&5
10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest.
$ac_objext; then
10517 { $as_echo "$as_me:$LINENO: result: yes" >&5
10518 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
10519 #define HAVE_ATTRIBUTE_UNUSED 1
10523 $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.
$ac_ext >&5
10526 { $as_echo "$as_me:$LINENO: result: no" >&5
10527 $as_echo "no" >&6; }
10530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10532 if test "${ac_cv_header_elf_h+set}" = set; then
10533 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10534 $as_echo_n "checking for elf.h... " >&6; }
10535 if test "${ac_cv_header_elf_h+set}" = set; then
10536 $as_echo_n "(cached) " >&6
10538 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10539 $as_echo "$ac_cv_header_elf_h" >&6; }
10541 # Is the header compilable?
10542 { $as_echo "$as_me:$LINENO: checking elf.h usability" >&5
10543 $as_echo_n "checking elf.h usability... " >&6; }
10544 cat >conftest.
$ac_ext <<_ACEOF
10547 cat confdefs.h
>>conftest.
$ac_ext
10548 cat >>conftest.
$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 $ac_includes_default
10553 rm -f conftest.
$ac_objext
10554 if { (ac_try
="$ac_compile"
10555 case "(($ac_try" in
10556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10557 *) ac_try_echo=$ac_try;;
10559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10560 $as_echo "$ac_try_echo") >&5
10561 (eval "$ac_compile") 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest.$ac_objext; then
10571 ac_header_compiler=yes
10573 $as_echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10576 ac_header_compiler=no
10579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10581 $as_echo "$ac_header_compiler" >&6; }
10583 # Is the header present?
10584 { $as_echo "$as_me:$LINENO: checking elf.h presence" >&5
10585 $as_echo_n "checking elf.h presence... " >&6; }
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10594 if { (ac_try="$ac_cpp conftest.$ac_ext"
10595 case "(($ac_try" in
10596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10597 *) ac_try_echo
=$ac_try;;
10599 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10600 $as_echo "$ac_try_echo") >&5
10601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10603 grep -v '^ *+' conftest.er1
>conftest.err
10605 cat conftest.err
>&5
10606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } >/dev
/null
&& {
10608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10609 test ! -s conftest.err
10611 ac_header_preproc
=yes
10613 $as_echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.
$ac_ext >&5
10616 ac_header_preproc
=no
10619 rm -f conftest.err conftest.
$ac_ext
10620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10621 $as_echo "$ac_header_preproc" >&6; }
10623 # So? What about this header?
10624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10626 { $as_echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10627 $as_echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10628 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10629 $as_echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10630 ac_header_preproc
=yes
10633 { $as_echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10634 $as_echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10635 { $as_echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10636 $as_echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10637 { $as_echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10638 $as_echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10639 { $as_echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10640 $as_echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10641 { $as_echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10642 $as_echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10644 $as_echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10648 { $as_echo "$as_me:$LINENO: checking for elf.h" >&5
10649 $as_echo_n "checking for elf.h... " >&6; }
10650 if test "${ac_cv_header_elf_h+set}" = set; then
10651 $as_echo_n "(cached) " >&6
10653 ac_cv_header_elf_h
=$ac_header_preproc
10655 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10656 $as_echo "$ac_cv_header_elf_h" >&6; }
10659 if test "x$ac_cv_header_elf_h" = x
""yes; then
10664 if test "$HAS_ELF" = 1; then
10666 { $as_echo "$as_me:$LINENO: checking for main in -lelf" >&5
10667 $as_echo_n "checking for main in -lelf... " >&6; }
10668 if test "${ac_cv_lib_elf_main+set}" = set; then
10669 $as_echo_n "(cached) " >&6
10671 ac_check_lib_save_LIBS
=$LIBS
10673 cat >conftest.
$ac_ext <<_ACEOF
10676 cat confdefs.h
>>conftest.
$ac_ext
10677 cat >>conftest.
$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10689 rm -f conftest.
$ac_objext conftest
$ac_exeext
10690 if { (ac_try
="$ac_link"
10691 case "(($ac_try" in
10692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696 $as_echo "$ac_try_echo") >&5
10697 (eval "$ac_link") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest$ac_exeext && {
10707 test "$cross_compiling" = yes ||
10708 $as_test_x conftest$ac_exeext
10710 ac_cv_lib_elf_main=yes
10712 $as_echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 ac_cv_lib_elf_main=no
10718 rm -rf conftest.dSYM
10719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10723 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10724 $as_echo "$ac_cv_lib_elf_main" >&6; }
10725 if test "x$ac_cv_lib_elf_main" = x""yes; then
10726 cat >>confdefs.h <<_ACEOF
10727 #define HAVE_LIBELF 1
10741 ac_header_dirent=no
10742 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10743 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
10744 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10745 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10747 $as_echo_n "(cached) " >&6
10749 cat >conftest.$ac_ext <<_ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 #include <sys/types.h>
10767 rm -f conftest.$ac_objext
10768 if { (ac_try="$ac_compile"
10769 case "(($ac_try" in
10770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10771 *) ac_try_echo
=$ac_try;;
10773 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10774 $as_echo "$ac_try_echo") >&5
10775 (eval "$ac_compile") 2>conftest.er1
10777 grep -v '^ *+' conftest.er1
>conftest.err
10779 cat conftest.err
>&5
10780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } && {
10782 test -z "$ac_c_werror_flag" ||
10783 test ! -s conftest.err
10784 } && test -s conftest.
$ac_objext; then
10785 eval "$as_ac_Header=yes"
10787 $as_echo "$as_me: failed program was:" >&5
10788 sed 's/^/| /' conftest.
$ac_ext >&5
10790 eval "$as_ac_Header=no"
10793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10795 ac_res
=`eval 'as_val=${'$as_ac_Header'}
10796 $as_echo "$as_val"'`
10797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10798 $as_echo "$ac_res" >&6; }
10799 as_val
=`eval 'as_val=${'$as_ac_Header'}
10800 $as_echo "$as_val"'`
10801 if test "x$as_val" = x
""yes; then
10802 cat >>confdefs.h
<<_ACEOF
10803 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10806 ac_header_dirent
=$ac_hdr; break
10810 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10811 if test $ac_header_dirent = dirent.h
; then
10812 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10813 $as_echo_n "checking for library containing opendir... " >&6; }
10814 if test "${ac_cv_search_opendir+set}" = set; then
10815 $as_echo_n "(cached) " >&6
10817 ac_func_search_save_LIBS
=$LIBS
10818 cat >conftest.
$ac_ext <<_ACEOF
10821 cat confdefs.h
>>conftest.
$ac_ext
10822 cat >>conftest.
$ac_ext <<_ACEOF
10823 /* end confdefs.h. */
10825 /* Override any GCC internal prototype to avoid an error.
10826 Use char because int might match the return type of a GCC
10827 builtin and then its argument prototype would still apply. */
10840 for ac_lib
in '' dir
; do
10841 if test -z "$ac_lib"; then
10842 ac_res
="none required"
10845 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10847 rm -f conftest.
$ac_objext conftest
$ac_exeext
10848 if { (ac_try
="$ac_link"
10849 case "(($ac_try" in
10850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10854 $as_echo "$ac_try_echo") >&5
10855 (eval "$ac_link") 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10859 cat conftest.err >&5
10860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } && {
10862 test -z "$ac_c_werror_flag" ||
10863 test ! -s conftest.err
10864 } && test -s conftest$ac_exeext && {
10865 test "$cross_compiling" = yes ||
10866 $as_test_x conftest$ac_exeext
10868 ac_cv_search_opendir=$ac_res
10870 $as_echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10876 rm -rf conftest.dSYM
10877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10879 if test "${ac_cv_search_opendir+set}" = set; then
10883 if test "${ac_cv_search_opendir+set}" = set; then
10886 ac_cv_search_opendir=no
10888 rm conftest.$ac_ext
10889 LIBS=$ac_func_search_save_LIBS
10891 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10892 $as_echo "$ac_cv_search_opendir" >&6; }
10893 ac_res=$ac_cv_search_opendir
10894 if test "$ac_res" != no; then
10895 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10900 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
10901 $as_echo_n "checking for library containing opendir... " >&6; }
10902 if test "${ac_cv_search_opendir+set}" = set; then
10903 $as_echo_n "(cached) " >&6
10905 ac_func_search_save_LIBS=$LIBS
10906 cat >conftest.$ac_ext <<_ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10928 for ac_lib in '' x; do
10929 if test -z "$ac_lib"; then
10930 ac_res="none required"
10933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10935 rm -f conftest.$ac_objext conftest$ac_exeext
10936 if { (ac_try="$ac_link"
10937 case "(($ac_try" in
10938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10939 *) ac_try_echo
=$ac_try;;
10941 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10942 $as_echo "$ac_try_echo") >&5
10943 (eval "$ac_link") 2>conftest.er1
10945 grep -v '^ *+' conftest.er1
>conftest.err
10947 cat conftest.err
>&5
10948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } && {
10950 test -z "$ac_c_werror_flag" ||
10951 test ! -s conftest.err
10952 } && test -s conftest
$ac_exeext && {
10953 test "$cross_compiling" = yes ||
10954 $as_test_x conftest
$ac_exeext
10956 ac_cv_search_opendir
=$ac_res
10958 $as_echo "$as_me: failed program was:" >&5
10959 sed 's/^/| /' conftest.
$ac_ext >&5
10964 rm -rf conftest.dSYM
10965 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10967 if test "${ac_cv_search_opendir+set}" = set; then
10971 if test "${ac_cv_search_opendir+set}" = set; then
10974 ac_cv_search_opendir
=no
10976 rm conftest.
$ac_ext
10977 LIBS
=$ac_func_search_save_LIBS
10979 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10980 $as_echo "$ac_cv_search_opendir" >&6; }
10981 ac_res
=$ac_cv_search_opendir
10982 if test "$ac_res" != no
; then
10983 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10990 if test $ac_cv_header_sys_wait_h = no
; then
10991 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10992 $as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
10993 cat >conftest.
$ac_ext <<_ACEOF
10996 cat confdefs.h
>>conftest.
$ac_ext
10997 cat >>conftest.
$ac_ext <<_ACEOF
10998 /* end confdefs.h. */
10999 #include <sys/wait.h>
11003 union wait xx, yy; xx = yy
11008 rm -f conftest.
$ac_objext
11009 if { (ac_try
="$ac_compile"
11010 case "(($ac_try" in
11011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11015 $as_echo "$ac_try_echo") >&5
11016 (eval "$ac_compile") 2>conftest.er1
11018 grep -v '^ *+' conftest.er1 >conftest.err
11020 cat conftest.err >&5
11021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } && {
11023 test -z "$ac_c_werror_flag" ||
11024 test ! -s conftest.err
11025 } && test -s conftest.$ac_objext; then
11026 { $as_echo "$as_me:$LINENO: result: yes" >&5
11027 $as_echo "yes" >&6; }
11028 cat >>confdefs.h <<\_ACEOF
11029 #define HAVE_SYS_WAIT_H 1
11032 cat >>confdefs.h <<\_ACEOF
11033 #define HAVE_UNION_WAIT 1
11037 $as_echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11040 { $as_echo "$as_me:$LINENO: result: no" >&5
11041 $as_echo "no" >&6; }
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087 for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
11088 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
11089 iconv.h langinfo.h math.h unistd.h stropts.h errno.h \
11090 sys/resource.h sys/systeminfo.h locale.h \
11091 sys/stream.h termios.h libc.h sys/statfs.h \
11092 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
11093 libgen.h util/debug.h util/msg18n.h frame.h \
11094 sys/acl.h sys/access.h sys/sysinfo.h wchar.h wctype.h
11096 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11099 $as_echo_n "checking for $ac_header... " >&6; }
11100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11101 $as_echo_n "(cached) " >&6
11103 ac_res=`eval 'as_val=${'$as_ac_Header'}
11104 $as_echo "$as_val"'`
11105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11106 $as_echo "$ac_res" >&6; }
11108 # Is the header compilable?
11109 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11110 $as_echo_n "checking $ac_header usability... " >&6; }
11111 cat >conftest.$ac_ext <<_ACEOF
11114 cat confdefs.h >>conftest.$ac_ext
11115 cat >>conftest.$ac_ext <<_ACEOF
11116 /* end confdefs.h. */
11117 $ac_includes_default
11118 #include <$ac_header>
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11124 *) ac_try_echo
=$ac_try;;
11126 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11127 $as_echo "$ac_try_echo") >&5
11128 (eval "$ac_compile") 2>conftest.er1
11130 grep -v '^ *+' conftest.er1
>conftest.err
11132 cat conftest.err
>&5
11133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest.
$ac_objext; then
11138 ac_header_compiler
=yes
11140 $as_echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.
$ac_ext >&5
11143 ac_header_compiler
=no
11146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11147 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11148 $as_echo "$ac_header_compiler" >&6; }
11150 # Is the header present?
11151 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11152 $as_echo_n "checking $ac_header presence... " >&6; }
11153 cat >conftest.
$ac_ext <<_ACEOF
11156 cat confdefs.h
>>conftest.
$ac_ext
11157 cat >>conftest.
$ac_ext <<_ACEOF
11158 /* end confdefs.h. */
11159 #include <$ac_header>
11161 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11162 case "(($ac_try" in
11163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11164 *) ac_try_echo=$ac_try;;
11166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11167 $as_echo "$ac_try_echo") >&5
11168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11170 grep -v '^ *+' conftest.er1 >conftest.err
11172 cat conftest.err >&5
11173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); } >/dev/null && {
11175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11176 test ! -s conftest.err
11178 ac_header_preproc=yes
11180 $as_echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11183 ac_header_preproc=no
11186 rm -f conftest.err conftest.$ac_ext
11187 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11188 $as_echo "$ac_header_preproc" >&6; }
11190 # So? What about this header?
11191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11194 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11197 ac_header_preproc=yes
11200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11201 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11203 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11205 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11207 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11209 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11211 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11215 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11216 $as_echo_n "checking for $ac_header... " >&6; }
11217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11218 $as_echo_n "(cached) " >&6
11220 eval "$as_ac_Header=\$ac_header_preproc"
11222 ac_res=`eval 'as_val=${'$as_ac_Header'}
11223 $as_echo "$as_val"'`
11224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11225 $as_echo "$ac_res" >&6; }
11228 as_val=`eval 'as_val=${'$as_ac_Header'}
11229 $as_echo "$as_val"'`
11230 if test "x$as_val" = x""yes; then
11231 cat >>confdefs.h <<_ACEOF
11232 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11241 for ac_header in sys/ptem.h
11243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11245 $as_echo_n "checking for $ac_header... " >&6; }
11246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11247 $as_echo_n "(cached) " >&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 #if defined HAVE_SYS_STREAM_H
11256 # include <sys/stream.h>
11259 #include <$ac_header>
11261 rm -f conftest.$ac_objext
11262 if { (ac_try="$ac_compile"
11263 case "(($ac_try" in
11264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11265 *) ac_try_echo
=$ac_try;;
11267 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11268 $as_echo "$ac_try_echo") >&5
11269 (eval "$ac_compile") 2>conftest.er1
11271 grep -v '^ *+' conftest.er1
>conftest.err
11273 cat conftest.err
>&5
11274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest.
$ac_objext; then
11279 eval "$as_ac_Header=yes"
11281 $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.
$ac_ext >&5
11284 eval "$as_ac_Header=no"
11287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11289 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11290 $as_echo "$as_val"'`
11291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11292 $as_echo "$ac_res" >&6; }
11293 as_val
=`eval 'as_val=${'$as_ac_Header'}
11294 $as_echo "$as_val"'`
11295 if test "x$as_val" = x
""yes; then
11296 cat >>confdefs.h
<<_ACEOF
11297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11306 for ac_header
in sys
/sysctl.h
11308 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11310 $as_echo_n "checking for $ac_header... " >&6; }
11311 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11312 $as_echo_n "(cached) " >&6
11314 cat >conftest.
$ac_ext <<_ACEOF
11317 cat confdefs.h
>>conftest.
$ac_ext
11318 cat >>conftest.
$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 #if defined HAVE_SYS_PARAM_H
11321 # include <sys/param.h>
11324 #include <$ac_header>
11326 rm -f conftest.
$ac_objext
11327 if { (ac_try
="$ac_compile"
11328 case "(($ac_try" in
11329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11333 $as_echo "$ac_try_echo") >&5
11334 (eval "$ac_compile") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest.$ac_objext; then
11344 eval "$as_ac_Header=yes"
11346 $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 eval "$as_ac_Header=no"
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 ac_res=`eval 'as_val=${'$as_ac_Header'}
11355 $as_echo "$as_val"'`
11356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11357 $as_echo "$ac_res" >&6; }
11358 as_val=`eval 'as_val=${'$as_ac_Header'}
11359 $as_echo "$as_val"'`
11360 if test "x$as_val" = x""yes; then
11361 cat >>confdefs.h <<_ACEOF
11362 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11371 { $as_echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11372 $as_echo_n "checking for pthread_np.h... " >&6; }
11373 cat >conftest.$ac_ext <<_ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11380 #include <pthread.h>
11381 #include <pthread_np.h>
11390 rm -f conftest.$ac_objext
11391 if { (ac_try="$ac_compile"
11392 case "(($ac_try" in
11393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11394 *) ac_try_echo
=$ac_try;;
11396 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11397 $as_echo "$ac_try_echo") >&5
11398 (eval "$ac_compile") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1
>conftest.err
11402 cat conftest.err
>&5
11403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest.
$ac_objext; then
11408 { $as_echo "$as_me:$LINENO: result: yes" >&5
11409 $as_echo "yes" >&6; }
11410 cat >>confdefs.h
<<\_ACEOF
11411 #define HAVE_PTHREAD_NP_H 1
11415 $as_echo "$as_me: failed program was:" >&5
11416 sed 's/^/| /' conftest.
$ac_ext >&5
11418 { $as_echo "$as_me:$LINENO: result: no" >&5
11419 $as_echo "no" >&6; }
11422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11425 for ac_header
in strings.h
11427 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11428 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11430 $as_echo_n "checking for $ac_header... " >&6; }
11431 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11432 $as_echo_n "(cached) " >&6
11434 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11435 $as_echo "$as_val"'`
11436 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11437 $as_echo "$ac_res" >&6; }
11439 # Is the header compilable?
11440 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441 $as_echo_n "checking $ac_header usability... " >&6; }
11442 cat >conftest.
$ac_ext <<_ACEOF
11445 cat confdefs.h
>>conftest.
$ac_ext
11446 cat >>conftest.
$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11449 #include <$ac_header>
11451 rm -f conftest.
$ac_objext
11452 if { (ac_try
="$ac_compile"
11453 case "(($ac_try" in
11454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11458 $as_echo "$ac_try_echo") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 ac_header_compiler=yes
11471 $as_echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ac_header_compiler=no
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479 $as_echo "$ac_header_compiler" >&6; }
11481 # Is the header present?
11482 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483 $as_echo_n "checking $ac_header presence... " >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 #include <$ac_header>
11492 if { (ac_try="$ac_cpp conftest.$ac_ext"
11493 case "(($ac_try" in
11494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11495 *) ac_try_echo
=$ac_try;;
11497 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11498 $as_echo "$ac_try_echo") >&5
11499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11501 grep -v '^ *+' conftest.er1
>conftest.err
11503 cat conftest.err
>&5
11504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } >/dev
/null
&& {
11506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11507 test ! -s conftest.err
11509 ac_header_preproc
=yes
11511 $as_echo "$as_me: failed program was:" >&5
11512 sed 's/^/| /' conftest.
$ac_ext >&5
11514 ac_header_preproc
=no
11517 rm -f conftest.err conftest.
$ac_ext
11518 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11519 $as_echo "$ac_header_preproc" >&6; }
11521 # So? What about this header?
11522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11525 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11527 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11528 ac_header_preproc
=yes
11531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11532 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11534 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11536 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11538 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11540 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11542 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11547 $as_echo_n "checking for $ac_header... " >&6; }
11548 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 $as_echo_n "(cached) " >&6
11551 eval "$as_ac_Header=\$ac_header_preproc"
11553 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11554 $as_echo "$as_val"'`
11555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11556 $as_echo "$ac_res" >&6; }
11559 as_val
=`eval 'as_val=${'$as_ac_Header'}
11560 $as_echo "$as_val"'`
11561 if test "x$as_val" = x
""yes; then
11562 cat >>confdefs.h
<<_ACEOF
11563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11570 if test "x$MACOSX" = "xyes"; then
11571 cat >>confdefs.h
<<\_ACEOF
11572 #define NO_STRINGS_WITH_STRING_H 1
11577 { $as_echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11578 $as_echo_n "checking if strings.h can be included after string.h... " >&6; }
11579 cppflags_save
=$CPPFLAGS
11580 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
11581 cat >conftest.
$ac_ext <<_ACEOF
11584 cat confdefs.h
>>conftest.
$ac_ext
11585 cat >>conftest.
$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11588 #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11589 # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11590 /* but don't do it on AIX 5.1 (Uribarri) */
11592 #ifdef HAVE_XM_XM_H
11593 # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11595 #ifdef HAVE_STRING_H
11596 # include <string.h>
11598 #if defined(HAVE_STRINGS_H)
11599 # include <strings.h>
11610 rm -f conftest.
$ac_objext
11611 if { (ac_try
="$ac_compile"
11612 case "(($ac_try" in
11613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11617 $as_echo "$ac_try_echo") >&5
11618 (eval "$ac_compile") 2>conftest.er1
11620 grep -v '^ *+' conftest.er1 >conftest.err
11622 cat conftest.err >&5
11623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } && {
11625 test -z "$ac_c_werror_flag" ||
11626 test ! -s conftest.err
11627 } && test -s conftest.$ac_objext; then
11628 { $as_echo "$as_me:$LINENO: result: yes" >&5
11629 $as_echo "yes" >&6; }
11631 $as_echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 cat >>confdefs.h <<\_ACEOF
11635 #define NO_STRINGS_WITH_STRING_H 1
11638 { $as_echo "$as_me:$LINENO: result: no" >&5
11639 $as_echo "no" >&6; }
11642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11643 CPPFLAGS=$cppflags_save
11646 if test $ac_cv_c_compiler_gnu = yes; then
11647 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11648 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11649 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11650 $as_echo_n "(cached) " >&6
11652 ac_pattern="Autoconf.*'x'"
11653 cat >conftest.$ac_ext <<_ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h. */
11662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11664 ac_cv_prog_gcc_traditional=yes
11666 ac_cv_prog_gcc_traditional=no
11671 if test $ac_cv_prog_gcc_traditional = no; then
11672 cat >conftest.$ac_ext <<_ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 #include <termio.h>
11681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11682 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11683 ac_cv_prog_gcc_traditional=yes
11689 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11690 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11691 if test $ac_cv_prog_gcc_traditional = yes; then
11692 CC="$CC -traditional"
11696 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11697 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11698 if test "${ac_cv_c_const+set}" = set; then
11699 $as_echo_n "(cached) " >&6
11701 cat >conftest.$ac_ext <<_ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11711 /* FIXME: Include the comments suggested by Paul. */
11712 #ifndef __cplusplus
11713 /* Ultrix mips cc rejects this. */
11714 typedef int charset[2];
11716 /* SunOS 4.1.1 cc rejects this. */
11717 char const *const *pcpcc;
11719 /* NEC SVR4.0.2 mips cc rejects this. */
11720 struct point {int x, y;};
11721 static struct point const zero = {0,0};
11722 /* AIX XL C 1.02.0.0 rejects this.
11723 It does not let you subtract one const X* pointer from another in
11724 an arm of an if-expression whose if-part is not a constant
11726 const char *g = "string";
11727 pcpcc = &g + (g ? g-g : 0);
11728 /* HPUX 7.0 cc rejects these. */
11730 ppc = (char**) pcpcc;
11731 pcpcc = (char const *const *) ppc;
11732 { /* SCO 3.2v4 cc rejects this. */
11734 char const *s = 0 ? (char *) 0 : (char const *) 0;
11739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11740 int x[] = {25, 17};
11741 const int *foo = &x[0];
11744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11745 typedef const int *iptr;
11749 { /* AIX XL C 1.02.0.0 rejects this saying
11750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11751 struct s { int j; const int *ap[3]; };
11752 struct s *b; b->j = 5;
11754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11755 const int foo = 10;
11756 if (!foo) return 0;
11758 return !cs[0] && !zero.x;
11765 rm -f conftest.$ac_objext
11766 if { (ac_try="$ac_compile"
11767 case "(($ac_try" in
11768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11769 *) ac_try_echo
=$ac_try;;
11771 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11772 $as_echo "$ac_try_echo") >&5
11773 (eval "$ac_compile") 2>conftest.er1
11775 grep -v '^ *+' conftest.er1
>conftest.err
11777 cat conftest.err
>&5
11778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } && {
11780 test -z "$ac_c_werror_flag" ||
11781 test ! -s conftest.err
11782 } && test -s conftest.
$ac_objext; then
11785 $as_echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.
$ac_ext >&5
11791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11793 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11794 $as_echo "$ac_cv_c_const" >&6; }
11795 if test $ac_cv_c_const = no
; then
11797 cat >>confdefs.h
<<\_ACEOF
11803 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
11804 $as_echo_n "checking for working volatile... " >&6; }
11805 if test "${ac_cv_c_volatile+set}" = set; then
11806 $as_echo_n "(cached) " >&6
11808 cat >conftest.
$ac_ext <<_ACEOF
11811 cat confdefs.h
>>conftest.
$ac_ext
11812 cat >>conftest.
$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11820 int * volatile y = (int *) 0;
11826 rm -f conftest.
$ac_objext
11827 if { (ac_try
="$ac_compile"
11828 case "(($ac_try" in
11829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11833 $as_echo "$ac_try_echo") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_cv_c_volatile=yes
11846 $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_cv_c_volatile=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
11855 $as_echo "$ac_cv_c_volatile" >&6; }
11856 if test $ac_cv_c_volatile = no; then
11858 cat >>confdefs.h <<\_ACEOF
11859 #define volatile /**/
11864 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
11865 $as_echo_n "checking for mode_t... " >&6; }
11866 if test "${ac_cv_type_mode_t+set}" = set; then
11867 $as_echo_n "(cached) " >&6
11869 ac_cv_type_mode_t=no
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 $ac_includes_default
11880 if (sizeof (mode_t))
11886 rm -f conftest.$ac_objext
11887 if { (ac_try="$ac_compile"
11888 case "(($ac_try" in
11889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11890 *) ac_try_echo
=$ac_try;;
11892 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11893 $as_echo "$ac_try_echo") >&5
11894 (eval "$ac_compile") 2>conftest.er1
11896 grep -v '^ *+' conftest.er1
>conftest.err
11898 cat conftest.err
>&5
11899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } && {
11901 test -z "$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11903 } && test -s conftest.
$ac_objext; then
11904 cat >conftest.
$ac_ext <<_ACEOF
11907 cat confdefs.h
>>conftest.
$ac_ext
11908 cat >>conftest.
$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11910 $ac_includes_default
11914 if (sizeof ((mode_t)))
11920 rm -f conftest.
$ac_objext
11921 if { (ac_try
="$ac_compile"
11922 case "(($ac_try" in
11923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11927 $as_echo "$ac_try_echo") >&5
11928 (eval "$ac_compile") 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest.$ac_objext; then
11940 $as_echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_cv_type_mode_t=yes
11946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11948 $as_echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11957 $as_echo "$ac_cv_type_mode_t" >&6; }
11958 if test "x$ac_cv_type_mode_t" = x""yes; then
11962 cat >>confdefs.h <<_ACEOF
11968 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
11969 $as_echo_n "checking for off_t... " >&6; }
11970 if test "${ac_cv_type_off_t+set}" = set; then
11971 $as_echo_n "(cached) " >&6
11973 ac_cv_type_off_t=no
11974 cat >conftest.$ac_ext <<_ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980 $ac_includes_default
11984 if (sizeof (off_t))
11990 rm -f conftest.$ac_objext
11991 if { (ac_try="$ac_compile"
11992 case "(($ac_try" in
11993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11994 *) ac_try_echo
=$ac_try;;
11996 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11997 $as_echo "$ac_try_echo") >&5
11998 (eval "$ac_compile") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1
>conftest.err
12002 cat conftest.err
>&5
12003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest.
$ac_objext; then
12008 cat >conftest.
$ac_ext <<_ACEOF
12011 cat confdefs.h
>>conftest.
$ac_ext
12012 cat >>conftest.
$ac_ext <<_ACEOF
12013 /* end confdefs.h. */
12014 $ac_includes_default
12018 if (sizeof ((off_t)))
12024 rm -f conftest.
$ac_objext
12025 if { (ac_try
="$ac_compile"
12026 case "(($ac_try" in
12027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12031 $as_echo "$ac_try_echo") >&5
12032 (eval "$ac_compile") 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } && {
12039 test -z "$ac_c_werror_flag" ||
12040 test ! -s conftest.err
12041 } && test -s conftest.$ac_objext; then
12044 $as_echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_cv_type_off_t=yes
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052 $as_echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12061 $as_echo "$ac_cv_type_off_t" >&6; }
12062 if test "x$ac_cv_type_off_t" = x""yes; then
12066 cat >>confdefs.h <<_ACEOF
12067 #define off_t long int
12072 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12073 $as_echo_n "checking for pid_t... " >&6; }
12074 if test "${ac_cv_type_pid_t+set}" = set; then
12075 $as_echo_n "(cached) " >&6
12077 ac_cv_type_pid_t=no
12078 cat >conftest.$ac_ext <<_ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 $ac_includes_default
12088 if (sizeof (pid_t))
12094 rm -f conftest.$ac_objext
12095 if { (ac_try="$ac_compile"
12096 case "(($ac_try" in
12097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12098 *) ac_try_echo
=$ac_try;;
12100 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12101 $as_echo "$ac_try_echo") >&5
12102 (eval "$ac_compile") 2>conftest.er1
12104 grep -v '^ *+' conftest.er1
>conftest.err
12106 cat conftest.err
>&5
12107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest.
$ac_objext; then
12112 cat >conftest.
$ac_ext <<_ACEOF
12115 cat confdefs.h
>>conftest.
$ac_ext
12116 cat >>conftest.
$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 $ac_includes_default
12122 if (sizeof ((pid_t)))
12128 rm -f conftest.
$ac_objext
12129 if { (ac_try
="$ac_compile"
12130 case "(($ac_try" in
12131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12135 $as_echo "$ac_try_echo") >&5
12136 (eval "$ac_compile") 2>conftest.er1
12138 grep -v '^ *+' conftest.er1 >conftest.err
12140 cat conftest.err >&5
12141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest.$ac_objext; then
12148 $as_echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_cv_type_pid_t=yes
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156 $as_echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12165 $as_echo "$ac_cv_type_pid_t" >&6; }
12166 if test "x$ac_cv_type_pid_t" = x""yes; then
12170 cat >>confdefs.h <<_ACEOF
12176 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12177 $as_echo_n "checking for size_t... " >&6; }
12178 if test "${ac_cv_type_size_t+set}" = set; then
12179 $as_echo_n "(cached) " >&6
12181 ac_cv_type_size_t=no
12182 cat >conftest.$ac_ext <<_ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12188 $ac_includes_default
12192 if (sizeof (size_t))
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12202 *) ac_try_echo
=$ac_try;;
12204 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12205 $as_echo "$ac_try_echo") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1
>conftest.err
12210 cat conftest.err
>&5
12211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest.
$ac_objext; then
12216 cat >conftest.
$ac_ext <<_ACEOF
12219 cat confdefs.h
>>conftest.
$ac_ext
12220 cat >>conftest.
$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 $ac_includes_default
12226 if (sizeof ((size_t)))
12232 rm -f conftest.
$ac_objext
12233 if { (ac_try
="$ac_compile"
12234 case "(($ac_try" in
12235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239 $as_echo "$ac_try_echo") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12252 $as_echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 ac_cv_type_size_t=yes
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260 $as_echo "$as_me: failed program was:" >&5
12261 sed 's/^/| /' conftest.$ac_ext >&5
12266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12269 $as_echo "$ac_cv_type_size_t" >&6; }
12270 if test "x$ac_cv_type_size_t" = x""yes; then
12274 cat >>confdefs.h <<_ACEOF
12275 #define size_t unsigned int
12280 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12281 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12282 if test "${ac_cv_type_uid_t+set}" = set; then
12283 $as_echo_n "(cached) " >&6
12285 cat >conftest.$ac_ext <<_ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 #include <sys/types.h>
12294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12295 $EGREP "uid_t" >/dev/null 2>&1; then
12296 ac_cv_type_uid_t=yes
12298 ac_cv_type_uid_t=no
12303 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12304 $as_echo "$ac_cv_type_uid_t" >&6; }
12305 if test $ac_cv_type_uid_t = no; then
12307 cat >>confdefs.h <<\_ACEOF
12312 cat >>confdefs.h <<\_ACEOF
12318 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12319 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12320 if test "${ac_cv_header_time+set}" = set; then
12321 $as_echo_n "(cached) " >&6
12323 cat >conftest.$ac_ext <<_ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h. */
12329 #include <sys/types.h>
12330 #include <sys/time.h>
12336 if ((struct tm *) 0)
12342 rm -f conftest.$ac_objext
12343 if { (ac_try="$ac_compile"
12344 case "(($ac_try" in
12345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12346 *) ac_try_echo
=$ac_try;;
12348 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12349 $as_echo "$ac_try_echo") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1
>conftest.err
12354 cat conftest.err
>&5
12355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.
$ac_objext; then
12360 ac_cv_header_time
=yes
12362 $as_echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.
$ac_ext >&5
12365 ac_cv_header_time
=no
12368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12370 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12371 $as_echo "$ac_cv_header_time" >&6; }
12372 if test $ac_cv_header_time = yes; then
12374 cat >>confdefs.h
<<\_ACEOF
12375 #define TIME_WITH_SYS_TIME 1
12380 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
12381 $as_echo_n "checking for ino_t... " >&6; }
12382 if test "${ac_cv_type_ino_t+set}" = set; then
12383 $as_echo_n "(cached) " >&6
12385 ac_cv_type_ino_t
=no
12386 cat >conftest.
$ac_ext <<_ACEOF
12389 cat confdefs.h
>>conftest.
$ac_ext
12390 cat >>conftest.
$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 $ac_includes_default
12396 if (sizeof (ino_t))
12402 rm -f conftest.
$ac_objext
12403 if { (ac_try
="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12409 $as_echo "$ac_try_echo") >&5
12410 (eval "$ac_compile") 2>conftest.er1
12412 grep -v '^ *+' conftest.er1 >conftest.err
12414 cat conftest.err >&5
12415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); } && {
12417 test -z "$ac_c_werror_flag" ||
12418 test ! -s conftest.err
12419 } && test -s conftest.$ac_objext; then
12420 cat >conftest.$ac_ext <<_ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 $ac_includes_default
12430 if (sizeof ((ino_t)))
12436 rm -f conftest.$ac_objext
12437 if { (ac_try="$ac_compile"
12438 case "(($ac_try" in
12439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12440 *) ac_try_echo
=$ac_try;;
12442 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12443 $as_echo "$ac_try_echo") >&5
12444 (eval "$ac_compile") 2>conftest.er1
12446 grep -v '^ *+' conftest.er1
>conftest.err
12448 cat conftest.err
>&5
12449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } && {
12451 test -z "$ac_c_werror_flag" ||
12452 test ! -s conftest.err
12453 } && test -s conftest.
$ac_objext; then
12456 $as_echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.
$ac_ext >&5
12459 ac_cv_type_ino_t
=yes
12462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12464 $as_echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.
$ac_ext >&5
12470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12472 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12473 $as_echo "$ac_cv_type_ino_t" >&6; }
12474 if test "x$ac_cv_type_ino_t" = x
""yes; then
12478 cat >>confdefs.h
<<_ACEOF
12484 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
12485 $as_echo_n "checking for dev_t... " >&6; }
12486 if test "${ac_cv_type_dev_t+set}" = set; then
12487 $as_echo_n "(cached) " >&6
12489 ac_cv_type_dev_t
=no
12490 cat >conftest.
$ac_ext <<_ACEOF
12493 cat confdefs.h
>>conftest.
$ac_ext
12494 cat >>conftest.
$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 $ac_includes_default
12500 if (sizeof (dev_t))
12506 rm -f conftest.
$ac_objext
12507 if { (ac_try
="$ac_compile"
12508 case "(($ac_try" in
12509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12513 $as_echo "$ac_try_echo") >&5
12514 (eval "$ac_compile") 2>conftest.er1
12516 grep -v '^ *+' conftest.er1 >conftest.err
12518 cat conftest.err >&5
12519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } && {
12521 test -z "$ac_c_werror_flag" ||
12522 test ! -s conftest.err
12523 } && test -s conftest.$ac_objext; then
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 $ac_includes_default
12534 if (sizeof ((dev_t)))
12540 rm -f conftest.$ac_objext
12541 if { (ac_try="$ac_compile"
12542 case "(($ac_try" in
12543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12544 *) ac_try_echo
=$ac_try;;
12546 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12547 $as_echo "$ac_try_echo") >&5
12548 (eval "$ac_compile") 2>conftest.er1
12550 grep -v '^ *+' conftest.er1
>conftest.err
12552 cat conftest.err
>&5
12553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } && {
12555 test -z "$ac_c_werror_flag" ||
12556 test ! -s conftest.err
12557 } && test -s conftest.
$ac_objext; then
12560 $as_echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.
$ac_ext >&5
12563 ac_cv_type_dev_t
=yes
12566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12568 $as_echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.
$ac_ext >&5
12574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12576 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12577 $as_echo "$ac_cv_type_dev_t" >&6; }
12578 if test "x$ac_cv_type_dev_t" = x
""yes; then
12582 cat >>confdefs.h
<<_ACEOF
12583 #define dev_t unsigned
12589 { $as_echo "$as_me:$LINENO: checking for rlim_t" >&5
12590 $as_echo_n "checking for rlim_t... " >&6; }
12591 if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12592 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12593 $as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
12595 cat >conftest.
$ac_ext <<_ACEOF
12598 cat confdefs.h
>>conftest.
$ac_ext
12599 cat >>conftest.
$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12602 #include <sys/types.h>
12604 # include <stdlib.h>
12605 # include <stddef.h>
12607 #ifdef HAVE_SYS_RESOURCE_H
12608 # include <sys/resource.h>
12612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12613 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
12614 ac_cv_type_rlim_t
=yes
12616 ac_cv_type_rlim_t
=no
12620 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12621 $as_echo "$ac_cv_type_rlim_t" >&6; }
12623 if test $ac_cv_type_rlim_t = no
; then
12624 cat >> confdefs.h
<<\EOF
12625 #define rlim_t unsigned long
12629 { $as_echo "$as_me:$LINENO: checking for stack_t" >&5
12630 $as_echo_n "checking for stack_t... " >&6; }
12631 if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
12632 { $as_echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12633 $as_echo "(cached) $ac_cv_type_stack_t" >&6; }
12635 cat >conftest.
$ac_ext <<_ACEOF
12638 cat confdefs.h
>>conftest.
$ac_ext
12639 cat >>conftest.
$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12642 #include <sys/types.h>
12644 # include <stdlib.h>
12645 # include <stddef.h>
12647 #include <signal.h>
12650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12651 $EGREP "stack_t" >/dev
/null
2>&1; then
12652 ac_cv_type_stack_t
=yes
12654 ac_cv_type_stack_t
=no
12658 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12659 $as_echo "$ac_cv_type_stack_t" >&6; }
12661 if test $ac_cv_type_stack_t = no
; then
12662 cat >> confdefs.h
<<\EOF
12663 #define stack_t struct sigaltstack
12667 { $as_echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12668 $as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
12669 cat >conftest.
$ac_ext <<_ACEOF
12672 cat confdefs.h
>>conftest.
$ac_ext
12673 cat >>conftest.
$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 #include <sys/types.h>
12678 # include <stdlib.h>
12679 # include <stddef.h>
12681 #include <signal.h>
12682 #include "confdefs.h"
12687 stack_t sigstk; sigstk.ss_base = 0;
12692 rm -f conftest.
$ac_objext
12693 if { (ac_try
="$ac_compile"
12694 case "(($ac_try" in
12695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12696 *) ac_try_echo=$ac_try;;
12698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12699 $as_echo "$ac_try_echo") >&5
12700 (eval "$ac_compile") 2>conftest.er1
12702 grep -v '^ *+' conftest.er1 >conftest.err
12704 cat conftest.err >&5
12705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } && {
12707 test -z "$ac_c_werror_flag" ||
12708 test ! -s conftest.err
12709 } && test -s conftest.$ac_objext; then
12710 { $as_echo "$as_me:$LINENO: result: yes" >&5
12711 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
12712 #define HAVE_SS_BASE 1
12716 $as_echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 { $as_echo "$as_me:$LINENO: result: no" >&5
12720 $as_echo "no" >&6; }
12723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726 { $as_echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12727 $as_echo_n "checking --with-tlib argument... " >&6; }
12729 # Check whether --with-tlib was given.
12730 if test "${with_tlib+set}" = set; then
12731 withval=$with_tlib;
12734 if test -n "$with_tlib"; then
12735 { $as_echo "$as_me:$LINENO: result: $with_tlib" >&5
12736 $as_echo "$with_tlib" >&6; }
12737 LIBS="$LIBS -l$with_tlib"
12738 { $as_echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12739 $as_echo_n "checking for linking with $with_tlib library... " >&6; }
12740 cat >conftest.$ac_ext <<_ACEOF
12743 cat confdefs.h >>conftest.$ac_ext
12744 cat >>conftest.$ac_ext <<_ACEOF
12745 /* end confdefs.h. */
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (ac_try="$ac_link"
12757 case "(($ac_try" in
12758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12759 *) ac_try_echo
=$ac_try;;
12761 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12762 $as_echo "$ac_try_echo") >&5
12763 (eval "$ac_link") 2>conftest.er1
12765 grep -v '^ *+' conftest.er1
>conftest.err
12767 cat conftest.err
>&5
12768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } && {
12770 test -z "$ac_c_werror_flag" ||
12771 test ! -s conftest.err
12772 } && test -s conftest
$ac_exeext && {
12773 test "$cross_compiling" = yes ||
12774 $as_test_x conftest
$ac_exeext
12776 { $as_echo "$as_me:$LINENO: result: OK" >&5
12777 $as_echo "OK" >&6; }
12779 $as_echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.
$ac_ext >&5
12782 { { $as_echo "$as_me:$LINENO: error: FAILED" >&5
12783 $as_echo "$as_me: error: FAILED" >&2;}
12784 { (exit 1); exit 1; }; }
12787 rm -rf conftest.dSYM
12788 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12789 conftest
$ac_exeext conftest.
$ac_ext
12792 { $as_echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12793 $as_echo "empty: automatic terminal library selection" >&6; }
12794 case "`uname -s 2>/dev/null`" in
12795 OSF1|SCO_SV
) tlibs
="ncurses curses termlib termcap";;
12796 *) tlibs
="ncurses termlib termcap curses";;
12798 for libname
in $tlibs; do
12800 as_ac_Lib
=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12801 { $as_echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12802 $as_echo_n "checking for tgetent in -l${libname}... " >&6; }
12803 if { as_var
=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
12804 $as_echo_n "(cached) " >&6
12806 ac_check_lib_save_LIBS
=$LIBS
12807 LIBS
="-l${libname} $LIBS"
12808 cat >conftest.
$ac_ext <<_ACEOF
12811 cat confdefs.h
>>conftest.
$ac_ext
12812 cat >>conftest.
$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12815 /* Override any GCC internal prototype to avoid an error.
12816 Use char because int might match the return type of a GCC
12817 builtin and then its argument prototype would still apply. */
12830 rm -f conftest.
$ac_objext conftest
$ac_exeext
12831 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
12840 grep -v '^ *+' conftest.er1 >conftest.err
12842 cat conftest.err >&5
12843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } && {
12845 test -z "$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12847 } && test -s conftest$ac_exeext && {
12848 test "$cross_compiling" = yes ||
12849 $as_test_x conftest$ac_exeext
12851 eval "$as_ac_Lib=yes"
12853 $as_echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12856 eval "$as_ac_Lib=no"
12859 rm -rf conftest.dSYM
12860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12861 conftest$ac_exeext conftest.$ac_ext
12862 LIBS=$ac_check_lib_save_LIBS
12864 ac_res=`eval 'as_val=${'$as_ac_Lib'}
12865 $as_echo "$as_val"'`
12866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12867 $as_echo "$ac_res" >&6; }
12868 as_val=`eval 'as_val=${'$as_ac_Lib'}
12869 $as_echo "$as_val"'`
12870 if test "x$as_val" = x""yes; then
12871 cat >>confdefs.h <<_ACEOF
12872 #define `$as_echo "HAVE_LIB${libname}" |
$as_tr_cpp` 1
12875 LIBS="-l${libname} $LIBS"
12879 if test "x$olibs" != "x$LIBS"; then
12880 if test "$cross_compiling" = yes; then
12883 cat >conftest.$ac_ext <<_ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12890 #ifdef HAVE_TERMCAP_H
12891 # include <termcap.h>
12894 # include <stdlib.h>
12895 # include <stddef.h>
12897 main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
12899 rm -f conftest$ac_exeext
12900 if { (ac_try="$ac_link"
12901 case "(($ac_try" in
12902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12903 *) ac_try_echo
=$ac_try;;
12905 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12906 $as_echo "$ac_try_echo") >&5
12907 (eval "$ac_link") 2>&5
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12911 { (case "(($ac_try" in
12912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12916 $as_echo "$ac_try_echo") >&5
12917 (eval "$ac_try") 2>&5
12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12923 $as_echo "$as_me: program exited with status $ac_status" >&5
12924 $as_echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12927 ( exit $ac_status )
12930 rm -rf conftest.dSYM
12931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12935 if test "$res" = "OK"; then
12938 { $as_echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12939 $as_echo "$libname library is not usable" >&6; }
12943 if test "x$olibs" = "x$LIBS"; then
12944 { $as_echo "$as_me:$LINENO: result: no terminal library found" >&5
12945 $as_echo "no terminal library found" >&6; }
12949 if test "x$olibs" = "x$LIBS"; then
12950 { $as_echo "$as_me:$LINENO: checking for tgetent()" >&5
12951 $as_echo_n "checking for tgetent()... " >&6; }
12952 cat >conftest.$ac_ext <<_ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12962 char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (ac_try="$ac_link"
12969 case "(($ac_try" in
12970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12971 *) ac_try_echo
=$ac_try;;
12973 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12974 $as_echo "$ac_try_echo") >&5
12975 (eval "$ac_link") 2>conftest.er1
12977 grep -v '^ *+' conftest.er1
>conftest.err
12979 cat conftest.err
>&5
12980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest
$ac_exeext && {
12985 test "$cross_compiling" = yes ||
12986 $as_test_x conftest
$ac_exeext
12988 { $as_echo "$as_me:$LINENO: result: yes" >&5
12989 $as_echo "yes" >&6; }
12991 $as_echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.
$ac_ext >&5
12994 { { $as_echo "$as_me:$LINENO: error: NOT FOUND!
12995 You need to install a terminal library; for example ncurses.
12996 Or specify the name of the library with --with-tlib." >&5
12997 $as_echo "$as_me: error: NOT FOUND!
12998 You need to install a terminal library; for example ncurses.
12999 Or specify the name of the library with --with-tlib." >&2;}
13000 { (exit 1); exit 1; }; }
13003 rm -rf conftest.dSYM
13004 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13005 conftest
$ac_exeext conftest.
$ac_ext
13008 { $as_echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
13009 $as_echo_n "checking whether we talk terminfo... " >&6; }
13010 if test "${vim_cv_terminfo+set}" = set; then
13011 $as_echo_n "(cached) " >&6
13014 if test "$cross_compiling" = yes; then
13016 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_terminfo'" >&5
13017 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_terminfo'" >&2;}
13018 { (exit 1); exit 1; }; }
13021 cat >conftest.
$ac_ext <<_ACEOF
13023 #include "confdefs.h"
13024 #ifdef HAVE_TERMCAP_H
13025 # include <termcap.h>
13027 #ifdef HAVE_STRING_H
13028 # include <string.h>
13031 # include <stdlib.h>
13032 # include <stddef.h>
13035 {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
13038 rm -f conftest
$ac_exeext
13039 if { (ac_try
="$ac_link"
13040 case "(($ac_try" in
13041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13042 *) ac_try_echo=$ac_try;;
13044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13045 $as_echo "$ac_try_echo") >&5
13046 (eval "$ac_link") 2>&5
13048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13052 *) ac_try_echo
=$ac_try;;
13054 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13055 $as_echo "$ac_try_echo") >&5
13056 (eval "$ac_try") 2>&5
13058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13064 $as_echo "$as_me: program exited with status $ac_status" >&5
13065 $as_echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.
$ac_ext >&5
13068 ( exit $ac_status )
13070 vim_cv_terminfo
=yes
13073 rm -rf conftest.dSYM
13074 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13080 { $as_echo "$as_me:$LINENO: result: $vim_cv_terminfo" >&5
13081 $as_echo "$vim_cv_terminfo" >&6; }
13083 if test "x$vim_cv_terminfo" = "xyes" ; then
13084 cat >>confdefs.h
<<\_ACEOF
13090 if test "x$olibs" != "x$LIBS"; then
13091 { $as_echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
13092 $as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
13093 if test "${vim_cv_tgent+set}" = set; then
13094 $as_echo_n "(cached) " >&6
13097 if test "$cross_compiling" = yes; then
13099 { { $as_echo "$as_me:$LINENO: error: failed to compile test program." >&5
13100 $as_echo "$as_me: error: failed to compile test program." >&2;}
13101 { (exit 1); exit 1; }; }
13104 cat >conftest.
$ac_ext <<_ACEOF
13106 #include "confdefs.h"
13107 #ifdef HAVE_TERMCAP_H
13108 # include <termcap.h>
13111 # include <stdlib.h>
13112 # include <stddef.h>
13115 {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
13118 rm -f conftest
$ac_exeext
13119 if { (ac_try
="$ac_link"
13120 case "(($ac_try" in
13121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13125 $as_echo "$ac_try_echo") >&5
13126 (eval "$ac_link") 2>&5
13128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13130 { (case "(($ac_try" in
13131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13132 *) ac_try_echo
=$ac_try;;
13134 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13135 $as_echo "$ac_try_echo") >&5
13136 (eval "$ac_try") 2>&5
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; }; then
13144 $as_echo "$as_me: program exited with status $ac_status" >&5
13145 $as_echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.
$ac_ext >&5
13148 ( exit $ac_status )
13150 vim_cv_tgent
=non-zero
13153 rm -rf conftest.dSYM
13154 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13160 { $as_echo "$as_me:$LINENO: result: $vim_cv_tgent" >&5
13161 $as_echo "$vim_cv_tgent" >&6; }
13163 if test "x$vim_cv_tgent" = "xzero" ; then
13164 cat >>confdefs.h
<<\_ACEOF
13165 #define TGETENT_ZERO_ERR 0
13171 { $as_echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
13172 $as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
13173 cat >conftest.
$ac_ext <<_ACEOF
13176 cat confdefs.h
>>conftest.
$ac_ext
13177 cat >>conftest.
$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13180 #ifdef HAVE_TERMCAP_H
13181 # include <termcap.h>
13192 rm -f conftest.
$ac_objext conftest
$ac_exeext
13193 if { (ac_try
="$ac_link"
13194 case "(($ac_try" in
13195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13199 $as_echo "$ac_try_echo") >&5
13200 (eval "$ac_link") 2>conftest.er1
13202 grep -v '^ *+' conftest.er1 >conftest.err
13204 cat conftest.err >&5
13205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest$ac_exeext && {
13210 test "$cross_compiling" = yes ||
13211 $as_test_x conftest$ac_exeext
13213 { $as_echo "$as_me:$LINENO: result: yes" >&5
13214 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13215 #define HAVE_OSPEED 1
13219 $as_echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13222 { $as_echo "$as_me:$LINENO: result: no" >&5
13223 $as_echo "no" >&6; }
13224 { $as_echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
13225 $as_echo_n "checking whether ospeed can be extern... " >&6; }
13226 cat >conftest.$ac_ext <<_ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13233 #ifdef HAVE_TERMCAP_H
13234 # include <termcap.h>
13236 extern short ospeed;
13246 rm -f conftest.$ac_objext conftest$ac_exeext
13247 if { (ac_try="$ac_link"
13248 case "(($ac_try" in
13249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13250 *) ac_try_echo
=$ac_try;;
13252 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13253 $as_echo "$ac_try_echo") >&5
13254 (eval "$ac_link") 2>conftest.er1
13256 grep -v '^ *+' conftest.er1
>conftest.err
13258 cat conftest.err
>&5
13259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } && {
13261 test -z "$ac_c_werror_flag" ||
13262 test ! -s conftest.err
13263 } && test -s conftest
$ac_exeext && {
13264 test "$cross_compiling" = yes ||
13265 $as_test_x conftest
$ac_exeext
13267 { $as_echo "$as_me:$LINENO: result: yes" >&5
13268 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13269 #define OSPEED_EXTERN 1
13273 $as_echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.
$ac_ext >&5
13276 { $as_echo "$as_me:$LINENO: result: no" >&5
13277 $as_echo "no" >&6; }
13280 rm -rf conftest.dSYM
13281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13282 conftest
$ac_exeext conftest.
$ac_ext
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: checking whether termcap.h contains UP, BC and PC" >&5
13291 $as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
13292 cat >conftest.
$ac_ext <<_ACEOF
13295 cat confdefs.h
>>conftest.
$ac_ext
13296 cat >>conftest.
$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13299 #ifdef HAVE_TERMCAP_H
13300 # include <termcap.h>
13306 if (UP == 0 && BC == 0) PC = 1
13311 rm -f conftest.
$ac_objext conftest
$ac_exeext
13312 if { (ac_try
="$ac_link"
13313 case "(($ac_try" in
13314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13318 $as_echo "$ac_try_echo") >&5
13319 (eval "$ac_link") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1 >conftest.err
13323 cat conftest.err >&5
13324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } && {
13326 test -z "$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13328 } && test -s conftest$ac_exeext && {
13329 test "$cross_compiling" = yes ||
13330 $as_test_x conftest$ac_exeext
13332 { $as_echo "$as_me:$LINENO: result: yes" >&5
13333 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13334 #define HAVE_UP_BC_PC 1
13338 $as_echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 { $as_echo "$as_me:$LINENO: result: no" >&5
13342 $as_echo "no" >&6; }
13343 { $as_echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
13344 $as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
13345 cat >conftest.$ac_ext <<_ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13352 #ifdef HAVE_TERMCAP_H
13353 # include <termcap.h>
13355 extern char *UP, *BC, PC;
13360 if (UP == 0 && BC == 0) PC = 1
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (ac_try="$ac_link"
13367 case "(($ac_try" in
13368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13369 *) ac_try_echo
=$ac_try;;
13371 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13372 $as_echo "$ac_try_echo") >&5
13373 (eval "$ac_link") 2>conftest.er1
13375 grep -v '^ *+' conftest.er1
>conftest.err
13377 cat conftest.err
>&5
13378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && {
13380 test -z "$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 } && test -s conftest
$ac_exeext && {
13383 test "$cross_compiling" = yes ||
13384 $as_test_x conftest
$ac_exeext
13386 { $as_echo "$as_me:$LINENO: result: yes" >&5
13387 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
13388 #define UP_BC_PC_EXTERN 1
13392 $as_echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.
$ac_ext >&5
13395 { $as_echo "$as_me:$LINENO: result: no" >&5
13396 $as_echo "no" >&6; }
13399 rm -rf conftest.dSYM
13400 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13401 conftest
$ac_exeext conftest.
$ac_ext
13405 rm -rf conftest.dSYM
13406 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13407 conftest
$ac_exeext conftest.
$ac_ext
13409 { $as_echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
13410 $as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
13411 cat >conftest.
$ac_ext <<_ACEOF
13414 cat confdefs.h
>>conftest.
$ac_ext
13415 cat >>conftest.
$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13418 #ifdef HAVE_TERMCAP_H
13419 # include <termcap.h>
13425 extern int xx(); tputs("test", 1, (outfuntype)xx)
13430 rm -f conftest.
$ac_objext
13431 if { (ac_try
="$ac_compile"
13432 case "(($ac_try" in
13433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13437 $as_echo "$ac_try_echo") >&5
13438 (eval "$ac_compile") 2>conftest.er1
13440 grep -v '^ *+' conftest.er1 >conftest.err
13442 cat conftest.err >&5
13443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest.$ac_objext; then
13448 { $as_echo "$as_me:$LINENO: result: yes" >&5
13449 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13450 #define HAVE_OUTFUNTYPE 1
13454 $as_echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 { $as_echo "$as_me:$LINENO: result: no" >&5
13458 $as_echo "no" >&6; }
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463 { $as_echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
13464 $as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13472 #include <sys/types.h>
13473 #include <sys/time.h>
13474 #include <sys/select.h>
13483 rm -f conftest.$ac_objext
13484 if { (ac_try="$ac_compile"
13485 case "(($ac_try" in
13486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13487 *) ac_try_echo
=$ac_try;;
13489 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13490 $as_echo "$ac_try_echo") >&5
13491 (eval "$ac_compile") 2>conftest.er1
13493 grep -v '^ *+' conftest.er1
>conftest.err
13495 cat conftest.err
>&5
13496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } && {
13498 test -z "$ac_c_werror_flag" ||
13499 test ! -s conftest.err
13500 } && test -s conftest.
$ac_objext; then
13501 { $as_echo "$as_me:$LINENO: result: yes" >&5
13502 $as_echo "yes" >&6; }
13503 cat >>confdefs.h
<<\_ACEOF
13504 #define SYS_SELECT_WITH_SYS_TIME 1
13508 $as_echo "$as_me: failed program was:" >&5
13509 sed 's/^/| /' conftest.
$ac_ext >&5
13511 { $as_echo "$as_me:$LINENO: result: no" >&5
13512 $as_echo "no" >&6; }
13515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13518 { $as_echo "$as_me:$LINENO: checking for /dev/ptc" >&5
13519 $as_echo_n "checking for /dev/ptc... " >&6; }
13520 if test -r /dev
/ptc
; then
13521 cat >>confdefs.h
<<\_ACEOF
13522 #define HAVE_DEV_PTC 1
13525 { $as_echo "$as_me:$LINENO: result: yes" >&5
13526 $as_echo "yes" >&6; }
13528 { $as_echo "$as_me:$LINENO: result: no" >&5
13529 $as_echo "no" >&6; }
13532 { $as_echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
13533 $as_echo_n "checking for SVR4 ptys... " >&6; }
13534 if test -c /dev
/ptmx
; then
13535 cat >conftest.
$ac_ext <<_ACEOF
13538 cat confdefs.h
>>conftest.
$ac_ext
13539 cat >>conftest.
$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13545 ptsname(0);grantpt(0);unlockpt(0);
13550 rm -f conftest.
$ac_objext conftest
$ac_exeext
13551 if { (ac_try
="$ac_link"
13552 case "(($ac_try" in
13553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13554 *) ac_try_echo=$ac_try;;
13556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13557 $as_echo "$ac_try_echo") >&5
13558 (eval "$ac_link") 2>conftest.er1
13560 grep -v '^ *+' conftest.er1 >conftest.err
13562 cat conftest.err >&5
13563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } && {
13565 test -z "$ac_c_werror_flag" ||
13566 test ! -s conftest.err
13567 } && test -s conftest$ac_exeext && {
13568 test "$cross_compiling" = yes ||
13569 $as_test_x conftest$ac_exeext
13571 { $as_echo "$as_me:$LINENO: result: yes" >&5
13572 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
13573 #define HAVE_SVR4_PTYS 1
13577 $as_echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13580 { $as_echo "$as_me:$LINENO: result: no" >&5
13581 $as_echo "no" >&6; }
13584 rm -rf conftest.dSYM
13585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13586 conftest$ac_exeext conftest.$ac_ext
13588 { $as_echo "$as_me:$LINENO: result: no" >&5
13589 $as_echo "no" >&6; }
13592 { $as_echo "$as_me:$LINENO: checking for ptyranges" >&5
13593 $as_echo_n "checking for ptyranges... " >&6; }
13594 if test -d /dev/ptym ; then
13599 cat >conftest.$ac_ext <<_ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13611 $EGREP "yes" >/dev/null 2>&1; then
13612 ptys=`echo /dev
/ptyp??
`
13614 ptys=`echo $pdir/pty??
`
13618 if test "$ptys" != "$pdir/pty??" ; then
13619 p0=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\).$/\1/g' |
sort -u |
tr -d '\012'`
13620 p1=`echo $ptys |
tr ' ' '\012' |
sed -e 's/^.*\(.\)$/\1/g' |
sort -u |
tr -d '\012'`
13621 cat >>confdefs.h <<_ACEOF
13622 #define PTYRANGE0 "$p0"
13625 cat >>confdefs.h <<_ACEOF
13626 #define PTYRANGE1 "$p1"
13629 { $as_echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13630 $as_echo "$p0 / $p1" >&6; }
13632 { $as_echo "$as_me:$LINENO: result: don't know" >&5
13633 $as_echo "don't know" >&6; }
13637 { $as_echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13638 $as_echo_n "checking default tty permissions/group... " >&6; }
13639 if test "${vim_cv_tty_group+set}" = set; then
13640 $as_echo_n "(cached) " >&6
13643 if test "$cross_compiling" = yes; then
13645 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&5
13646 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" >&2;}
13647 { (exit 1); exit 1; }; }
13650 cat >conftest.$ac_ext <<_ACEOF
13652 #include "confdefs.h"
13653 #include <sys/types.h>
13655 # include <stdlib.h>
13656 # include <stddef.h>
13658 #ifdef HAVE_UNISTD_H
13659 #include <unistd.h>
13661 #include <sys/stat.h>
13666 char *x,*ttyname();
13670 if (!(x = ttyname(0))) exit(1);
13671 if (stat(x, &sb)) exit(1);
13673 if (om & 002) exit(0);
13674 m = system("mesg y");
13675 if (m == -1 || m == 127) exit(1);
13676 if (stat(x, &sb)) exit(1);
13678 if (chmod(x, om)) exit(1);
13679 if (m & 002) exit(0);
13680 if (sb.st_gid == getgid()) exit(1);
13681 if (!(fp=fopen("conftest_grp", "w")))
13683 fprintf(fp, "%d\n", sb.st_gid);
13689 rm -f conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13693 *) ac_try_echo
=$ac_try;;
13695 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13696 $as_echo "$ac_try_echo") >&5
13697 (eval "$ac_link") 2>&5
13699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13701 { (case "(($ac_try" in
13702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13706 $as_echo "$ac_try_echo") >&5
13707 (eval "$ac_try") 2>&5
13709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13712 if test -f conftest_grp; then
13713 vim_cv_tty_group=`cat conftest_grp
`
13714 if test "x$vim_cv_tty_mode" = "x" ; then
13715 vim_cv_tty_mode=0620
13717 { $as_echo "$as_me:$LINENO: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
13718 $as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
13720 vim_cv_tty_group=world
13721 { $as_echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13722 $as_echo "ptys are world accessable" >&6; }
13726 $as_echo "$as_me: program exited with status $ac_status" >&5
13727 $as_echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13730 ( exit $ac_status )
13732 vim_cv_tty_group=world
13733 { $as_echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13734 $as_echo "can't determine - assume ptys are world accessable" >&6; }
13737 rm -rf conftest.dSYM
13738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13744 { $as_echo "$as_me:$LINENO: result: $vim_cv_tty_group" >&5
13745 $as_echo "$vim_cv_tty_group" >&6; }
13748 if test "x$vim_cv_tty_group" != "xworld" ; then
13749 cat >>confdefs.h <<_ACEOF
13750 #define PTYGROUP $vim_cv_tty_group
13753 if test "x$vim_cv_tty_mode" = "x" ; then
13754 { { $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
13755 $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;}
13756 { (exit 1); exit 1; }; }
13758 cat >>confdefs.h <<\_ACEOF
13759 #define PTYMODE 0620
13766 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13767 $as_echo_n "checking return type of signal handlers... " >&6; }
13768 if test "${ac_cv_type_signal+set}" = set; then
13769 $as_echo_n "(cached) " >&6
13771 cat >conftest.$ac_ext <<_ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 #include <sys/types.h>
13778 #include <signal.h>
13783 return *(signal (0, 0)) (0) == 1;
13788 rm -f conftest.$ac_objext
13789 if { (ac_try="$ac_compile"
13790 case "(($ac_try" in
13791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13792 *) ac_try_echo
=$ac_try;;
13794 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13795 $as_echo "$ac_try_echo") >&5
13796 (eval "$ac_compile") 2>conftest.er1
13798 grep -v '^ *+' conftest.er1
>conftest.err
13800 cat conftest.err
>&5
13801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_c_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest.
$ac_objext; then
13806 ac_cv_type_signal
=int
13808 $as_echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.
$ac_ext >&5
13811 ac_cv_type_signal
=void
13814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13816 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13817 $as_echo "$ac_cv_type_signal" >&6; }
13819 cat >>confdefs.h
<<_ACEOF
13820 #define RETSIGTYPE $ac_cv_type_signal
13825 if test $ac_cv_type_signal = void
; then
13826 cat >>confdefs.h
<<\_ACEOF
13827 #define SIGRETURN return
13831 cat >>confdefs.h
<<\_ACEOF
13832 #define SIGRETURN return 0
13837 { $as_echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13838 $as_echo_n "checking for struct sigcontext... " >&6; }
13839 cat >conftest.
$ac_ext <<_ACEOF
13842 cat confdefs.h
>>conftest.
$ac_ext
13843 cat >>conftest.
$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13846 #include <signal.h>
13849 struct sigcontext *scont;
13850 scont = (struct sigcontext *)0;
13861 rm -f conftest.
$ac_objext
13862 if { (ac_try
="$ac_compile"
13863 case "(($ac_try" in
13864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13868 $as_echo "$ac_try_echo") >&5
13869 (eval "$ac_compile") 2>conftest.er1
13871 grep -v '^ *+' conftest.er1 >conftest.err
13873 cat conftest.err >&5
13874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } && {
13876 test -z "$ac_c_werror_flag" ||
13877 test ! -s conftest.err
13878 } && test -s conftest.$ac_objext; then
13879 { $as_echo "$as_me:$LINENO: result: yes" >&5
13880 $as_echo "yes" >&6; }
13881 cat >>confdefs.h <<\_ACEOF
13882 #define HAVE_SIGCONTEXT 1
13886 $as_echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13889 { $as_echo "$as_me:$LINENO: result: no" >&5
13890 $as_echo "no" >&6; }
13893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13895 { $as_echo "$as_me:$LINENO: checking getcwd implementation is broken" >&5
13896 $as_echo_n "checking getcwd implementation is broken... " >&6; }
13897 if test "${vim_cv_getcwd_broken+set}" = set; then
13898 $as_echo_n "(cached) " >&6
13901 if test "$cross_compiling" = yes; then
13903 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&5
13904 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_getcwd_broken'" >&2;}
13905 { (exit 1); exit 1; }; }
13908 cat >conftest.$ac_ext <<_ACEOF
13910 #include "confdefs.h"
13911 #ifdef HAVE_UNISTD_H
13912 #include <unistd.h>
13914 char *dagger[] = { "IFS=pwd", 0 };
13918 extern char **environ;
13920 return getcwd(buffer, 500) ? 0 : 1;
13924 rm -f conftest$ac_exeext
13925 if { (ac_try="$ac_link"
13926 case "(($ac_try" in
13927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13928 *) ac_try_echo
=$ac_try;;
13930 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
13931 $as_echo "$ac_try_echo") >&5
13932 (eval "$ac_link") 2>&5
13934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13936 { (case "(($ac_try" in
13937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13941 $as_echo "$ac_try_echo") >&5
13942 (eval "$ac_try") 2>&5
13944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13947 vim_cv_getcwd_broken=no
13950 $as_echo "$as_me: program exited with status $ac_status" >&5
13951 $as_echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ( exit $ac_status )
13956 vim_cv_getcwd_broken=yes
13959 rm -rf conftest.dSYM
13960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13966 { $as_echo "$as_me:$LINENO: result: $vim_cv_getcwd_broken" >&5
13967 $as_echo "$vim_cv_getcwd_broken" >&6; }
13969 if test "x$vim_cv_getcwd_broken" = "xyes" ; then
13970 cat >>confdefs.h <<\_ACEOF
13971 #define BAD_GETCWD 1
14022 for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
14023 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
14024 memset nanosleep opendir putenv qsort readlink select setenv \
14025 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
14026 sigvec strcasecmp strerror strftime stricmp strncasecmp \
14027 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
14028 usleep utime utimes
14030 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
14031 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14032 $as_echo_n "checking for $ac_func... " >&6; }
14033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14034 $as_echo_n "(cached) " >&6
14036 cat >conftest.$ac_ext <<_ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h. */
14042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14044 #define $ac_func innocuous_$ac_func
14046 /* System header to define __stub macros and hopefully few prototypes,
14047 which can conflict with char $ac_func (); below.
14048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14049 <limits.h> exists even on freestanding compilers. */
14052 # include <limits.h>
14054 # include <assert.h>
14059 /* Override any GCC internal prototype to avoid an error.
14060 Use char because int might match the return type of a GCC
14061 builtin and then its argument prototype would still apply. */
14066 /* The GNU C library defines this for functions which it implements
14067 to always fail with ENOSYS. Some functions are actually named
14068 something starting with __ and the normal name is an alias. */
14069 #if defined __stub_$ac_func || defined __stub___$ac_func
14076 return $ac_func ();
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14085 *) ac_try_echo
=$ac_try;;
14087 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14088 $as_echo "$ac_try_echo") >&5
14089 (eval "$ac_link") 2>conftest.er1
14091 grep -v '^ *+' conftest.er1
>conftest.err
14093 cat conftest.err
>&5
14094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } && {
14096 test -z "$ac_c_werror_flag" ||
14097 test ! -s conftest.err
14098 } && test -s conftest
$ac_exeext && {
14099 test "$cross_compiling" = yes ||
14100 $as_test_x conftest
$ac_exeext
14102 eval "$as_ac_var=yes"
14104 $as_echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.
$ac_ext >&5
14107 eval "$as_ac_var=no"
14110 rm -rf conftest.dSYM
14111 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14112 conftest
$ac_exeext conftest.
$ac_ext
14114 ac_res
=`eval 'as_val=${'$as_ac_var'}
14115 $as_echo "$as_val"'`
14116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14117 $as_echo "$ac_res" >&6; }
14118 as_val
=`eval 'as_val=${'$as_ac_var'}
14119 $as_echo "$as_val"'`
14120 if test "x$as_val" = x
""yes; then
14121 cat >>confdefs.h
<<_ACEOF
14122 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14129 { $as_echo "$as_me:$LINENO: checking for st_blksize" >&5
14130 $as_echo_n "checking for st_blksize... " >&6; }
14131 cat >conftest.
$ac_ext <<_ACEOF
14134 cat confdefs.h
>>conftest.
$ac_ext
14135 cat >>conftest.
$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 #include <sys/types.h>
14138 #include <sys/stat.h>
14146 n = (int)st.st_blksize;
14151 rm -f conftest.
$ac_objext
14152 if { (ac_try
="$ac_compile"
14153 case "(($ac_try" in
14154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14158 $as_echo "$ac_try_echo") >&5
14159 (eval "$ac_compile") 2>conftest.er1
14161 grep -v '^ *+' conftest.er1 >conftest.err
14163 cat conftest.err >&5
14164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } && {
14166 test -z "$ac_c_werror_flag" ||
14167 test ! -s conftest.err
14168 } && test -s conftest.$ac_objext; then
14169 { $as_echo "$as_me:$LINENO: result: yes" >&5
14170 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14171 #define HAVE_ST_BLKSIZE 1
14175 $as_echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 { $as_echo "$as_me:$LINENO: result: no" >&5
14179 $as_echo "no" >&6; }
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14184 { $as_echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
14185 $as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
14186 if test "${vim_cv_stat_ignores_slash+set}" = set; then
14187 $as_echo_n "(cached) " >&6
14190 if test "$cross_compiling" = yes; then
14192 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&5
14193 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_stat_ignores_slash'" >&2;}
14194 { (exit 1); exit 1; }; }
14197 cat >conftest.$ac_ext <<_ACEOF
14199 #include "confdefs.h"
14201 # include <stdlib.h>
14202 # include <stddef.h>
14204 #include <sys/types.h>
14205 #include <sys/stat.h>
14206 main() {struct stat st; exit(stat("configure/", &st) != 0); }
14209 rm -f conftest$ac_exeext
14210 if { (ac_try="$ac_link"
14211 case "(($ac_try" in
14212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14213 *) ac_try_echo
=$ac_try;;
14215 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14216 $as_echo "$ac_try_echo") >&5
14217 (eval "$ac_link") 2>&5
14219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14221 { (case "(($ac_try" in
14222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14226 $as_echo "$ac_try_echo") >&5
14227 (eval "$ac_try") 2>&5
14229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14232 vim_cv_stat_ignores_slash=yes
14235 $as_echo "$as_me: program exited with status $ac_status" >&5
14236 $as_echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 ( exit $ac_status )
14241 vim_cv_stat_ignores_slash=no
14244 rm -rf conftest.dSYM
14245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14251 { $as_echo "$as_me:$LINENO: result: $vim_cv_stat_ignores_slash" >&5
14252 $as_echo "$vim_cv_stat_ignores_slash" >&6; }
14254 if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
14255 cat >>confdefs.h <<\_ACEOF
14256 #define STAT_IGNORES_SLASH 1
14261 { $as_echo "$as_me:$LINENO: checking for iconv_open()" >&5
14262 $as_echo_n "checking for iconv_open()... " >&6; }
14264 LIBS="$LIBS -liconv"
14265 cat >conftest.$ac_ext <<_ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14272 #ifdef HAVE_ICONV_H
14273 # include <iconv.h>
14279 iconv_open("fr", "to");
14284 rm -f conftest.$ac_objext conftest$ac_exeext
14285 if { (ac_try="$ac_link"
14286 case "(($ac_try" in
14287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14288 *) ac_try_echo
=$ac_try;;
14290 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14291 $as_echo "$ac_try_echo") >&5
14292 (eval "$ac_link") 2>conftest.er1
14294 grep -v '^ *+' conftest.er1
>conftest.err
14296 cat conftest.err
>&5
14297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); } && {
14299 test -z "$ac_c_werror_flag" ||
14300 test ! -s conftest.err
14301 } && test -s conftest
$ac_exeext && {
14302 test "$cross_compiling" = yes ||
14303 $as_test_x conftest
$ac_exeext
14305 { $as_echo "$as_me:$LINENO: result: yes; with -liconv" >&5
14306 $as_echo "yes; with -liconv" >&6; }; cat >>confdefs.h
<<\_ACEOF
14307 #define HAVE_ICONV 1
14311 $as_echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.
$ac_ext >&5
14315 cat >conftest.
$ac_ext <<_ACEOF
14318 cat confdefs.h
>>conftest.
$ac_ext
14319 cat >>conftest.
$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14322 #ifdef HAVE_ICONV_H
14323 # include <iconv.h>
14329 iconv_open("fr", "to");
14334 rm -f conftest.
$ac_objext conftest
$ac_exeext
14335 if { (ac_try
="$ac_link"
14336 case "(($ac_try" in
14337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14338 *) ac_try_echo=$ac_try;;
14340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14341 $as_echo "$ac_try_echo") >&5
14342 (eval "$ac_link") 2>conftest.er1
14344 grep -v '^ *+' conftest.er1 >conftest.err
14346 cat conftest.err >&5
14347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest$ac_exeext && {
14352 test "$cross_compiling" = yes ||
14353 $as_test_x conftest$ac_exeext
14355 { $as_echo "$as_me:$LINENO: result: yes" >&5
14356 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14357 #define HAVE_ICONV 1
14361 $as_echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 { $as_echo "$as_me:$LINENO: result: no" >&5
14365 $as_echo "no" >&6; }
14368 rm -rf conftest.dSYM
14369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14370 conftest$ac_exeext conftest.$ac_ext
14373 rm -rf conftest.dSYM
14374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14375 conftest$ac_exeext conftest.$ac_ext
14378 { $as_echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
14379 $as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 #ifdef HAVE_LANGINFO_H
14388 # include <langinfo.h>
14394 char *cs = nl_langinfo(CODESET);
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14403 *) ac_try_echo
=$ac_try;;
14405 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14406 $as_echo "$ac_try_echo") >&5
14407 (eval "$ac_link") 2>conftest.er1
14409 grep -v '^ *+' conftest.er1
>conftest.err
14411 cat conftest.err
>&5
14412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest
$ac_exeext && {
14417 test "$cross_compiling" = yes ||
14418 $as_test_x conftest
$ac_exeext
14420 { $as_echo "$as_me:$LINENO: result: yes" >&5
14421 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14422 #define HAVE_NL_LANGINFO_CODESET 1
14426 $as_echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.
$ac_ext >&5
14429 { $as_echo "$as_me:$LINENO: result: no" >&5
14430 $as_echo "no" >&6; }
14433 rm -rf conftest.dSYM
14434 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14435 conftest
$ac_exeext conftest.
$ac_ext
14438 { $as_echo "$as_me:$LINENO: checking for strtod in -lm" >&5
14439 $as_echo_n "checking for strtod in -lm... " >&6; }
14440 if test "${ac_cv_lib_m_strtod+set}" = set; then
14441 $as_echo_n "(cached) " >&6
14443 ac_check_lib_save_LIBS
=$LIBS
14445 cat >conftest.
$ac_ext <<_ACEOF
14448 cat confdefs.h
>>conftest.
$ac_ext
14449 cat >>conftest.
$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14452 /* Override any GCC internal prototype to avoid an error.
14453 Use char because int might match the return type of a GCC
14454 builtin and then its argument prototype would still apply. */
14467 rm -f conftest.
$ac_objext conftest
$ac_exeext
14468 if { (ac_try
="$ac_link"
14469 case "(($ac_try" in
14470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14474 $as_echo "$ac_try_echo") >&5
14475 (eval "$ac_link") 2>conftest.er1
14477 grep -v '^ *+' conftest.er1 >conftest.err
14479 cat conftest.err >&5
14480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && {
14482 test -z "$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14484 } && test -s conftest$ac_exeext && {
14485 test "$cross_compiling" = yes ||
14486 $as_test_x conftest$ac_exeext
14488 ac_cv_lib_m_strtod=yes
14490 $as_echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_cv_lib_m_strtod=no
14496 rm -rf conftest.dSYM
14497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS
14501 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_strtod" >&5
14502 $as_echo "$ac_cv_lib_m_strtod" >&6; }
14503 if test "x$ac_cv_lib_m_strtod" = x""yes; then
14504 cat >>confdefs.h <<_ACEOF
14505 #define HAVE_LIBM 1
14512 { $as_echo "$as_me:$LINENO: checking for strtod() and other floating point functions" >&5
14513 $as_echo_n "checking for strtod() and other floating point functions... " >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14525 # include <stdlib.h>
14526 # include <stddef.h>
14533 d = strtod("1.1", &s);
14538 d = pow(1.11, 2.22);
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14552 *) ac_try_echo
=$ac_try;;
14554 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14555 $as_echo "$ac_try_echo") >&5
14556 (eval "$ac_link") 2>conftest.er1
14558 grep -v '^ *+' conftest.er1
>conftest.err
14560 cat conftest.err
>&5
14561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest
$ac_exeext && {
14566 test "$cross_compiling" = yes ||
14567 $as_test_x conftest
$ac_exeext
14569 { $as_echo "$as_me:$LINENO: result: yes" >&5
14570 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14571 #define HAVE_FLOAT_FUNCS 1
14575 $as_echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.
$ac_ext >&5
14578 { $as_echo "$as_me:$LINENO: result: no" >&5
14579 $as_echo "no" >&6; }
14582 rm -rf conftest.dSYM
14583 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14584 conftest
$ac_exeext conftest.
$ac_ext
14586 { $as_echo "$as_me:$LINENO: checking --disable-acl argument" >&5
14587 $as_echo_n "checking --disable-acl argument... " >&6; }
14588 # Check whether --enable-acl was given.
14589 if test "${enable_acl+set}" = set; then
14590 enableval
=$enable_acl;
14595 if test "$enable_acl" = "yes"; then
14596 { $as_echo "$as_me:$LINENO: result: no" >&5
14597 $as_echo "no" >&6; }
14598 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
14599 $as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
14600 if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
14601 $as_echo_n "(cached) " >&6
14603 ac_check_lib_save_LIBS
=$LIBS
14604 LIBS
="-lposix1e $LIBS"
14605 cat >conftest.
$ac_ext <<_ACEOF
14608 cat confdefs.h
>>conftest.
$ac_ext
14609 cat >>conftest.
$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14612 /* Override any GCC internal prototype to avoid an error.
14613 Use char because int might match the return type of a GCC
14614 builtin and then its argument prototype would still apply. */
14618 char acl_get_file ();
14622 return acl_get_file ();
14627 rm -f conftest.
$ac_objext conftest
$ac_exeext
14628 if { (ac_try
="$ac_link"
14629 case "(($ac_try" in
14630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14634 $as_echo "$ac_try_echo") >&5
14635 (eval "$ac_link") 2>conftest.er1
14637 grep -v '^ *+' conftest.er1 >conftest.err
14639 cat conftest.err >&5
14640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } && {
14642 test -z "$ac_c_werror_flag" ||
14643 test ! -s conftest.err
14644 } && test -s conftest$ac_exeext && {
14645 test "$cross_compiling" = yes ||
14646 $as_test_x conftest$ac_exeext
14648 ac_cv_lib_posix1e_acl_get_file=yes
14650 $as_echo "$as_me: failed program was:" >&5
14651 sed 's/^/| /' conftest.$ac_ext >&5
14653 ac_cv_lib_posix1e_acl_get_file=no
14656 rm -rf conftest.dSYM
14657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14658 conftest$ac_exeext conftest.$ac_ext
14659 LIBS=$ac_check_lib_save_LIBS
14661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
14662 $as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
14663 if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then
14664 LIBS="$LIBS -lposix1e"
14666 { $as_echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
14667 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
14668 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
14669 $as_echo_n "(cached) " >&6
14671 ac_check_lib_save_LIBS=$LIBS
14673 cat >conftest.$ac_ext <<_ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14680 /* Override any GCC internal prototype to avoid an error.
14681 Use char because int might match the return type of a GCC
14682 builtin and then its argument prototype would still apply. */
14686 char acl_get_file ();
14690 return acl_get_file ();
14695 rm -f conftest.$ac_objext conftest$ac_exeext
14696 if { (ac_try="$ac_link"
14697 case "(($ac_try" in
14698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14699 *) ac_try_echo
=$ac_try;;
14701 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14702 $as_echo "$ac_try_echo") >&5
14703 (eval "$ac_link") 2>conftest.er1
14705 grep -v '^ *+' conftest.er1
>conftest.err
14707 cat conftest.err
>&5
14708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } && {
14710 test -z "$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 } && test -s conftest
$ac_exeext && {
14713 test "$cross_compiling" = yes ||
14714 $as_test_x conftest
$ac_exeext
14716 ac_cv_lib_acl_acl_get_file
=yes
14718 $as_echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.
$ac_ext >&5
14721 ac_cv_lib_acl_acl_get_file
=no
14724 rm -rf conftest.dSYM
14725 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14726 conftest
$ac_exeext conftest.
$ac_ext
14727 LIBS
=$ac_check_lib_save_LIBS
14729 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
14730 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
14731 if test "x$ac_cv_lib_acl_acl_get_file" = x
""yes; then
14733 { $as_echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
14734 $as_echo_n "checking for fgetxattr in -lattr... " >&6; }
14735 if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
14736 $as_echo_n "(cached) " >&6
14738 ac_check_lib_save_LIBS
=$LIBS
14739 LIBS
="-lattr $LIBS"
14740 cat >conftest.
$ac_ext <<_ACEOF
14743 cat confdefs.h
>>conftest.
$ac_ext
14744 cat >>conftest.
$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14747 /* Override any GCC internal prototype to avoid an error.
14748 Use char because int might match the return type of a GCC
14749 builtin and then its argument prototype would still apply. */
14757 return fgetxattr ();
14762 rm -f conftest.
$ac_objext conftest
$ac_exeext
14763 if { (ac_try
="$ac_link"
14764 case "(($ac_try" in
14765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14766 *) ac_try_echo=$ac_try;;
14768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14769 $as_echo "$ac_try_echo") >&5
14770 (eval "$ac_link") 2>conftest.er1
14772 grep -v '^ *+' conftest.er1 >conftest.err
14774 cat conftest.err >&5
14775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); } && {
14777 test -z "$ac_c_werror_flag" ||
14778 test ! -s conftest.err
14779 } && test -s conftest$ac_exeext && {
14780 test "$cross_compiling" = yes ||
14781 $as_test_x conftest$ac_exeext
14783 ac_cv_lib_attr_fgetxattr=yes
14785 $as_echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 ac_cv_lib_attr_fgetxattr=no
14791 rm -rf conftest.dSYM
14792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14793 conftest$ac_exeext conftest.$ac_ext
14794 LIBS=$ac_check_lib_save_LIBS
14796 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
14797 $as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
14798 if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then
14799 LIBS="$LIBS -lattr"
14807 { $as_echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
14808 $as_echo_n "checking for POSIX ACL support... " >&6; }
14809 cat >conftest.$ac_ext <<_ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14816 #include <sys/types.h>
14817 #ifdef HAVE_SYS_ACL_H
14818 # include <sys/acl.h>
14824 acl = acl_get_file("foo", ACL_TYPE_ACCESS);
14825 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (ac_try="$ac_link"
14833 case "(($ac_try" in
14834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14835 *) ac_try_echo
=$ac_try;;
14837 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14838 $as_echo "$ac_try_echo") >&5
14839 (eval "$ac_link") 2>conftest.er1
14841 grep -v '^ *+' conftest.er1
>conftest.err
14843 cat conftest.err
>&5
14844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest
$ac_exeext && {
14849 test "$cross_compiling" = yes ||
14850 $as_test_x conftest
$ac_exeext
14852 { $as_echo "$as_me:$LINENO: result: yes" >&5
14853 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14854 #define HAVE_POSIX_ACL 1
14858 $as_echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.
$ac_ext >&5
14861 { $as_echo "$as_me:$LINENO: result: no" >&5
14862 $as_echo "no" >&6; }
14865 rm -rf conftest.dSYM
14866 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14867 conftest
$ac_exeext conftest.
$ac_ext
14869 { $as_echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14870 $as_echo_n "checking for Solaris ACL support... " >&6; }
14871 cat >conftest.
$ac_ext <<_ACEOF
14874 cat confdefs.h
>>conftest.
$ac_ext
14875 cat >>conftest.
$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14878 #ifdef HAVE_SYS_ACL_H
14879 # include <sys/acl.h>
14884 acl("foo", GETACLCNT, 0, NULL);
14890 rm -f conftest.
$ac_objext conftest
$ac_exeext
14891 if { (ac_try
="$ac_link"
14892 case "(($ac_try" in
14893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14897 $as_echo "$ac_try_echo") >&5
14898 (eval "$ac_link") 2>conftest.er1
14900 grep -v '^ *+' conftest.er1 >conftest.err
14902 cat conftest.err >&5
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && {
14905 test -z "$ac_c_werror_flag" ||
14906 test ! -s conftest.err
14907 } && test -s conftest$ac_exeext && {
14908 test "$cross_compiling" = yes ||
14909 $as_test_x conftest$ac_exeext
14911 { $as_echo "$as_me:$LINENO: result: yes" >&5
14912 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
14913 #define HAVE_SOLARIS_ACL 1
14917 $as_echo "$as_me: failed program was:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 { $as_echo "$as_me:$LINENO: result: no" >&5
14921 $as_echo "no" >&6; }
14924 rm -rf conftest.dSYM
14925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14926 conftest$ac_exeext conftest.$ac_ext
14928 { $as_echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14929 $as_echo_n "checking for AIX ACL support... " >&6; }
14930 cat >conftest.$ac_ext <<_ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14938 # include <stdlib.h>
14939 # include <stddef.h>
14941 #ifdef HAVE_SYS_ACL_H
14942 # include <sys/acl.h>
14944 #ifdef HAVE_SYS_ACCESS_H
14945 # include <sys/access.h>
14947 #define _ALL_SOURCE
14949 #include <sys/stat.h>
14952 struct acl *aclent;
14956 aclsize = sizeof(struct acl);
14957 aclent = (void *)malloc(aclsize);
14958 statacl("foo", STX_NORMAL, aclent, aclsize);
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (ac_try="$ac_link"
14966 case "(($ac_try" in
14967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14968 *) ac_try_echo
=$ac_try;;
14970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
14971 $as_echo "$ac_try_echo") >&5
14972 (eval "$ac_link") 2>conftest.er1
14974 grep -v '^ *+' conftest.er1
>conftest.err
14976 cat conftest.err
>&5
14977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } && {
14979 test -z "$ac_c_werror_flag" ||
14980 test ! -s conftest.err
14981 } && test -s conftest
$ac_exeext && {
14982 test "$cross_compiling" = yes ||
14983 $as_test_x conftest
$ac_exeext
14985 { $as_echo "$as_me:$LINENO: result: yes" >&5
14986 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
14987 #define HAVE_AIX_ACL 1
14991 $as_echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.
$ac_ext >&5
14994 { $as_echo "$as_me:$LINENO: result: no" >&5
14995 $as_echo "no" >&6; }
14998 rm -rf conftest.dSYM
14999 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15000 conftest
$ac_exeext conftest.
$ac_ext
15002 { $as_echo "$as_me:$LINENO: result: yes" >&5
15003 $as_echo "yes" >&6; }
15006 { $as_echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
15007 $as_echo_n "checking --disable-gpm argument... " >&6; }
15008 # Check whether --enable-gpm was given.
15009 if test "${enable_gpm+set}" = set; then
15010 enableval
=$enable_gpm;
15016 if test "$enable_gpm" = "yes"; then
15017 { $as_echo "$as_me:$LINENO: result: no" >&5
15018 $as_echo "no" >&6; }
15019 { $as_echo "$as_me:$LINENO: checking for gpm" >&5
15020 $as_echo_n "checking for gpm... " >&6; }
15021 if test "${vi_cv_have_gpm+set}" = set; then
15022 $as_echo_n "(cached) " >&6
15024 olibs
="$LIBS" ; LIBS
="-lgpm"
15025 cat >conftest.
$ac_ext <<_ACEOF
15028 cat confdefs.h
>>conftest.
$ac_ext
15029 cat >>conftest.
$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15032 #include <linux/keyboard.h>
15036 Gpm_GetLibVersion(NULL);
15041 rm -f conftest.
$ac_objext conftest
$ac_exeext
15042 if { (ac_try
="$ac_link"
15043 case "(($ac_try" in
15044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15048 $as_echo "$ac_try_echo") >&5
15049 (eval "$ac_link") 2>conftest.er1
15051 grep -v '^ *+' conftest.er1 >conftest.err
15053 cat conftest.err >&5
15054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055 (exit $ac_status); } && {
15056 test -z "$ac_c_werror_flag" ||
15057 test ! -s conftest.err
15058 } && test -s conftest$ac_exeext && {
15059 test "$cross_compiling" = yes ||
15060 $as_test_x conftest$ac_exeext
15064 $as_echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15070 rm -rf conftest.dSYM
15071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15072 conftest$ac_exeext conftest.$ac_ext
15076 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
15077 $as_echo "$vi_cv_have_gpm" >&6; }
15078 if test $vi_cv_have_gpm = yes; then
15080 cat >>confdefs.h <<\_ACEOF
15086 { $as_echo "$as_me:$LINENO: result: yes" >&5
15087 $as_echo "yes" >&6; }
15090 { $as_echo "$as_me:$LINENO: checking --disable-sysmouse argument" >&5
15091 $as_echo_n "checking --disable-sysmouse argument... " >&6; }
15092 # Check whether --enable-sysmouse was given.
15093 if test "${enable_sysmouse+set}" = set; then
15094 enableval=$enable_sysmouse;
15096 enable_sysmouse="yes"
15100 if test "$enable_sysmouse" = "yes"; then
15101 { $as_echo "$as_me:$LINENO: result: no" >&5
15102 $as_echo "no" >&6; }
15103 { $as_echo "$as_me:$LINENO: checking for sysmouse" >&5
15104 $as_echo_n "checking for sysmouse... " >&6; }
15105 if test "${vi_cv_have_sysmouse+set}" = set; then
15106 $as_echo_n "(cached) " >&6
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 #include <sys/consio.h>
15115 #include <signal.h>
15116 #include <sys/fbio.h>
15120 struct mouse_info mouse;
15121 mouse.operation = MOUSE_MODE;
15122 mouse.operation = MOUSE_SHOW;
15123 mouse.u.mode.mode = 0;
15124 mouse.u.mode.signal = SIGUSR2;
15129 rm -f conftest.$ac_objext conftest$ac_exeext
15130 if { (ac_try="$ac_link"
15131 case "(($ac_try" in
15132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15133 *) ac_try_echo
=$ac_try;;
15135 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15136 $as_echo "$ac_try_echo") >&5
15137 (eval "$ac_link") 2>conftest.er1
15139 grep -v '^ *+' conftest.er1
>conftest.err
15141 cat conftest.err
>&5
15142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
15146 } && test -s conftest
$ac_exeext && {
15147 test "$cross_compiling" = yes ||
15148 $as_test_x conftest
$ac_exeext
15150 vi_cv_have_sysmouse
=yes
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.
$ac_ext >&5
15155 vi_cv_have_sysmouse
=no
15158 rm -rf conftest.dSYM
15159 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15160 conftest
$ac_exeext conftest.
$ac_ext
15163 { $as_echo "$as_me:$LINENO: result: $vi_cv_have_sysmouse" >&5
15164 $as_echo "$vi_cv_have_sysmouse" >&6; }
15165 if test $vi_cv_have_sysmouse = yes; then
15166 cat >>confdefs.h
<<\_ACEOF
15167 #define HAVE_SYSMOUSE 1
15172 { $as_echo "$as_me:$LINENO: result: yes" >&5
15173 $as_echo "yes" >&6; }
15176 { $as_echo "$as_me:$LINENO: checking for rename" >&5
15177 $as_echo_n "checking for rename... " >&6; }
15178 cat >conftest.
$ac_ext <<_ACEOF
15181 cat confdefs.h
>>conftest.
$ac_ext
15182 cat >>conftest.
$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15188 rename("this", "that")
15193 rm -f conftest.
$ac_objext conftest
$ac_exeext
15194 if { (ac_try
="$ac_link"
15195 case "(($ac_try" in
15196 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15200 $as_echo "$ac_try_echo") >&5
15201 (eval "$ac_link") 2>conftest.er1
15203 grep -v '^ *+' conftest.er1 >conftest.err
15205 cat conftest.err >&5
15206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } && {
15208 test -z "$ac_c_werror_flag" ||
15209 test ! -s conftest.err
15210 } && test -s conftest$ac_exeext && {
15211 test "$cross_compiling" = yes ||
15212 $as_test_x conftest$ac_exeext
15214 { $as_echo "$as_me:$LINENO: result: yes" >&5
15215 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_RENAME 1
15220 $as_echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 { $as_echo "$as_me:$LINENO: result: no" >&5
15224 $as_echo "no" >&6; }
15227 rm -rf conftest.dSYM
15228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15229 conftest$ac_exeext conftest.$ac_ext
15231 { $as_echo "$as_me:$LINENO: checking for sysctl" >&5
15232 $as_echo_n "checking for sysctl... " >&6; }
15233 cat >conftest.$ac_ext <<_ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 #include <sys/types.h>
15240 #include <sys/sysctl.h>
15248 mib[1] = HW_USERMEM;
15250 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
15256 rm -f conftest.$ac_objext
15257 if { (ac_try="$ac_compile"
15258 case "(($ac_try" in
15259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15260 *) ac_try_echo
=$ac_try;;
15262 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15263 $as_echo "$ac_try_echo") >&5
15264 (eval "$ac_compile") 2>conftest.er1
15266 grep -v '^ *+' conftest.er1
>conftest.err
15268 cat conftest.err
>&5
15269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest.
$ac_objext; then
15274 { $as_echo "$as_me:$LINENO: result: yes" >&5
15275 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15276 #define HAVE_SYSCTL 1
15280 $as_echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.
$ac_ext >&5
15283 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15284 $as_echo "not usable" >&6; }
15287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15289 { $as_echo "$as_me:$LINENO: checking for sysinfo" >&5
15290 $as_echo_n "checking for sysinfo... " >&6; }
15291 cat >conftest.
$ac_ext <<_ACEOF
15294 cat confdefs.h
>>conftest.
$ac_ext
15295 cat >>conftest.
$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 #include <sys/types.h>
15298 #include <sys/sysinfo.h>
15302 struct sysinfo sinfo;
15305 (void)sysinfo(&sinfo);
15306 t = sinfo.totalram;
15312 rm -f conftest.
$ac_objext
15313 if { (ac_try
="$ac_compile"
15314 case "(($ac_try" in
15315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15316 *) ac_try_echo=$ac_try;;
15318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15319 $as_echo "$ac_try_echo") >&5
15320 (eval "$ac_compile") 2>conftest.er1
15322 grep -v '^ *+' conftest.er1 >conftest.err
15324 cat conftest.err >&5
15325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); } && {
15327 test -z "$ac_c_werror_flag" ||
15328 test ! -s conftest.err
15329 } && test -s conftest.$ac_objext; then
15330 { $as_echo "$as_me:$LINENO: result: yes" >&5
15331 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_SYSINFO 1
15336 $as_echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15340 $as_echo "not usable" >&6; }
15343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 { $as_echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
15346 $as_echo_n "checking for sysinfo.mem_unit... " >&6; }
15347 cat >conftest.$ac_ext <<_ACEOF
15350 cat confdefs.h >>conftest.$ac_ext
15351 cat >>conftest.$ac_ext <<_ACEOF
15352 /* end confdefs.h. */
15353 #include <sys/types.h>
15354 #include <sys/sysinfo.h>
15358 struct sysinfo sinfo;
15359 sinfo.mem_unit = 1;
15365 rm -f conftest.$ac_objext
15366 if { (ac_try="$ac_compile"
15367 case "(($ac_try" in
15368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15369 *) ac_try_echo
=$ac_try;;
15371 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15372 $as_echo "$ac_try_echo") >&5
15373 (eval "$ac_compile") 2>conftest.er1
15375 grep -v '^ *+' conftest.er1
>conftest.err
15377 cat conftest.err
>&5
15378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } && {
15380 test -z "$ac_c_werror_flag" ||
15381 test ! -s conftest.err
15382 } && test -s conftest.
$ac_objext; then
15383 { $as_echo "$as_me:$LINENO: result: yes" >&5
15384 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
15385 #define HAVE_SYSINFO_MEM_UNIT 1
15389 $as_echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.
$ac_ext >&5
15392 { $as_echo "$as_me:$LINENO: result: no" >&5
15393 $as_echo "no" >&6; }
15396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15398 { $as_echo "$as_me:$LINENO: checking for sysconf" >&5
15399 $as_echo_n "checking for sysconf... " >&6; }
15400 cat >conftest.
$ac_ext <<_ACEOF
15403 cat confdefs.h
>>conftest.
$ac_ext
15404 cat >>conftest.
$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 #include <unistd.h>
15410 (void)sysconf(_SC_PAGESIZE);
15411 (void)sysconf(_SC_PHYS_PAGES);
15417 rm -f conftest.
$ac_objext
15418 if { (ac_try
="$ac_compile"
15419 case "(($ac_try" in
15420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15421 *) ac_try_echo=$ac_try;;
15423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15424 $as_echo "$ac_try_echo") >&5
15425 (eval "$ac_compile") 2>conftest.er1
15427 grep -v '^ *+' conftest.er1 >conftest.err
15429 cat conftest.err >&5
15430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } && {
15432 test -z "$ac_c_werror_flag" ||
15433 test ! -s conftest.err
15434 } && test -s conftest.$ac_objext; then
15435 { $as_echo "$as_me:$LINENO: result: yes" >&5
15436 $as_echo "yes" >&6; }; cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_SYSCONF 1
15441 $as_echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15444 { $as_echo "$as_me:$LINENO: result: not usable" >&5
15445 $as_echo "not usable" >&6; }
15448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 { $as_echo "$as_me:$LINENO: checking size of int" >&5
15452 $as_echo_n "checking size of int... " >&6; }
15453 if test "${ac_cv_sizeof_int+set}" = set; then
15454 $as_echo_n "(cached) " >&6
15456 if test "$cross_compiling" = yes; then
15457 { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
15458 $as_echo "$as_me: error: failed to compile test program" >&2;}
15459 { (exit 1); exit 1; }; }
15461 cat >conftest.$ac_ext <<_ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15470 # include <stdlib.h>
15471 # include <stddef.h>
15475 FILE *f=fopen("conftestval", "w");
15477 fprintf(f, "%d\n", (int)sizeof(int));
15481 rm -f conftest$ac_exeext
15482 if { (ac_try="$ac_link"
15483 case "(($ac_try" in
15484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15485 *) ac_try_echo
=$ac_try;;
15487 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15488 $as_echo "$ac_try_echo") >&5
15489 (eval "$ac_link") 2>&5
15491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15493 { (case "(($ac_try" in
15494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15495 *) ac_try_echo=$ac_try;;
15497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15498 $as_echo "$ac_try_echo") >&5
15499 (eval "$ac_try") 2>&5
15501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_sizeof_int=`cat conftestval
`
15505 $as_echo "$as_me: program exited with status $ac_status" >&5
15506 $as_echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ( exit $ac_status )
15512 rm -rf conftest.dSYM
15513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15519 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15520 $as_echo "$ac_cv_sizeof_int" >&6; }
15521 cat >>confdefs.h <<_ACEOF
15522 #define SIZEOF_INT $ac_cv_sizeof_int
15528 #include "confdefs.h"
15529 #ifdef HAVE_STRING_H
15530 # include <string.h>
15533 # include <stdlib.h>
15534 # include <stddef.h>
15538 strcpy(buf, "abcdefghi");
15539 mch_memmove(buf, buf + 2, 3);
15540 if (strncmp(buf, "ababcf", 6))
15542 strcpy(buf, "abcdefghi");
15543 mch_memmove(buf + 2, buf, 3);
15544 if (strncmp(buf, "cdedef", 6))
15546 exit(0); /* libc version works properly. */
15549 { $as_echo "$as_me:$LINENO: checking whether memmove handles overlaps" >&5
15550 $as_echo_n "checking whether memmove handles overlaps... " >&6; }
15551 if test "${vim_cv_memmove_handles_overlap+set}" = set; then
15552 $as_echo_n "(cached) " >&6
15555 if test "$cross_compiling" = yes; then
15557 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&5
15558 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memmove_handles_overlap'" >&2;}
15559 { (exit 1); exit 1; }; }
15562 cat >conftest.$ac_ext <<_ACEOF
15563 #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
15565 rm -f conftest$ac_exeext
15566 if { (ac_try="$ac_link"
15567 case "(($ac_try" in
15568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15569 *) ac_try_echo
=$ac_try;;
15571 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15572 $as_echo "$ac_try_echo") >&5
15573 (eval "$ac_link") 2>&5
15575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15577 { (case "(($ac_try" in
15578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15582 $as_echo "$ac_try_echo") >&5
15583 (eval "$ac_try") 2>&5
15585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; }; then
15588 vim_cv_memmove_handles_overlap=yes
15591 $as_echo "$as_me: program exited with status $ac_status" >&5
15592 $as_echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ( exit $ac_status )
15597 vim_cv_memmove_handles_overlap=no
15600 rm -rf conftest.dSYM
15601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15607 { $as_echo "$as_me:$LINENO: result: $vim_cv_memmove_handles_overlap" >&5
15608 $as_echo "$vim_cv_memmove_handles_overlap" >&6; }
15610 if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
15611 cat >>confdefs.h <<\_ACEOF
15612 #define USEMEMMOVE 1
15616 { $as_echo "$as_me:$LINENO: checking whether bcopy handles overlaps" >&5
15617 $as_echo_n "checking whether bcopy handles overlaps... " >&6; }
15618 if test "${vim_cv_bcopy_handles_overlap+set}" = set; then
15619 $as_echo_n "(cached) " >&6
15622 if test "$cross_compiling" = yes; then
15624 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&5
15625 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" >&2;}
15626 { (exit 1); exit 1; }; }
15629 cat >conftest.$ac_ext <<_ACEOF
15630 #define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
15632 rm -f conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15636 *) ac_try_echo
=$ac_try;;
15638 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15639 $as_echo "$ac_try_echo") >&5
15640 (eval "$ac_link") 2>&5
15642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15644 { (case "(($ac_try" in
15645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15646 *) ac_try_echo=$ac_try;;
15648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649 $as_echo "$ac_try_echo") >&5
15650 (eval "$ac_try") 2>&5
15652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15655 vim_cv_bcopy_handles_overlap=yes
15658 $as_echo "$as_me: program exited with status $ac_status" >&5
15659 $as_echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15662 ( exit $ac_status )
15664 vim_cv_bcopy_handles_overlap=no
15667 rm -rf conftest.dSYM
15668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15674 { $as_echo "$as_me:$LINENO: result: $vim_cv_bcopy_handles_overlap" >&5
15675 $as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
15677 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
15678 cat >>confdefs.h <<\_ACEOF
15683 { $as_echo "$as_me:$LINENO: checking whether memcpy handles overlaps" >&5
15684 $as_echo_n "checking whether memcpy handles overlaps... " >&6; }
15685 if test "${vim_cv_memcpy_handles_overlap+set}" = set; then
15686 $as_echo_n "(cached) " >&6
15689 if test "$cross_compiling" = yes; then
15691 { { $as_echo "$as_me:$LINENO: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&5
15692 $as_echo "$as_me: error: cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" >&2;}
15693 { (exit 1); exit 1; }; }
15696 cat >conftest.$ac_ext <<_ACEOF
15697 #define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
15699 rm -f conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15703 *) ac_try_echo
=$ac_try;;
15705 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15706 $as_echo "$ac_try_echo") >&5
15707 (eval "$ac_link") 2>&5
15709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15711 { (case "(($ac_try" in
15712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15716 $as_echo "$ac_try_echo") >&5
15717 (eval "$ac_try") 2>&5
15719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); }; }; then
15722 vim_cv_memcpy_handles_overlap=yes
15725 $as_echo "$as_me: program exited with status $ac_status" >&5
15726 $as_echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 ( exit $ac_status )
15731 vim_cv_memcpy_handles_overlap=no
15734 rm -rf conftest.dSYM
15735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15741 { $as_echo "$as_me:$LINENO: result: $vim_cv_memcpy_handles_overlap" >&5
15742 $as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
15744 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
15745 cat >>confdefs.h <<\_ACEOF
15746 #define USEMEMCPY 1
15755 if test "$enable_multibyte" = "yes"; then
15756 cflags_save=$CFLAGS
15757 ldflags_save=$LDFLAGS
15758 if test "x$x_includes" != "xNONE" ; then
15759 CFLAGS="$CFLAGS -I$x_includes"
15760 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
15761 { $as_echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
15762 $as_echo_n "checking whether X_LOCALE needed... " >&6; }
15763 cat >conftest.$ac_ext <<_ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h. */
15769 #include <X11/Xlocale.h>
15778 rm -f conftest.$ac_objext
15779 if { (ac_try="$ac_compile"
15780 case "(($ac_try" in
15781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15782 *) ac_try_echo
=$ac_try;;
15784 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15785 $as_echo "$ac_try_echo") >&5
15786 (eval "$ac_compile") 2>conftest.er1
15788 grep -v '^ *+' conftest.er1
>conftest.err
15790 cat conftest.err
>&5
15791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } && {
15793 test -z "$ac_c_werror_flag" ||
15794 test ! -s conftest.err
15795 } && test -s conftest.
$ac_objext; then
15796 cat >conftest.
$ac_ext <<_ACEOF
15799 cat confdefs.h
>>conftest.
$ac_ext
15800 cat >>conftest.
$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15803 /* Override any GCC internal prototype to avoid an error.
15804 Use char because int might match the return type of a GCC
15805 builtin and then its argument prototype would still apply. */
15809 char _Xsetlocale ();
15813 return _Xsetlocale ();
15818 rm -f conftest.
$ac_objext conftest
$ac_exeext
15819 if { (ac_try
="$ac_link"
15820 case "(($ac_try" in
15821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15825 $as_echo "$ac_try_echo") >&5
15826 (eval "$ac_link") 2>conftest.er1
15828 grep -v '^ *+' conftest.er1 >conftest.err
15830 cat conftest.err >&5
15831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); } && {
15833 test -z "$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 } && test -s conftest$ac_exeext && {
15836 test "$cross_compiling" = yes ||
15837 $as_test_x conftest$ac_exeext
15839 { $as_echo "$as_me:$LINENO: result: yes" >&5
15840 $as_echo "yes" >&6; }
15841 cat >>confdefs.h <<\_ACEOF
15846 $as_echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 { $as_echo "$as_me:$LINENO: result: no" >&5
15850 $as_echo "no" >&6; }
15853 rm -rf conftest.dSYM
15854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15855 conftest$ac_exeext conftest.$ac_ext
15857 $as_echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15860 { $as_echo "$as_me:$LINENO: result: no" >&5
15861 $as_echo "no" >&6; }
15864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15866 CFLAGS=$cflags_save
15867 LDFLAGS=$ldflags_save
15870 { $as_echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
15871 $as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
15872 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
15873 $as_echo_n "(cached) " >&6
15875 ac_check_lib_save_LIBS=$LIBS
15876 LIBS="-lxpg4 $LIBS"
15877 cat >conftest.$ac_ext <<_ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15884 /* Override any GCC internal prototype to avoid an error.
15885 Use char because int might match the return type of a GCC
15886 builtin and then its argument prototype would still apply. */
15890 char _xpg4_setrunelocale ();
15894 return _xpg4_setrunelocale ();
15899 rm -f conftest.$ac_objext conftest$ac_exeext
15900 if { (ac_try="$ac_link"
15901 case "(($ac_try" in
15902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15903 *) ac_try_echo
=$ac_try;;
15905 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
15906 $as_echo "$ac_try_echo") >&5
15907 (eval "$ac_link") 2>conftest.er1
15909 grep -v '^ *+' conftest.er1
>conftest.err
15911 cat conftest.err
>&5
15912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && {
15914 test -z "$ac_c_werror_flag" ||
15915 test ! -s conftest.err
15916 } && test -s conftest
$ac_exeext && {
15917 test "$cross_compiling" = yes ||
15918 $as_test_x conftest
$ac_exeext
15920 ac_cv_lib_xpg4__xpg4_setrunelocale
=yes
15922 $as_echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.
$ac_ext >&5
15925 ac_cv_lib_xpg4__xpg4_setrunelocale
=no
15928 rm -rf conftest.dSYM
15929 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15930 conftest
$ac_exeext conftest.
$ac_ext
15931 LIBS
=$ac_check_lib_save_LIBS
15933 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
15934 $as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
15935 if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x
""yes; then
15936 LIBS
="$LIBS -lxpg4"
15940 { $as_echo "$as_me:$LINENO: checking how to create tags" >&5
15941 $as_echo_n "checking how to create tags... " >&6; }
15942 test -f tags
&& mv tags tags.save
15943 if (eval ctags
--version /dev
/null |
grep Exuberant
) < /dev
/null
1>&5 2>&1; then
15944 TAGPRG
="ctags -I INIT+ --fields=+S"
15947 (eval etags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags"
15948 (eval etags
-c /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="etags -c"
15949 (eval ctags
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags"
15950 (eval ctags
-t /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -t"
15951 (eval ctags
-ts /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -ts"
15952 (eval ctags
-tvs /dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -tvs"
15953 (eval ctags
-i+m
/dev
/null
) < /dev
/null
1>&5 2>&1 && TAGPRG
="ctags -i+m"
15955 test -f tags.save
&& mv tags.save tags
15956 { $as_echo "$as_me:$LINENO: result: $TAGPRG" >&5
15957 $as_echo "$TAGPRG" >&6; }
15959 { $as_echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
15960 $as_echo_n "checking how to run man with a section nr... " >&6; }
15962 (eval MANPAGER
=cat PAGER
=cat man
-s 2 read) < /dev
/null
> /dev
/null
2>&5 && MANDEF
="man -s"
15963 { $as_echo "$as_me:$LINENO: result: $MANDEF" >&5
15964 $as_echo "$MANDEF" >&6; }
15965 if test "$MANDEF" = "man -s"; then
15966 cat >>confdefs.h
<<\_ACEOF
15972 { $as_echo "$as_me:$LINENO: checking --disable-nls argument" >&5
15973 $as_echo_n "checking --disable-nls argument... " >&6; }
15974 # Check whether --enable-nls was given.
15975 if test "${enable_nls+set}" = set; then
15976 enableval
=$enable_nls;
15982 if test "$enable_nls" = "yes"; then
15983 { $as_echo "$as_me:$LINENO: result: no" >&5
15984 $as_echo "no" >&6; }
15986 INSTALL_LANGS
=install-languages
15988 INSTALL_TOOL_LANGS
=install-tool-languages
15991 # Extract the first word of "msgfmt", so it can be a program name with args.
15992 set dummy msgfmt
; ac_word
=$2
15993 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15994 $as_echo_n "checking for $ac_word... " >&6; }
15995 if test "${ac_cv_prog_MSGFMT+set}" = set; then
15996 $as_echo_n "(cached) " >&6
15998 if test -n "$MSGFMT"; then
15999 ac_cv_prog_MSGFMT
="$MSGFMT" # Let the user override the test.
16001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16002 for as_dir
in $PATH
16005 test -z "$as_dir" && as_dir
=.
16006 for ac_exec_ext
in '' $ac_executable_extensions; do
16007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16008 ac_cv_prog_MSGFMT
="msgfmt"
16009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16018 MSGFMT
=$ac_cv_prog_MSGFMT
16019 if test -n "$MSGFMT"; then
16020 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16021 $as_echo "$MSGFMT" >&6; }
16023 { $as_echo "$as_me:$LINENO: result: no" >&5
16024 $as_echo "no" >&6; }
16028 { $as_echo "$as_me:$LINENO: checking for NLS" >&5
16029 $as_echo_n "checking for NLS... " >&6; }
16030 if test -f po
/Makefile
; then
16032 if test -n "$MSGFMT"; then
16033 cat >conftest.
$ac_ext <<_ACEOF
16036 cat confdefs.h
>>conftest.
$ac_ext
16037 cat >>conftest.
$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #include <libintl.h>
16048 rm -f conftest.
$ac_objext conftest
$ac_exeext
16049 if { (ac_try
="$ac_link"
16050 case "(($ac_try" in
16051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16055 $as_echo "$ac_try_echo") >&5
16056 (eval "$ac_link") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest$ac_exeext && {
16066 test "$cross_compiling" = yes ||
16067 $as_test_x conftest$ac_exeext
16069 { $as_echo "$as_me:$LINENO: result: gettext() works" >&5
16070 $as_echo "gettext() works" >&6; }; have_gettext="yes"
16072 $as_echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16076 LIBS="$LIBS -lintl"
16077 cat >conftest.$ac_ext <<_ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #include <libintl.h>
16092 rm -f conftest.$ac_objext conftest$ac_exeext
16093 if { (ac_try="$ac_link"
16094 case "(($ac_try" in
16095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16096 *) ac_try_echo
=$ac_try;;
16098 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16099 $as_echo "$ac_try_echo") >&5
16100 (eval "$ac_link") 2>conftest.er1
16102 grep -v '^ *+' conftest.er1
>conftest.err
16104 cat conftest.err
>&5
16105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && {
16107 test -z "$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16109 } && test -s conftest
$ac_exeext && {
16110 test "$cross_compiling" = yes ||
16111 $as_test_x conftest
$ac_exeext
16113 { $as_echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
16114 $as_echo "gettext() works with -lintl" >&6; }; have_gettext
="yes"
16116 $as_echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.
$ac_ext >&5
16119 { $as_echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
16120 $as_echo "gettext() doesn't work" >&6; };
16124 rm -rf conftest.dSYM
16125 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16126 conftest
$ac_exeext conftest.
$ac_ext
16129 rm -rf conftest.dSYM
16130 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16131 conftest
$ac_exeext conftest.
$ac_ext
16133 { $as_echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
16134 $as_echo "msgfmt not found - disabled" >&6; };
16136 if test $have_gettext = "yes"; then
16137 cat >>confdefs.h
<<\_ACEOF
16138 #define HAVE_GETTEXT 1
16144 for ac_func
in bind_textdomain_codeset
16146 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16147 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16148 $as_echo_n "checking for $ac_func... " >&6; }
16149 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16150 $as_echo_n "(cached) " >&6
16152 cat >conftest.
$ac_ext <<_ACEOF
16155 cat confdefs.h
>>conftest.
$ac_ext
16156 cat >>conftest.
$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16160 #define $ac_func innocuous_$ac_func
16162 /* System header to define __stub macros and hopefully few prototypes,
16163 which can conflict with char $ac_func (); below.
16164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16165 <limits.h> exists even on freestanding compilers. */
16168 # include <limits.h>
16170 # include <assert.h>
16175 /* Override any GCC internal prototype to avoid an error.
16176 Use char because int might match the return type of a GCC
16177 builtin and then its argument prototype would still apply. */
16182 /* The GNU C library defines this for functions which it implements
16183 to always fail with ENOSYS. Some functions are actually named
16184 something starting with __ and the normal name is an alias. */
16185 #if defined __stub_$ac_func || defined __stub___$ac_func
16192 return $ac_func ();
16197 rm -f conftest.
$ac_objext conftest
$ac_exeext
16198 if { (ac_try
="$ac_link"
16199 case "(($ac_try" in
16200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16204 $as_echo "$ac_try_echo") >&5
16205 (eval "$ac_link") 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } && {
16212 test -z "$ac_c_werror_flag" ||
16213 test ! -s conftest.err
16214 } && test -s conftest$ac_exeext && {
16215 test "$cross_compiling" = yes ||
16216 $as_test_x conftest$ac_exeext
16218 eval "$as_ac_var=yes"
16220 $as_echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 eval "$as_ac_var=no"
16226 rm -rf conftest.dSYM
16227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16228 conftest$ac_exeext conftest.$ac_ext
16230 ac_res=`eval 'as_val=${'$as_ac_var'}
16231 $as_echo "$as_val"'`
16232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16233 $as_echo "$ac_res" >&6; }
16234 as_val=`eval 'as_val=${'$as_ac_var'}
16235 $as_echo "$as_val"'`
16236 if test "x$as_val" = x""yes; then
16237 cat >>confdefs.h <<_ACEOF
16238 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16244 { $as_echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
16245 $as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 #include <libintl.h>
16253 extern int _nl_msg_cat_cntr;
16257 ++_nl_msg_cat_cntr;
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (ac_try="$ac_link"
16264 case "(($ac_try" in
16265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16266 *) ac_try_echo
=$ac_try;;
16268 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16269 $as_echo "$ac_try_echo") >&5
16270 (eval "$ac_link") 2>conftest.er1
16272 grep -v '^ *+' conftest.er1
>conftest.err
16274 cat conftest.err
>&5
16275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); } && {
16277 test -z "$ac_c_werror_flag" ||
16278 test ! -s conftest.err
16279 } && test -s conftest
$ac_exeext && {
16280 test "$cross_compiling" = yes ||
16281 $as_test_x conftest
$ac_exeext
16283 { $as_echo "$as_me:$LINENO: result: yes" >&5
16284 $as_echo "yes" >&6; }; cat >>confdefs.h
<<\_ACEOF
16285 #define HAVE_NL_MSG_CAT_CNTR 1
16289 $as_echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.
$ac_ext >&5
16292 { $as_echo "$as_me:$LINENO: result: no" >&5
16293 $as_echo "no" >&6; }
16296 rm -rf conftest.dSYM
16297 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16298 conftest
$ac_exeext conftest.
$ac_ext
16301 { $as_echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
16302 $as_echo "no \"po/Makefile\" - disabled" >&6; };
16305 { $as_echo "$as_me:$LINENO: result: yes" >&5
16306 $as_echo "yes" >&6; }
16309 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16310 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16311 $as_echo_n "checking for dlfcn.h... " >&6; }
16312 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16313 $as_echo_n "(cached) " >&6
16315 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16316 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16318 # Is the header compilable?
16319 { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
16320 $as_echo_n "checking dlfcn.h usability... " >&6; }
16321 cat >conftest.
$ac_ext <<_ACEOF
16324 cat confdefs.h
>>conftest.
$ac_ext
16325 cat >>conftest.
$ac_ext <<_ACEOF
16326 /* end confdefs.h. */
16327 $ac_includes_default
16330 rm -f conftest.
$ac_objext
16331 if { (ac_try
="$ac_compile"
16332 case "(($ac_try" in
16333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16334 *) ac_try_echo=$ac_try;;
16336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16337 $as_echo "$ac_try_echo") >&5
16338 (eval "$ac_compile") 2>conftest.er1
16340 grep -v '^ *+' conftest.er1 >conftest.err
16342 cat conftest.err >&5
16343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } && {
16345 test -z "$ac_c_werror_flag" ||
16346 test ! -s conftest.err
16347 } && test -s conftest.$ac_objext; then
16348 ac_header_compiler=yes
16350 $as_echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_header_compiler=no
16356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16358 $as_echo "$ac_header_compiler" >&6; }
16360 # Is the header present?
16361 { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
16362 $as_echo_n "checking dlfcn.h presence... " >&6; }
16363 cat >conftest.$ac_ext <<_ACEOF
16366 cat confdefs.h >>conftest.$ac_ext
16367 cat >>conftest.$ac_ext <<_ACEOF
16368 /* end confdefs.h. */
16371 if { (ac_try="$ac_cpp conftest.$ac_ext"
16372 case "(($ac_try" in
16373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16374 *) ac_try_echo
=$ac_try;;
16376 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16377 $as_echo "$ac_try_echo") >&5
16378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16380 grep -v '^ *+' conftest.er1
>conftest.err
16382 cat conftest.err
>&5
16383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } >/dev
/null
&& {
16385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16386 test ! -s conftest.err
16388 ac_header_preproc
=yes
16390 $as_echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.
$ac_ext >&5
16393 ac_header_preproc
=no
16396 rm -f conftest.err conftest.
$ac_ext
16397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16398 $as_echo "$ac_header_preproc" >&6; }
16400 # So? What about this header?
16401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16403 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
16404 $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16405 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
16406 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
16407 ac_header_preproc
=yes
16410 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
16411 $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
16412 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
16413 $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
16414 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
16415 $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
16416 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
16417 $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
16418 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
16419 $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
16420 { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
16421 $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
16425 { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
16426 $as_echo_n "checking for dlfcn.h... " >&6; }
16427 if test "${ac_cv_header_dlfcn_h+set}" = set; then
16428 $as_echo_n "(cached) " >&6
16430 ac_cv_header_dlfcn_h
=$ac_header_preproc
16432 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
16433 $as_echo "$ac_cv_header_dlfcn_h" >&6; }
16436 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then
16439 if test "${ac_cv_header_dl_h+set}" = set; then
16440 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16441 $as_echo_n "checking for dl.h... " >&6; }
16442 if test "${ac_cv_header_dl_h+set}" = set; then
16443 $as_echo_n "(cached) " >&6
16445 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16446 $as_echo "$ac_cv_header_dl_h" >&6; }
16448 # Is the header compilable?
16449 { $as_echo "$as_me:$LINENO: checking dl.h usability" >&5
16450 $as_echo_n "checking dl.h usability... " >&6; }
16451 cat >conftest.
$ac_ext <<_ACEOF
16454 cat confdefs.h
>>conftest.
$ac_ext
16455 cat >>conftest.
$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16457 $ac_includes_default
16460 rm -f conftest.
$ac_objext
16461 if { (ac_try
="$ac_compile"
16462 case "(($ac_try" in
16463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16467 $as_echo "$ac_try_echo") >&5
16468 (eval "$ac_compile") 2>conftest.er1
16470 grep -v '^ *+' conftest.er1 >conftest.err
16472 cat conftest.err >&5
16473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } && {
16475 test -z "$ac_c_werror_flag" ||
16476 test ! -s conftest.err
16477 } && test -s conftest.$ac_objext; then
16478 ac_header_compiler=yes
16480 $as_echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 ac_header_compiler=no
16486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16487 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16488 $as_echo "$ac_header_compiler" >&6; }
16490 # Is the header present?
16491 { $as_echo "$as_me:$LINENO: checking dl.h presence" >&5
16492 $as_echo_n "checking dl.h presence... " >&6; }
16493 cat >conftest.$ac_ext <<_ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h. */
16501 if { (ac_try="$ac_cpp conftest.$ac_ext"
16502 case "(($ac_try" in
16503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16504 *) ac_try_echo
=$ac_try;;
16506 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16507 $as_echo "$ac_try_echo") >&5
16508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16510 grep -v '^ *+' conftest.er1
>conftest.err
16512 cat conftest.err
>&5
16513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } >/dev
/null
&& {
16515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16516 test ! -s conftest.err
16518 ac_header_preproc
=yes
16520 $as_echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.
$ac_ext >&5
16523 ac_header_preproc
=no
16526 rm -f conftest.err conftest.
$ac_ext
16527 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16528 $as_echo "$ac_header_preproc" >&6; }
16530 # So? What about this header?
16531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16533 { $as_echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
16534 $as_echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16535 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
16536 $as_echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
16537 ac_header_preproc
=yes
16540 { $as_echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
16541 $as_echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
16542 { $as_echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
16543 $as_echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
16544 { $as_echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
16545 $as_echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
16546 { $as_echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
16547 $as_echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
16548 { $as_echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
16549 $as_echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
16550 { $as_echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
16551 $as_echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
16555 { $as_echo "$as_me:$LINENO: checking for dl.h" >&5
16556 $as_echo_n "checking for dl.h... " >&6; }
16557 if test "${ac_cv_header_dl_h+set}" = set; then
16558 $as_echo_n "(cached) " >&6
16560 ac_cv_header_dl_h
=$ac_header_preproc
16562 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
16563 $as_echo "$ac_cv_header_dl_h" >&6; }
16566 if test "x$ac_cv_header_dl_h" = x
""yes; then
16574 if test x
${DLL} = xdlfcn.h
; then
16576 cat >>confdefs.h
<<\_ACEOF
16577 #define HAVE_DLFCN_H 1
16580 { $as_echo "$as_me:$LINENO: checking for dlopen()" >&5
16581 $as_echo_n "checking for dlopen()... " >&6; }
16582 cat >conftest.
$ac_ext <<_ACEOF
16585 cat confdefs.h
>>conftest.
$ac_ext
16586 cat >>conftest.
$ac_ext <<_ACEOF
16587 /* end confdefs.h. */
16593 extern void* dlopen();
16600 rm -f conftest.
$ac_objext conftest
$ac_exeext
16601 if { (ac_try
="$ac_link"
16602 case "(($ac_try" in
16603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16607 $as_echo "$ac_try_echo") >&5
16608 (eval "$ac_link") 2>conftest.er1
16610 grep -v '^ *+' conftest.er1 >conftest.err
16612 cat conftest.err >&5
16613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } && {
16615 test -z "$ac_c_werror_flag" ||
16616 test ! -s conftest.err
16617 } && test -s conftest$ac_exeext && {
16618 test "$cross_compiling" = yes ||
16619 $as_test_x conftest$ac_exeext
16621 { $as_echo "$as_me:$LINENO: result: yes" >&5
16622 $as_echo "yes" >&6; };
16624 cat >>confdefs.h <<\_ACEOF
16625 #define HAVE_DLOPEN 1
16629 $as_echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 { $as_echo "$as_me:$LINENO: result: no" >&5
16633 $as_echo "no" >&6; };
16634 { $as_echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
16635 $as_echo_n "checking for dlopen() in -ldl... " >&6; }
16638 cat >conftest.$ac_ext <<_ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16649 extern void* dlopen();
16656 rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16660 *) ac_try_echo
=$ac_try;;
16662 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16663 $as_echo "$ac_try_echo") >&5
16664 (eval "$ac_link") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1
>conftest.err
16668 cat conftest.err
>&5
16669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && {
16671 test -z "$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 } && test -s conftest
$ac_exeext && {
16674 test "$cross_compiling" = yes ||
16675 $as_test_x conftest
$ac_exeext
16677 { $as_echo "$as_me:$LINENO: result: yes" >&5
16678 $as_echo "yes" >&6; };
16680 cat >>confdefs.h
<<\_ACEOF
16681 #define HAVE_DLOPEN 1
16685 $as_echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.
$ac_ext >&5
16688 { $as_echo "$as_me:$LINENO: result: no" >&5
16689 $as_echo "no" >&6; };
16693 rm -rf conftest.dSYM
16694 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16695 conftest
$ac_exeext conftest.
$ac_ext
16698 rm -rf conftest.dSYM
16699 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16700 conftest
$ac_exeext conftest.
$ac_ext
16701 { $as_echo "$as_me:$LINENO: checking for dlsym()" >&5
16702 $as_echo_n "checking for dlsym()... " >&6; }
16703 cat >conftest.
$ac_ext <<_ACEOF
16706 cat confdefs.h
>>conftest.
$ac_ext
16707 cat >>conftest.
$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16714 extern void* dlsym();
16721 rm -f conftest.
$ac_objext conftest
$ac_exeext
16722 if { (ac_try
="$ac_link"
16723 case "(($ac_try" in
16724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16728 $as_echo "$ac_try_echo") >&5
16729 (eval "$ac_link") 2>conftest.er1
16731 grep -v '^ *+' conftest.er1 >conftest.err
16733 cat conftest.err >&5
16734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest$ac_exeext && {
16739 test "$cross_compiling" = yes ||
16740 $as_test_x conftest$ac_exeext
16742 { $as_echo "$as_me:$LINENO: result: yes" >&5
16743 $as_echo "yes" >&6; };
16745 cat >>confdefs.h <<\_ACEOF
16746 #define HAVE_DLSYM 1
16750 $as_echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 { $as_echo "$as_me:$LINENO: result: no" >&5
16754 $as_echo "no" >&6; };
16755 { $as_echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
16756 $as_echo_n "checking for dlsym() in -ldl... " >&6; }
16759 cat >conftest.$ac_ext <<_ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h. */
16770 extern void* dlsym();
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (ac_try="$ac_link"
16779 case "(($ac_try" in
16780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16781 *) ac_try_echo
=$ac_try;;
16783 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16784 $as_echo "$ac_try_echo") >&5
16785 (eval "$ac_link") 2>conftest.er1
16787 grep -v '^ *+' conftest.er1
>conftest.err
16789 cat conftest.err
>&5
16790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest
$ac_exeext && {
16795 test "$cross_compiling" = yes ||
16796 $as_test_x conftest
$ac_exeext
16798 { $as_echo "$as_me:$LINENO: result: yes" >&5
16799 $as_echo "yes" >&6; };
16801 cat >>confdefs.h
<<\_ACEOF
16802 #define HAVE_DLSYM 1
16806 $as_echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.
$ac_ext >&5
16809 { $as_echo "$as_me:$LINENO: result: no" >&5
16810 $as_echo "no" >&6; };
16814 rm -rf conftest.dSYM
16815 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16816 conftest
$ac_exeext conftest.
$ac_ext
16819 rm -rf conftest.dSYM
16820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16821 conftest
$ac_exeext conftest.
$ac_ext
16822 elif test x
${DLL} = xdl.h
; then
16824 cat >>confdefs.h
<<\_ACEOF
16825 #define HAVE_DL_H 1
16828 { $as_echo "$as_me:$LINENO: checking for shl_load()" >&5
16829 $as_echo_n "checking for shl_load()... " >&6; }
16830 cat >conftest.
$ac_ext <<_ACEOF
16833 cat confdefs.h
>>conftest.
$ac_ext
16834 cat >>conftest.
$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16841 extern void* shl_load();
16848 rm -f conftest.
$ac_objext conftest
$ac_exeext
16849 if { (ac_try
="$ac_link"
16850 case "(($ac_try" in
16851 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16855 $as_echo "$ac_try_echo") >&5
16856 (eval "$ac_link") 2>conftest.er1
16858 grep -v '^ *+' conftest.er1 >conftest.err
16860 cat conftest.err >&5
16861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } && {
16863 test -z "$ac_c_werror_flag" ||
16864 test ! -s conftest.err
16865 } && test -s conftest$ac_exeext && {
16866 test "$cross_compiling" = yes ||
16867 $as_test_x conftest$ac_exeext
16869 { $as_echo "$as_me:$LINENO: result: yes" >&5
16870 $as_echo "yes" >&6; };
16872 cat >>confdefs.h <<\_ACEOF
16873 #define HAVE_SHL_LOAD 1
16877 $as_echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.$ac_ext >&5
16880 { $as_echo "$as_me:$LINENO: result: no" >&5
16881 $as_echo "no" >&6; };
16882 { $as_echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
16883 $as_echo_n "checking for shl_load() in -ldld... " >&6; }
16886 cat >conftest.$ac_ext <<_ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16897 extern void* shl_load();
16904 rm -f conftest.$ac_objext conftest$ac_exeext
16905 if { (ac_try="$ac_link"
16906 case "(($ac_try" in
16907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16908 *) ac_try_echo
=$ac_try;;
16910 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
16911 $as_echo "$ac_try_echo") >&5
16912 (eval "$ac_link") 2>conftest.er1
16914 grep -v '^ *+' conftest.er1
>conftest.err
16916 cat conftest.err
>&5
16917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); } && {
16919 test -z "$ac_c_werror_flag" ||
16920 test ! -s conftest.err
16921 } && test -s conftest
$ac_exeext && {
16922 test "$cross_compiling" = yes ||
16923 $as_test_x conftest
$ac_exeext
16925 { $as_echo "$as_me:$LINENO: result: yes" >&5
16926 $as_echo "yes" >&6; };
16928 cat >>confdefs.h
<<\_ACEOF
16929 #define HAVE_SHL_LOAD 1
16933 $as_echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.
$ac_ext >&5
16936 { $as_echo "$as_me:$LINENO: result: no" >&5
16937 $as_echo "no" >&6; };
16941 rm -rf conftest.dSYM
16942 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16943 conftest
$ac_exeext conftest.
$ac_ext
16946 rm -rf conftest.dSYM
16947 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
16948 conftest
$ac_exeext conftest.
$ac_ext
16951 for ac_header
in setjmp.h
16953 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16954 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16956 $as_echo_n "checking for $ac_header... " >&6; }
16957 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16958 $as_echo_n "(cached) " >&6
16960 ac_res
=`eval 'as_val=${'$as_ac_Header'}
16961 $as_echo "$as_val"'`
16962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16963 $as_echo "$ac_res" >&6; }
16965 # Is the header compilable?
16966 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16967 $as_echo_n "checking $ac_header usability... " >&6; }
16968 cat >conftest.
$ac_ext <<_ACEOF
16971 cat confdefs.h
>>conftest.
$ac_ext
16972 cat >>conftest.
$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 $ac_includes_default
16975 #include <$ac_header>
16977 rm -f conftest.
$ac_objext
16978 if { (ac_try
="$ac_compile"
16979 case "(($ac_try" in
16980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985 (eval "$ac_compile") 2>conftest.er1
16987 grep -v '^ *+' conftest.er1 >conftest.err
16989 cat conftest.err >&5
16990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest.$ac_objext; then
16995 ac_header_compiler=yes
16997 $as_echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
17000 ac_header_compiler=no
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17005 $as_echo "$ac_header_compiler" >&6; }
17007 # Is the header present?
17008 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17009 $as_echo_n "checking $ac_header presence... " >&6; }
17010 cat >conftest.$ac_ext <<_ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h. */
17016 #include <$ac_header>
17018 if { (ac_try="$ac_cpp conftest.$ac_ext"
17019 case "(($ac_try" in
17020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17021 *) ac_try_echo
=$ac_try;;
17023 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
17024 $as_echo "$ac_try_echo") >&5
17025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17027 grep -v '^ *+' conftest.er1
>conftest.err
17029 cat conftest.err
>&5
17030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); } >/dev
/null
&& {
17032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17033 test ! -s conftest.err
17035 ac_header_preproc
=yes
17037 $as_echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.
$ac_ext >&5
17040 ac_header_preproc
=no
17043 rm -f conftest.err conftest.
$ac_ext
17044 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17045 $as_echo "$ac_header_preproc" >&6; }
17047 # So? What about this header?
17048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17051 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17053 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17054 ac_header_preproc
=yes
17057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17058 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17060 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17062 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17064 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17066 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17068 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17073 $as_echo_n "checking for $ac_header... " >&6; }
17074 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17075 $as_echo_n "(cached) " >&6
17077 eval "$as_ac_Header=\$ac_header_preproc"
17079 ac_res
=`eval 'as_val=${'$as_ac_Header'}
17080 $as_echo "$as_val"'`
17081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17082 $as_echo "$ac_res" >&6; }
17085 as_val
=`eval 'as_val=${'$as_ac_Header'}
17086 $as_echo "$as_val"'`
17087 if test "x$as_val" = x
""yes; then
17088 cat >>confdefs.h
<<_ACEOF
17089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17097 if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
17098 if echo $LIBS |
grep -e '-ldl' >/dev
/null
; then
17099 LIBS
=`echo $LIBS | sed s/-ldl//`
17100 PERL_LIBS
="$PERL_LIBS -ldl"
17104 if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
17105 && test "x$GUITYPE" != "xCARBONGUI"; then
17106 { $as_echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
17107 $as_echo_n "checking whether we need -framework Carbon... " >&6; }
17108 if test "x$enable_multibyte" = "xyes" ||
test "x$features" = "xbig" \
17109 ||
test "x$features" = "xhuge"; then
17110 LIBS
="$LIBS -framework Carbon"
17111 { $as_echo "$as_me:$LINENO: result: yes" >&5
17112 $as_echo "yes" >&6; }
17114 { $as_echo "$as_me:$LINENO: result: no" >&5
17115 $as_echo "no" >&6; }
17118 if test "x$MACARCH" = "xboth"; then
17119 LDFLAGS
="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
17122 DEPEND_CFLAGS_FILTER
=
17123 if test "$GCC" = yes; then
17124 { $as_echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
17125 $as_echo_n "checking for GCC 3 or later... " >&6; }
17126 gccmajor
=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
17127 if test "$gccmajor" -gt "2"; then
17128 DEPEND_CFLAGS_FILTER
="| sed 's+-I */+-isystem /+g'"
17129 { $as_echo "$as_me:$LINENO: result: yes" >&5
17130 $as_echo "yes" >&6; }
17132 { $as_echo "$as_me:$LINENO: result: no" >&5
17133 $as_echo "no" >&6; }
17135 { $as_echo "$as_me:$LINENO: checking whether we need -D_FORTIFY_SOURCE=1" >&5
17136 $as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
17137 if test "$gccmajor" -gt "3"; then
17138 CFLAGS
=`echo "$CFLAGS -D_FORTIFY_SOURCE=1" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' -e 's/-D_FORTIFY_SOURCE=2//g'`
17139 { $as_echo "$as_me:$LINENO: result: yes" >&5
17140 $as_echo "yes" >&6; }
17142 { $as_echo "$as_me:$LINENO: result: no" >&5
17143 $as_echo "no" >&6; }
17148 ac_config_files
="$ac_config_files auto/config.mk:config.mk.in"
17150 cat >confcache
<<\_ACEOF
17151 # This file is a shell script that caches the results of configure
17152 # tests run on this system so they can be shared between configure
17153 # scripts and configure runs, see configure's option --config-cache.
17154 # It is not useful on other systems. If it contains results you don't
17155 # want to keep, you may remove or edit it.
17157 # config.status only pays attention to the cache file if you give it
17158 # the --recheck option to rerun configure.
17160 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17161 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17162 # following values.
17166 # The following way of writing the cache mishandles newlines in values,
17167 # but we know of no workaround that is simple, portable, and efficient.
17168 # So, we kill variables containing newlines.
17169 # Ultrix sh set writes to stderr and can't be redirected directly,
17170 # and sets the high bit in the cache file unless we assign to the vars.
17172 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17173 eval ac_val
=\$
$ac_var
17177 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17181 _ | IFS | as_nl
) ;; #(
17182 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17183 *) $as_unset $ac_var ;;
17189 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17190 *${as_nl}ac_space
=\
*)
17191 # `set' does not quote correctly, so add quotes (double-quote
17192 # substitution turns \\\\ into \\, and sed turns \\ into \).
17195 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17198 # `set' quotes correctly as required by POSIX, so do not add quotes.
17199 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17210 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17212 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17213 if test -w "$cache_file"; then
17214 test "x$cache_file" != "x/dev/null" &&
17215 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17216 $as_echo "$as_me: updating cache $cache_file" >&6;}
17217 cat confcache
>$cache_file
17219 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17220 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17225 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17226 # Let make expand exec_prefix.
17227 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17229 DEFS
=-DHAVE_CONFIG_H
17233 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17234 # 1. Remove the extension, and $U if already installed.
17235 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17236 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17238 # will be set to the directory where LIBOBJS objects are built.
17239 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17240 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17242 LIBOBJS
=$ac_libobjs
17244 LTLIBOBJS
=$ac_ltlibobjs
17248 : ${CONFIG_STATUS=./config.status}
17250 ac_clean_files_save
=$ac_clean_files
17251 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17252 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17253 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17254 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17256 # Generated by $as_me.
17257 # Run this file to recreate the current configuration.
17258 # Compiler output produced by configure, useful for debugging
17259 # configure, is in config.log if it exists.
17262 ac_cs_recheck=false
17264 SHELL=\${CONFIG_SHELL-$SHELL}
17267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17268 ## --------------------- ##
17269 ## M4sh Initialization. ##
17270 ## --------------------- ##
17272 # Be more Bourne compatible
17273 DUALCASE
=1; export DUALCASE
# for MKS sh
17274 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17277 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17278 # is contrary to our usage. Disable this feature.
17279 alias -g '${1+"$@"}'='"$@"'
17280 setopt NO_GLOB_SUBST
17282 case `(set -o) 2>/dev/null` in
17283 *posix
*) set -o posix
;;
17292 # Avoid depending upon Character Ranges.
17293 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17294 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17295 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17296 as_cr_digits
='0123456789'
17297 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17302 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17303 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17304 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17305 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17306 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17307 as_echo='printf %s
\n'
17308 as_echo_n='printf %s
'
17310 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17311 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17312 as_echo_n='/usr
/ucb
/echo -n'
17314 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17315 as_echo_n_body='eval
17319 expr "X$arg" : "X\\(.*\\)$as_nl";
17320 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17322 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17324 export as_echo_n_body
17325 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17327 export as_echo_body
17328 as_echo='sh
-c $as_echo_body as_echo
'
17331 # The user is always right.
17332 if test "${PATH_SEPARATOR+set}" != set; then
17334 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17335 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17340 # Support unset when possible.
17341 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17349 # We need space, tab and new line, in precisely that order. Quoting is
17350 # there to prevent editors from complaining about space-tab.
17351 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17352 # splitting by setting IFS to empty value.)
17355 # Find who we are. Look in the path if we contain no directory separator.
17357 *[\\/]* ) as_myself=$0 ;;
17358 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17359 for as_dir in $PATH
17362 test -z "$as_dir" && as_dir=.
17363 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17369 # We did not find ourselves, most probably we were run as `sh COMMAND'
17370 # in which case we are not to be found in the path.
17371 if test "x$as_myself" = x
; then
17374 if test ! -f "$as_myself"; then
17375 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17376 { (exit 1); exit 1; }
17379 # Work around bugs in pre-3.0 UWIN ksh.
17380 for as_var
in ENV MAIL MAILPATH
17381 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
17393 # Required to use basename.
17394 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17395 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17401 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17402 as_basename
=basename
17408 # Name of the executable.
17409 as_me
=`$as_basename -- "$0" ||
17410 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17411 X"$0" : 'X\(//\)$' \| \
17412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17414 sed '/^.*\/\([^/][^/]*\)\/*$/{
17433 as_lineno_1
=$LINENO
17434 as_lineno_2
=$LINENO
17435 test "x$as_lineno_1" != "x$as_lineno_2" &&
17436 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
17438 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17439 # uniformly replaced by the line number. The first 'sed' inserts a
17440 # line-number line after each line using $LINENO; the second 'sed'
17441 # does the real work. The second script uses 'N' to pair each
17442 # line-number line with the line containing $LINENO, and appends
17443 # trailing '-' during substitution so that $LINENO is not a special
17444 # case at line end.
17445 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17446 # scripts with optimization help from Paolo Bonzini. Blame Lee
17447 # E. McMahon (1931-1989) for sed's syntax. :-)
17459 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17462 ' >$as_me.lineno
&&
17463 chmod +x
"$as_me.lineno" ||
17464 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17465 { (exit 1); exit 1; }; }
17467 # Don't try to exec as it changes $[0], causing all sort of problems
17468 # (the dirname of $[0] is not the place where we might find the
17469 # original and so on. Autoconf is especially sensitive to this).
17470 .
"./$as_me.lineno"
17471 # Exit status is that of the last command.
17476 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17482 ECHO_C
= ECHO_N
= ECHO_T
=
17483 case `echo -n x` in
17485 case `echo 'x\c'` in
17486 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17492 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17493 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17499 rm -f conf$$ conf$$.exe conf$$.
file
17500 if test -d conf$$.dir
; then
17501 rm -f conf$$.dir
/conf$$.
file
17504 mkdir conf$$.dir
2>/dev
/null
17506 if (echo >conf$$.
file) 2>/dev
/null
; then
17507 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17509 # ... but there are two gotchas:
17510 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17511 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17512 # In both cases, we have to default to `cp -p'.
17513 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17515 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17523 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17524 rmdir conf$$.dir
2>/dev
/null
17526 if mkdir
-p .
2>/dev
/null
; then
17529 test -d .
/-p && rmdir .
/-p
17533 if test -x / >/dev
/null
2>&1; then
17534 as_test_x
='test -x'
17536 if ls -dL / >/dev
/null
2>&1; then
17543 if test -d "$1"; then
17549 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17550 ???[sx]*):;;*)false;;esac;fi
17554 as_executable_p
=$as_test_x
17556 # Sed expression to map a string onto a valid CPP name.
17557 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17559 # Sed expression to map a string onto a valid variable name.
17560 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17565 # Save the log message, to keep $[0] and so on meaningful, and to
17566 # report actual input values of CONFIG_FILES etc. instead of their
17567 # values after options handling.
17569 This file was extended by $as_me, which was
17570 generated by GNU Autoconf 2.63. Invocation command line was
17572 CONFIG_FILES = $CONFIG_FILES
17573 CONFIG_HEADERS = $CONFIG_HEADERS
17574 CONFIG_LINKS = $CONFIG_LINKS
17575 CONFIG_COMMANDS = $CONFIG_COMMANDS
17578 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17583 case $ac_config_files in *"
17584 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17587 case $ac_config_headers in *"
17588 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17593 # Files that config.status was made for.
17594 config_files="$ac_config_files"
17595 config_headers="$ac_config_headers"
17599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17601 \`$as_me' instantiates files from templates according to the
17602 current configuration.
17604 Usage: $0 [OPTION]... [FILE]...
17606 -h, --help print this help, then exit
17607 -V, --version print version number and configuration settings, then exit
17608 -q, --quiet, --silent
17609 do not print progress messages
17610 -d, --debug don't remove temporary files
17611 --recheck update $as_me by reconfiguring in the same conditions
17612 --file=FILE[:TEMPLATE]
17613 instantiate the configuration file FILE
17614 --header=FILE[:TEMPLATE]
17615 instantiate the configuration header FILE
17617 Configuration files:
17620 Configuration headers:
17623 Report bugs to <bug-autoconf@gnu.org>."
17626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17629 configured by $0, generated by GNU Autoconf 2.63,
17630 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17632 Copyright (C) 2008 Free Software Foundation, Inc.
17633 This config.status script is free software; the Free Software Foundation
17634 gives unlimited permission to copy, distribute and modify it."
17639 test -n "\$AWK" || AWK=awk
17642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17643 # The default lists apply if the user does not specify any file.
17649 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17650 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17661 # Handling of the options.
17662 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17664 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17665 $as_echo "$ac_cs_version"; exit ;;
17666 --debug |
--debu |
--deb |
--de |
--d |
-d )
17668 --file |
--fil |
--fi |
--f )
17671 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17673 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
17674 ac_need_defaults
=false
;;
17675 --header |
--heade |
--head |
--hea )
17678 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17680 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
17681 ac_need_defaults
=false
;;
17683 # Conflict between --help and --header
17684 { $as_echo "$as_me: error: ambiguous option: $1
17685 Try \`$0 --help' for more information." >&2
17686 { (exit 1); exit 1; }; };;
17687 --help |
--hel |
-h )
17688 $as_echo "$ac_cs_usage"; exit ;;
17689 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17690 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17693 # This is an error.
17694 -*) { $as_echo "$as_me: error: unrecognized option: $1
17695 Try \`$0 --help' for more information." >&2
17696 { (exit 1); exit 1; }; } ;;
17698 *) ac_config_targets
="$ac_config_targets $1"
17699 ac_need_defaults
=false
;;
17705 ac_configure_extra_args
=
17707 if $ac_cs_silent; then
17709 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17714 if \$ac_cs_recheck; then
17715 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17717 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17718 CONFIG_SHELL='$SHELL'
17719 export CONFIG_SHELL
17724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17725 exec 5>>auto
/config.log
17728 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17729 ## Running $as_me. ##
17735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17740 # Handling of arguments.
17741 for ac_config_target
in $ac_config_targets
17743 case $ac_config_target in
17744 "auto/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
17745 "auto/config.mk") CONFIG_FILES
="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
17747 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17748 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17749 { (exit 1); exit 1; }; };;
17754 # If the user did not use the arguments to specify the items to instantiate,
17755 # then the envvar interface is used. Set only those that are not.
17756 # We use the long form for the default assignment because of an extremely
17757 # bizarre bug on SunOS 4.1.3.
17758 if $ac_need_defaults; then
17759 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17760 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17763 # Have a temporary directory for convenience. Make it in the build tree
17764 # simply because there is no reason against having it here, and in addition,
17765 # creating and moving files from /tmp can sometimes cause problems.
17766 # Hook for its removal unless debugging.
17767 # Note that there is a small window in which the directory will not be cleaned:
17768 # after its creation but before its name has been assigned to `$tmp'.
17772 trap 'exit_status=$?
17773 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17775 trap '{ (exit 1); exit 1; }' 1 2 13 15
17777 # Create a (secure) tmp directory for tmp files.
17780 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17781 test -n "$tmp" && test -d "$tmp"
17784 tmp
=.
/conf$$
-$RANDOM
17785 (umask 077 && mkdir
"$tmp")
17788 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17789 { (exit 1); exit 1; }
17792 # Set up the scripts for CONFIG_FILES section.
17793 # No need to generate them if there are no CONFIG_FILES.
17794 # This happens for instance with `./config.status config.h'.
17795 if test -n "$CONFIG_FILES"; then
17799 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17800 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17803 ac_cs_awk_cr
=$ac_cr
17806 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17811 echo "cat >conf$$subs.awk <<_ACEOF" &&
17812 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17814 } >conf$$subs.sh ||
17815 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17816 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17817 { (exit 1); exit 1; }; }
17818 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17820 for ac_last_try in false false false false false :; do
17821 . ./conf$$subs.sh ||
17822 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17823 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17824 { (exit 1); exit 1; }; }
17826 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17827 if test $ac_delim_n = $ac_delim_num; then
17829 elif $ac_last_try; then
17830 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
17831 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
17832 { (exit 1); exit 1; }; }
17834 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17837 rm -f conf$$subs.sh
17839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17840 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
17844 s/^/S["/; s
/!.
*/"]=/
17854 s/\(.\{148\}\).*/\1/
17856 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
17861 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17868 s/\(.\{148\}\).*/\1/
17870 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
17874 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
17879 ' <conf$$subs.awk | sed '
17884 ' >>$CONFIG_STATUS || ac_write_fail=1
17885 rm -f conf$$subs.awk
17886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17888 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
17889 for (key in S) S_is_set[key] = 1
17895 nfields = split(line, field, "@
")
17897 len = length(field[1])
17898 for (i = 2; i < nfields; i++) {
17900 keylen = length(key)
17901 if (S_is_set[key]) {
17903 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17904 len += length(value) + length(field[++i])
17915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17916 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17917 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
17920 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
17921 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
17922 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
17923 { (exit 1); exit 1; }; }
17926 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17927 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
17928 # trailing colons and then remove the whole line if VPATH becomes empty
17929 # (actually we leave an empty line to preserve line numbers).
17930 if test "x
$srcdir" = x.; then
17931 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17932 s/:*\$(srcdir):*/:/
17933 s/:*\${srcdir}:*/:/
17935 s/^\([^=]*=[ ]*\):*/\1/
17941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17942 fi # test -n "$CONFIG_FILES"
17944 # Set up the scripts for CONFIG_HEADERS section.
17945 # No need to generate them if there are no CONFIG_HEADERS.
17946 # This happens for instance with `./config.status Makefile'.
17947 if test -n "$CONFIG_HEADERS"; then
17948 cat >"$tmp/defines.
awk" <<\_ACAWK ||
17952 # Transform confdefs.h into an awk script `defines.awk', embedded as
17953 # here-document in config.status, that substitutes the proper values into
17954 # config.h.in to produce config.h.
17956 # Create a delimiter string that does not exist in confdefs.h, to ease
17957 # handling of long lines.
17959 for ac_last_try in false false :; do
17960 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
17961 if test -z "$ac_t"; then
17963 elif $ac_last_try; then
17964 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
17965 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
17966 { (exit 1); exit 1; }; }
17968 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17972 # For the awk script, D is an array of macro values keyed by name,
17973 # likewise P contains macro parameters if any. Preserve backslash
17974 # newline sequences.
17976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17978 s/.\{148\}/&'"$ac_delim"'/g
17981 s/^[ ]*#[ ]*define[ ][ ]*/ /
17988 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
17990 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
17994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
17995 D["\
1"]=" \
3\\\\\\n
"\\/p
17997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18002 s/.\{148\}/&'"$ac_delim"'/g
18007 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18010 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18012 ' <confdefs.h | sed '
18013 s/'"$ac_delim"'/"\\\
18014 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18017 for (key in D) D_is_set[key] = 1
18020 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18022 split(line, arg, " ")
18023 if (arg[1] == "#") {
18027 defundef
= substr
(arg
[1], 2)
18030 split(mac1
, mac2
, "(") #)
18032 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18033 if (D_is_set
[macro
]) {
18034 # Preserve the white space surrounding the "#".
18035 print prefix
"define", macro P
[macro
] D
[macro
]
18038 # Replace #undef with comments. This is necessary, for example,
18039 # in the case of _POSIX_SOURCE, which is predefined and required
18040 # on some systems where configure will not decide to define it.
18041 if (defundef
== "undef") {
18042 print
"/*", prefix defundef
, macro
, "*/"
18050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18051 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18052 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18053 { (exit 1); exit 1; }; }
18054 fi # test -n "$CONFIG_HEADERS"
18057 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
18062 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18064 case $ac_mode$ac_tag in
18066 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18067 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18068 { (exit 1); exit 1; }; };;
18069 :[FH
]-) ac_tag
=-:-;;
18070 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18087 -) ac_f
="$tmp/stdin";;
18088 *) # Look for the file first in the build tree, then in the source tree
18089 # (if the path is not absolute). The absolute path cannot be DOS-style,
18090 # because $ac_f cannot contain `:'.
18094 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18096 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18097 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18098 { (exit 1); exit 1; }; };;
18100 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18101 ac_file_inputs
="$ac_file_inputs '$ac_f'"
18104 # Let's still pretend it is `configure' which instantiates (i.e., don't
18105 # use $as_me), people would be surprised to read:
18106 # /* config.h. Generated by config.status. */
18107 configure_input
='Generated from '`
18108 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18110 if test x
"$ac_file" != x-
; then
18111 configure_input
="$ac_file. $configure_input"
18112 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18113 $as_echo "$as_me: creating $ac_file" >&6;}
18115 # Neutralize special characters interpreted by sed in replacement strings.
18116 case $configure_input in #(
18117 *\
&* |
*\|
* |
*\\* )
18118 ac_sed_conf_input
=`$as_echo "$configure_input" |
18119 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18120 *) ac_sed_conf_input
=$configure_input;;
18124 *:-:* |
*:-) cat >"$tmp/stdin" \
18125 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18126 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18127 { (exit 1); exit 1; }; } ;;
18132 ac_dir
=`$as_dirname -- "$ac_file" ||
18133 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18134 X"$ac_file" : 'X\(//\)[^/]' \| \
18135 X"$ac_file" : 'X\(//\)$' \| \
18136 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18137 $as_echo X"$ac_file" |
18138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18142 /^X\(\/\/\)[^/].*/{
18157 -*) as_dir
=.
/$as_dir;;
18159 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
18163 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18164 *) as_qdir
=$as_dir;;
18166 as_dirs
="'$as_qdir' $as_dirs"
18167 as_dir
=`$as_dirname -- "$as_dir" ||
18168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18169 X"$as_dir" : 'X\(//\)[^/]' \| \
18170 X"$as_dir" : 'X\(//\)$' \| \
18171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18172 $as_echo X"$as_dir" |
18173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18177 /^X\(\/\/\)[^/].*/{
18190 test -d "$as_dir" && break
18192 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18193 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18194 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18195 { (exit 1); exit 1; }; }; }
18199 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18201 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18202 # A ".." for each directory in $ac_dir_suffix.
18203 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18204 case $ac_top_builddir_sub in
18205 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18206 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18209 ac_abs_top_builddir
=$ac_pwd
18210 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18211 # for backward compatibility:
18212 ac_top_builddir
=$ac_top_build_prefix
18215 .
) # We are building in place.
18217 ac_top_srcdir
=$ac_top_builddir_sub
18218 ac_abs_top_srcdir
=$ac_pwd ;;
18219 [\\/]* | ?
:[\\/]* ) # Absolute name.
18220 ac_srcdir
=$srcdir$ac_dir_suffix;
18221 ac_top_srcdir
=$srcdir
18222 ac_abs_top_srcdir
=$srcdir ;;
18223 *) # Relative name.
18224 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18225 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18226 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18228 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18240 # If the template does not know about datarootdir, expand it.
18241 # FIXME: This hack should be removed a few years after 2.60.
18242 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18255 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18256 *datarootdir
*) ac_datarootdir_seen
=yes;;
18257 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18258 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18259 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18262 ac_datarootdir_hack='
18263 s&@datadir@&$datadir&g
18264 s&@docdir@&$docdir&g
18265 s&@infodir@&$infodir&g
18266 s&@localedir@&$localedir&g
18267 s&@mandir@&$mandir&g
18268 s&\\\${datarootdir}&$datarootdir&g' ;;
18272 # Neutralize VPATH when `$srcdir' = `.'.
18273 # Shell code in configure.ac might set extrasub.
18274 # FIXME: do we really want to maintain this feature?
18275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18276 ac_sed_extra="$ac_vpsub
18279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18281 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18282 s|@configure_input@|
$ac_sed_conf_input|
;t t
18283 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18284 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18285 s
&@srcdir@
&$ac_srcdir&;t t
18286 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18287 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18288 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18289 s
&@builddir@
&$ac_builddir&;t t
18290 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18291 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18292 $ac_datarootdir_hack
18294 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
18295 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
18296 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
18297 { (exit 1); exit 1; }; }
18299 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18300 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
18301 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
18302 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18303 which seems to be undefined. Please make sure it is defined." >&5
18304 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18305 which seems to be undefined. Please make sure it is defined." >&2;}
18309 -) cat "$tmp/out" && rm -f "$tmp/out";;
18310 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18312 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18313 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18314 { (exit 1); exit 1; }; }
18320 if test x"$ac_file" != x-; then
18322 $as_echo "/* $configure_input */" \
18323 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18324 } >"$tmp/config.h" \
18325 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18326 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18327 { (exit 1); exit 1; }; }
18328 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18329 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18330 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18333 mv "$tmp/config.h" "$ac_file" \
18334 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18335 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18336 { (exit 1); exit 1; }; }
18339 $as_echo "/* $configure_input */" \
18340 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18341 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18342 $as_echo "$as_me: error: could not create -" >&2;}
18343 { (exit 1); exit 1; }; }
18353 { (exit 0); exit 0; }
18355 chmod +x $CONFIG_STATUS
18356 ac_clean_files=$ac_clean_files_save
18358 test $ac_write_fail = 0 ||
18359 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
18360 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
18361 { (exit 1); exit 1; }; }
18364 # configure is writing to config.log, and then calls config.status.
18365 # config.status does its own redirection, appending to config.log.
18366 # Unfortunately, on DOS this fails, as config.log is still kept open
18367 # by configure, so config.status won't be able to
write to it
; its
18368 # output is simply discarded. So we exec the FD to /dev/null,
18369 # effectively closing config.log, so it can be properly (re)opened and
18370 # appended to by config.status. When coming back to configure, we
18371 # need to make the FD available again.
18372 if test "$no_create" != yes; then
18374 ac_config_status_args
=
18375 test "$silent" = yes &&
18376 ac_config_status_args
="$ac_config_status_args --quiet"
18378 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18379 exec 5>>auto
/config.log
18380 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18381 # would make configure fail if this is the last instruction.
18382 $ac_cs_success ||
{ (exit 1); exit 1; }
18384 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18385 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18386 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}