2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/feature.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
718 include_sys_strredir_h
724 ac_precious_vars='build_alias
740 # Initialize some variables set by options.
742 ac_init_version=false
743 # The variables have the same names as the options, with
744 # dashes changed to underlines.
752 program_transform_name=s,x,x,
760 # Installation directory options.
761 # These are left unexpanded so users can "make install exec_prefix=/foo"
762 # and all the variables that are supposed to be based on exec_prefix
763 # by default will actually change.
764 # Use braces instead of parens because sh, perl, etc. also accept them.
765 # (The list follows the same order as the GNU Coding Standards.)
766 bindir='${exec_prefix}/bin'
767 sbindir='${exec_prefix}/sbin'
768 libexecdir='${exec_prefix}/libexec'
769 datarootdir='${prefix}/share'
770 datadir='${datarootdir}'
771 sysconfdir='${prefix}/etc'
772 sharedstatedir='${prefix}/com'
773 localstatedir='${prefix}/var'
774 includedir='${prefix}/include'
775 oldincludedir='/usr/include'
776 docdir='${datarootdir}/doc/${PACKAGE}'
777 infodir='${datarootdir}/info'
782 libdir='${exec_prefix}/lib'
783 localedir='${datarootdir}/locale'
784 mandir='${datarootdir}/man'
790 # If the previous option needs an argument, assign it.
791 if test -n "$ac_prev"; then
792 eval $ac_prev=\$ac_option
798 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802 # Accept the important Cygnus configure options, so we can diagnose typos.
804 case $ac_dashdash$ac_option in
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
826 cache_file=config.cache ;;
828 -datadir | --datadir | --datadi | --datad)
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
840 -disable-* | --disable-*)
841 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
844 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
845 { (exit 1); exit 1; }; }
846 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
847 eval enable_$ac_feature=no ;;
849 -docdir | --docdir | --docdi | --doc | --do)
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 -enable-* | --enable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=\$ac_optarg ;;
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
881 -help | --help | --hel | --he | -h)
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
897 htmldir=$ac_optarg ;;
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
911 -libdir | --libdir | --libdi | --libd)
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
923 -localedir | --localedir | --localedi | --localed | --locale)
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 # Obsolete; use --without-fp.
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1002 -psdir | --psdir | --psdi | --psd | --ps)
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1015 sbindir=$ac_optarg ;;
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1026 sharedstatedir=$ac_optarg ;;
1028 -site | --site | --sit)
1030 -site=* | --site=* | --sit=*)
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1057 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=\$ac_optarg ;;
1065 -without-* | --without-*)
1066 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=no ;;
1075 # Obsolete; use --with-x.
1078 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1079 | --x-incl | --x-inc | --x-in | --x-i)
1080 ac_prev=x_includes ;;
1081 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1082 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1083 x_includes=$ac_optarg ;;
1085 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1086 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1087 ac_prev=x_libraries ;;
1088 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1089 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1090 x_libraries=$ac_optarg ;;
1092 -*) { echo "$as_me: error: unrecognized option: $ac_option
1093 Try \`$0 --help' for more information." >&2
1094 { (exit 1); exit 1; }; }
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1102 { (exit 1); exit 1; }; }
1103 eval $ac_envvar=\$ac_optarg
1104 export $ac_envvar ;;
1107 # FIXME: should be removed in autoconf 3.0.
1108 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1109 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1111 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 if test -n "$ac_prev"; then
1118 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1119 { echo "$as_me: error: missing argument to $ac_option" >&2
1120 { (exit 1); exit 1; }; }
1123 # Be sure to have absolute directory names.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1129 eval ac_val=\$$ac_var
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1135 { (exit 1); exit 1; }; }
1138 # There might be people who depend on the old broken behavior: `$host'
1139 # used to hold the argument of --host etc.
1140 # FIXME: To remove some day.
1143 target=$target_alias
1145 # FIXME: To remove some day.
1146 if test "x$host_alias" != x; then
1147 if test "x$build_alias" = x; then
1148 cross_compiling=maybe
1149 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1150 If a cross compiler is detected then cross compile mode will be used." >&2
1151 elif test "x$build_alias" != "x$host_alias"; then
1157 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159 test "$silent" = yes && exec 6>/dev/null
1162 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di=`ls -di .` &&
1164 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1165 { echo "$as_me: error: Working directory cannot be determined" >&2
1166 { (exit 1); exit 1; }; }
1167 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168 { echo "$as_me: error: pwd does not report name of working directory" >&2
1169 { (exit 1); exit 1; }; }
1172 # Find the source files, if location was not specified.
1173 if test -z "$srcdir"; then
1174 ac_srcdir_defaulted=yes
1175 # Try the directory containing this script, then the parent directory.
1176 ac_confdir=`$as_dirname -- "$0" ||
1177 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178 X"$0" : 'X\(//\)[^/]' \| \
1179 X"$0" : 'X\(//\)$' \| \
1180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1204 ac_srcdir_defaulted=no
1206 if test ! -r "$srcdir/$ac_unique_file"; then
1207 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1209 { (exit 1); exit 1; }; }
1211 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1213 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1214 { (exit 1); exit 1; }; }
1216 # When building in place, set srcdir=.
1217 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 # Remove unnecessary trailing slashes from srcdir.
1221 # Double slashes in file names in object file debugging info
1222 # mess up M-x gdb in Emacs.
1224 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1226 for ac_var in $ac_precious_vars; do
1227 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_env_${ac_var}_value=\$${ac_var}
1229 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234 # Report the --help message.
1236 if test "$ac_init_help" = "long"; then
1237 # Omit some internal or obsolete options to make the list less imposing.
1238 # This message is too long to be a string in the A/UX 3.1 sh.
1240 \`configure' configures this package to adapt to many kinds of systems.
1242 Usage: $0 [OPTION]... [VAR=VALUE]...
1244 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245 VAR=VALUE. See below for descriptions of some of the useful variables.
1247 Defaults for the options are specified in brackets.
1250 -h, --help display this help and exit
1251 --help=short display options specific to this package
1252 --help=recursive display the short help of all the included packages
1253 -V, --version display version information and exit
1254 -q, --quiet, --silent do not print \`checking...' messages
1255 --cache-file=FILE cache test results in FILE [disabled]
1256 -C, --config-cache alias for \`--cache-file=config.cache'
1257 -n, --no-create do not create output files
1258 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1260 Installation directories:
1261 --prefix=PREFIX install architecture-independent files in PREFIX
1262 [$ac_default_prefix]
1263 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 By default, \`make install' will install all the files in
1267 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1268 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269 for instance \`--prefix=\$HOME'.
1271 For better control, use the options below.
1273 Fine tuning of the installation directories:
1274 --bindir=DIR user executables [EPREFIX/bin]
1275 --sbindir=DIR system admin executables [EPREFIX/sbin]
1276 --libexecdir=DIR program executables [EPREFIX/libexec]
1277 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1278 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1279 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1280 --libdir=DIR object code libraries [EPREFIX/lib]
1281 --includedir=DIR C header files [PREFIX/include]
1282 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1283 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1284 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1285 --infodir=DIR info documentation [DATAROOTDIR/info]
1286 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1287 --mandir=DIR man documentation [DATAROOTDIR/man]
1288 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1289 --htmldir=DIR html documentation [DOCDIR]
1290 --dvidir=DIR dvi documentation [DOCDIR]
1291 --pdfdir=DIR pdf documentation [DOCDIR]
1292 --psdir=DIR ps documentation [DOCDIR]
1298 --x-includes=DIR X include files are in DIR
1299 --x-libraries=DIR X library files are in DIR
1302 --program-prefix=PREFIX prepend PREFIX to installed program names
1303 --program-suffix=SUFFIX append SUFFIX to installed program names
1304 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1307 --build=BUILD configure for building on BUILD [guessed]
1308 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312 if test -n "$ac_init_help"; then
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-everything enable standard non-multichoice features
1320 NOTE: this option is order dependent
1321 NOTE: automatically enabled with --enable-shared
1322 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1323 --enable-combining enable composition of base and combining characters
1324 --enable-xft enable xft support on systems that have it
1325 --enable-font-styles enable bold and italic support
1326 --enable-afterimage enable integration with libAfterImage for background images
1327 --enable-transparency enable transparent backgrounds
1328 --enable-fading enable colors fading when off focus
1329 --enable-rxvt-scroll enable rxvt style scrollbar
1330 --enable-next-scroll enable NeXT style scrollbar
1331 --enable-xterm-scroll enable Xterm style scrollbar
1332 --enable-perl enable embedded perl interpreter
1333 --enable-plain-scroll enable plain style scrollbar
1334 --enable-xim XIM (X Input Method) protocol support
1335 --disable-backspace-key disable handling of the backspace key
1336 --disable-delete-key disable handling of the delete key
1337 --disable-resources disable all resource checking
1338 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1339 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1340 --disable-swapscreen disable swap screen support
1341 --enable-iso14755 enable support for extended ISO 14755 modes
1342 --enable-frills enable support for rarely used features
1343 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1344 --enable-selectionscrolling enable scrolling during selections
1345 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1346 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1347 --enable-smart-resize enable smart growth/shrink behaviour
1348 --enable-text-blink enable blinking text
1349 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1350 --enable-utmp enable utmp (utmpx) support
1351 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1352 --enable-lastlog enable lastlog support (requires --enable-utmp)
1355 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1356 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1357 --with-afterimage-config=DIR use libAfterImage config script in DIR
1358 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1359 --with-res-name=NAME use this as default resource name (default: urxvt)
1360 --with-res-class=CLASS use this as the resource class (default: URxvt)
1361 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1362 --with-term=NAME set the terminal to NAME (default: rxvt)
1363 --with-terminfo=PATH set the path to the terminfo tree to PATH
1364 --with-x use the X Window System
1366 Some influential environment variables:
1367 CC C compiler command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1370 nonstandard directory <lib dir>
1371 LIBS libraries to pass to the linker, e.g. -l<library>
1372 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir>
1374 CXX C++ compiler command
1375 CXXFLAGS C++ compiler flags
1377 XMKMF Path to xmkmf, Makefile generator for X Window System
1378 CXXCPP C++ preprocessor
1380 Use these variables to override the choices made by `configure' or to help
1381 it to find libraries and programs with nonstandard names/locations.
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1390 test -d "$ac_dir" || continue
1394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 ac_abs_top_builddir=$ac_pwd
1405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir=$ac_top_build_prefix
1410 .) # We are building in place.
1412 ac_top_srcdir=$ac_top_builddir_sub
1413 ac_abs_top_srcdir=$ac_pwd ;;
1414 [\\/]* | ?:[\\/]* ) # Absolute name.
1415 ac_srcdir=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir=$srcdir
1417 ac_abs_top_srcdir=$srcdir ;;
1419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" || { ac_status=$?; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 cd "$ac_pwd" || { ac_status=$?; break; }
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1444 generated by GNU Autoconf 2.61
1446 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1448 This configure script is free software; the Free Software Foundation
1449 gives unlimited permission to copy, distribute and modify it.
1453 cat >config.log <<_ACEOF
1454 This file contains any messages produced by compilers while
1455 running configure, to aid debugging if configure makes a mistake.
1457 It was created by $as_me, which was
1458 generated by GNU Autoconf 2.61. Invocation command line was
1470 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1479 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1483 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 echo "PATH: $as_dir"
1510 # Keep a trace of the command line.
1511 # Strip out --no-create and --no-recursion so they do not pile up.
1512 # Strip out --silent because we don't want to record it for future runs.
1513 # Also quote any args containing shell meta-characters.
1514 # Make two passes to allow for proper duplicate-argument suppression.
1518 ac_must_keep_next=false
1524 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1526 | -silent | --silent | --silen | --sile | --sil)
1529 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true; then
1536 ac_must_keep_next=false # Got value, back to normal.
1539 *=* | --config-cache | -C | -disable-* | --disable-* \
1540 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1541 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1542 | -with-* | --with-* | -without-* | --without-* | --x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 -* ) ac_must_keep_next=true ;;
1550 ac_configure_args="$ac_configure_args '$ac_arg'"
1555 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1556 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1558 # When interrupted or exit'd, cleanup temporary files, and complete
1559 # config.log. We remove comments because anyway the quotes in there
1560 # would cause problems or look ugly.
1561 # WARNING: Use '\'' to represent an apostrophe within the trap.
1562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563 trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1569 ## ---------------- ##
1570 ## Cache variables. ##
1571 ## ---------------- ##
1574 # The following way of writing the cache mishandles newlines in values,
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 ## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##
1611 for ac_var in $ac_subst_vars
1613 eval ac_val=\$$ac_var
1615 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 echo "$ac_var='\''$ac_val'\''"
1621 if test -n "$ac_subst_files"; then
1623 ## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##
1628 for ac_var in $ac_subst_files
1630 eval ac_val=\$$ac_var
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 echo "$ac_var='\''$ac_val'\''"
1639 if test -s confdefs.h; then
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 for ac_signal in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1663 rm -f -r conftest* confdefs.h
1665 # Predefined preprocessor variables.
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_NAME "$PACKAGE_NAME"
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_STRING "$PACKAGE_STRING"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692 # Let the site file select an alternate cache file if it wants to.
1693 # Prefer explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695 set x "$CONFIG_SITE"
1696 elif test "x$prefix" != xNONE; then
1697 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699 set x "$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707 echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1713 if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718 echo "$as_me: loading cache $cache_file" >&6;}
1720 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1721 *) . "./$cache_file";;
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726 echo "$as_me: creating cache $cache_file" >&6;}
1730 # Check that the precious variables saved in the cache have kept the same
1732 ac_cache_corrupted=false
1733 for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753 echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755 echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1771 if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1804 ac_config_headers="$ac_config_headers config.h:config.h.in"
1808 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1809 if test -f "$ac_dir/install-sh"; then
1811 ac_install_sh="$ac_aux_dir/install-sh -c"
1813 elif test -f "$ac_dir/install.sh"; then
1815 ac_install_sh="$ac_aux_dir/install.sh -c"
1817 elif test -f "$ac_dir/shtool"; then
1819 ac_install_sh="$ac_aux_dir/shtool install -c"
1823 if test -z "$ac_aux_dir"; then
1824 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1825 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1826 { (exit 1); exit 1; }; }
1829 # These three variables are undocumented and unsupported,
1830 # and are intended to be withdrawn in a future Autoconf release.
1831 # They can cause serious problems if a builder's source tree is in a directory
1832 # whose full name contains unusual characters.
1833 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1834 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1835 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1838 # Make sure we can run config.sub.
1839 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1840 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1841 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1842 { (exit 1); exit 1; }; }
1844 { echo "$as_me:$LINENO: checking build system type" >&5
1845 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1846 if test "${ac_cv_build+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 ac_build_alias=$build_alias
1850 test "x$ac_build_alias" = x &&
1851 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1852 test "x$ac_build_alias" = x &&
1853 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1854 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1855 { (exit 1); exit 1; }; }
1856 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1857 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1858 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1859 { (exit 1); exit 1; }; }
1862 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1863 echo "${ECHO_T}$ac_cv_build" >&6; }
1864 case $ac_cv_build in
1866 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1867 echo "$as_me: error: invalid value of canonical build" >&2;}
1868 { (exit 1); exit 1; }; };;
1871 ac_save_IFS=$IFS; IFS='-'
1877 # Remember, the first character of IFS is used to create $*,
1878 # except with old shells:
1881 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1884 { echo "$as_me:$LINENO: checking host system type" >&5
1885 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1886 if test "${ac_cv_host+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test "x$host_alias" = x; then
1890 ac_cv_host=$ac_cv_build
1892 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1893 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1894 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1895 { (exit 1); exit 1; }; }
1899 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1900 echo "${ECHO_T}$ac_cv_host" >&6; }
1903 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1904 echo "$as_me: error: invalid value of canonical host" >&2;}
1905 { (exit 1); exit 1; }; };;
1908 ac_save_IFS=$IFS; IFS='-'
1914 # Remember, the first character of IFS is used to create $*,
1915 # except with old shells:
1918 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1922 VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1923 DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1925 echo "configuring for rxvt $VERSION"
1928 orig_CXXFLAGS="$CXXFLAGS"
1932 ac_cpp='$CPP $CPPFLAGS'
1933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1936 if test -n "$ac_tool_prefix"; then
1937 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1938 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1941 if test "${ac_cv_prog_CC+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 if test -n "$CC"; then
1945 ac_cv_prog_CC="$CC" # Let the user override the test.
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 test -z "$as_dir" && as_dir=.
1952 for ac_exec_ext in '' $ac_executable_extensions; do
1953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1954 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1965 if test -n "$CC"; then
1966 { echo "$as_me:$LINENO: result: $CC" >&5
1967 echo "${ECHO_T}$CC" >&6; }
1969 { echo "$as_me:$LINENO: result: no" >&5
1970 echo "${ECHO_T}no" >&6; }
1975 if test -z "$ac_cv_prog_CC"; then
1977 # Extract the first word of "gcc", so it can be a program name with args.
1978 set dummy gcc; ac_word=$2
1979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1981 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1984 if test -n "$ac_ct_CC"; then
1985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1994 ac_cv_prog_ac_ct_CC="gcc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2005 if test -n "$ac_ct_CC"; then
2006 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2007 echo "${ECHO_T}$ac_ct_CC" >&6; }
2009 { echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6; }
2013 if test "x$ac_ct_CC" = x; then
2016 case $cross_compiling:$ac_tool_warned in
2018 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2019 whose name does not start with the host triplet. If you think this
2020 configuration is useful to you, please write to autoconf@gnu.org." >&5
2021 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2022 whose name does not start with the host triplet. If you think this
2023 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2024 ac_tool_warned=yes ;;
2032 if test -z "$CC"; then
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}cc; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_CC="${ac_tool_prefix}cc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 { echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6; }
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2073 if test -z "$CC"; then
2074 # Extract the first word of "cc", so it can be a program name with args.
2075 set dummy cc; ac_word=$2
2076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078 if test "${ac_cv_prog_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$CC"; then
2082 ac_cv_prog_CC="$CC" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2093 ac_prog_rejected=yes
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 if test $ac_prog_rejected = yes; then
2105 # We found a bogon in the path, so make sure we never use it.
2106 set dummy $ac_cv_prog_CC
2108 if test $# != 0; then
2109 # We chose a different compiler from the bogus one.
2110 # However, it has the same basename, so the bogon will be chosen
2111 # first if we set CC to just the basename; use the full file name.
2113 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2119 if test -n "$CC"; then
2120 { echo "$as_me:$LINENO: result: $CC" >&5
2121 echo "${ECHO_T}$CC" >&6; }
2123 { echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6; }
2129 if test -z "$CC"; then
2130 if test -n "$ac_tool_prefix"; then
2131 for ac_prog in cl.exe
2133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 if test -n "$CC"; then
2162 { echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6; }
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2170 test -n "$CC" && break
2173 if test -z "$CC"; then
2175 for ac_prog in cl.exe
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy $ac_prog; ac_word=$2
2179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test -n "$ac_ct_CC"; then
2185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 ac_cv_prog_ac_ct_CC="$ac_prog"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205 if test -n "$ac_ct_CC"; then
2206 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2207 echo "${ECHO_T}$ac_ct_CC" >&6; }
2209 { echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6; }
2214 test -n "$ac_ct_CC" && break
2217 if test "x$ac_ct_CC" = x; then
2220 case $cross_compiling:$ac_tool_warned in
2222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet. If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&5
2225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2226 whose name does not start with the host triplet. If you think this
2227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2228 ac_tool_warned=yes ;;
2237 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: no acceptable C compiler found in \$PATH
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2243 # Provide some information about the compiler.
2244 echo "$as_me:$LINENO: checking for C compiler version" >&5
2245 ac_compiler=`set X $ac_compile; echo $2`
2246 { (ac_try="$ac_compiler --version >&5"
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2252 (eval "$ac_compiler --version >&5") 2>&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }
2256 { (ac_try="$ac_compiler -v >&5"
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_compiler -v >&5") 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }
2266 { (ac_try="$ac_compiler -V >&5"
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2272 (eval "$ac_compiler -V >&5") 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }
2277 cat >conftest.$ac_ext <<_ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2292 ac_clean_files_save=$ac_clean_files
2293 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2294 # Try to create an executable without -o first, disregard a.out.
2295 # It will help us diagnose broken compilers, and finding out an intuition
2297 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2298 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2299 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2301 # List of possible output files, starting from the most likely.
2302 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2303 # only as a last resort. b.out is created by i960 compilers.
2304 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2306 # The IRIX 6 linker writes into existing files which may not be
2307 # executable, retaining their permissions. Remove them first so a
2308 # subsequent execution test works.
2310 for ac_file in $ac_files
2313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2319 if { (ac_try="$ac_link_default"
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325 (eval "$ac_link_default") 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; then
2329 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2330 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2331 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2332 # so that the user can short-circuit this test for compilers unknown to
2334 for ac_file in $ac_files ''
2336 test -f "$ac_file" || continue
2338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2341 # We found the default executable, but exeext='' is most
2345 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2347 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349 # We set ac_cv_exeext here because the later test for it is not
2350 # safe: cross compilers may not add the suffix if given an `-o'
2351 # argument, so we may need to know it at that point already.
2352 # Even if this section looks crufty: it has the advantage of
2359 test "$ac_cv_exeext" = no && ac_cv_exeext=
2365 { echo "$as_me:$LINENO: result: $ac_file" >&5
2366 echo "${ECHO_T}$ac_file" >&6; }
2367 if test -z "$ac_file"; then
2368 echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2371 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: C compiler cannot create executables
2374 See \`config.log' for more details." >&2;}
2375 { (exit 77); exit 77; }; }
2378 ac_exeext=$ac_cv_exeext
2380 # Check that the compiler produces executables we can run. If not, either
2381 # the compiler is broken, or we cross compile.
2382 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2383 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2384 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2385 # If not cross compiling, check that we can run a simple program.
2386 if test "$cross_compiling" != yes; then
2387 if { ac_try='./$ac_file'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 if test "$cross_compiling" = maybe; then
2402 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2403 If you meant to cross compile, use \`--host'.
2404 See \`config.log' for more details." >&5
2405 echo "$as_me: error: cannot run C compiled programs.
2406 If you meant to cross compile, use \`--host'.
2407 See \`config.log' for more details." >&2;}
2408 { (exit 1); exit 1; }; }
2412 { echo "$as_me:$LINENO: result: yes" >&5
2413 echo "${ECHO_T}yes" >&6; }
2415 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2416 ac_clean_files=$ac_clean_files_save
2417 # Check that the compiler produces executables we can run. If not, either
2418 # the compiler is broken, or we cross compile.
2419 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2420 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2421 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2422 echo "${ECHO_T}$cross_compiling" >&6; }
2424 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2425 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2426 if { (ac_try="$ac_link"
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_link") 2>&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; then
2436 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2437 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2438 # work properly (i.e., refer to `conftest.exe'), while it won't with
2440 for ac_file in conftest.exe conftest conftest.*; do
2441 test -f "$ac_file" || continue
2443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2444 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2450 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2451 See \`config.log' for more details." >&5
2452 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2453 See \`config.log' for more details." >&2;}
2454 { (exit 1); exit 1; }; }
2457 rm -f conftest$ac_cv_exeext
2458 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2459 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2461 rm -f conftest.$ac_ext
2462 EXEEXT=$ac_cv_exeext
2464 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2465 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2466 if test "${ac_cv_objext+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 cat >conftest.$ac_ext <<_ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2484 rm -f conftest.o conftest.obj
2485 if { (ac_try="$ac_compile"
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_compile") 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; then
2495 for ac_file in conftest.o conftest.obj conftest.*; do
2496 test -f "$ac_file" || continue;
2498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2504 echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2507 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2510 See \`config.log' for more details." >&2;}
2511 { (exit 1); exit 1; }; }
2514 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2516 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2517 echo "${ECHO_T}$ac_cv_objext" >&6; }
2518 OBJEXT=$ac_cv_objext
2520 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2521 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2522 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 cat >conftest.$ac_ext <<_ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2543 rm -f conftest.$ac_objext
2544 if { (ac_try="$ac_compile"
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_compile") 2>conftest.er1
2552 grep -v '^ *+' conftest.er1 >conftest.err
2554 cat conftest.err >&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); } && {
2557 test -z "$ac_c_werror_flag" ||
2558 test ! -s conftest.err
2559 } && test -s conftest.$ac_objext; then
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2572 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2573 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2574 GCC=`test $ac_compiler_gnu = yes && echo yes`
2575 ac_test_CFLAGS=${CFLAGS+set}
2576 ac_save_CFLAGS=$CFLAGS
2577 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2579 if test "${ac_cv_prog_cc_g+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 ac_save_c_werror_flag=$ac_c_werror_flag
2583 ac_c_werror_flag=yes
2586 cat >conftest.$ac_ext <<_ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compile") 2>conftest.er1
2610 grep -v '^ *+' conftest.er1 >conftest.err
2612 cat conftest.err >&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); } && {
2615 test -z "$ac_c_werror_flag" ||
2616 test ! -s conftest.err
2617 } && test -s conftest.$ac_objext; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (ac_try="$ac_compile"
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_compile") 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } && {
2653 test -z "$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2655 } && test -s conftest.$ac_objext; then
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 ac_c_werror_flag=$ac_save_c_werror_flag
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compile") 2>conftest.er1
2687 grep -v '^ *+' conftest.er1 >conftest.err
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } && {
2692 test -z "$ac_c_werror_flag" ||
2693 test ! -s conftest.err
2694 } && test -s conftest.$ac_objext; then
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2710 ac_c_werror_flag=$ac_save_c_werror_flag
2712 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2713 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2714 if test "$ac_test_CFLAGS" = set; then
2715 CFLAGS=$ac_save_CFLAGS
2716 elif test $ac_cv_prog_cc_g = yes; then
2717 if test "$GCC" = yes; then
2723 if test "$GCC" = yes; then
2729 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2730 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2731 if test "${ac_cv_prog_cc_c89+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 ac_cv_prog_cc_c89=no
2736 cat >conftest.$ac_ext <<_ACEOF
2739 cat confdefs.h >>conftest.$ac_ext
2740 cat >>conftest.$ac_ext <<_ACEOF
2741 /* end confdefs.h. */
2744 #include <sys/types.h>
2745 #include <sys/stat.h>
2746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2747 struct buf { int x; };
2748 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2749 static char *e (p, i)
2755 static char *f (char * (*g) (char **, int), char **p, ...)
2760 s = g (p, va_arg (v,int));
2765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2766 function prototypes and stuff, but not '\xHH' hex character constants.
2767 These don't provoke an error unfortunately, instead are silently treated
2768 as 'x'. The following induces an error, until -std is added to get
2769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2770 array size at least. It's necessary to write '\x00'==0 to get something
2771 that's true only with -std. */
2772 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2775 inside strings and character constants. */
2777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2779 int test (int i, double x);
2780 struct s1 {int (*f) (int a);};
2781 struct s2 {int (*f) (double a);};
2782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2796 CC="$ac_save_CC $ac_arg"
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_compile") 2>conftest.er1
2806 grep -v '^ *+' conftest.er1 >conftest.err
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } && {
2811 test -z "$ac_c_werror_flag" ||
2812 test ! -s conftest.err
2813 } && test -s conftest.$ac_objext; then
2814 ac_cv_prog_cc_c89=$ac_arg
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2822 rm -f core conftest.err conftest.$ac_objext
2823 test "x$ac_cv_prog_cc_c89" != "xno" && break
2825 rm -f conftest.$ac_ext
2830 case "x$ac_cv_prog_cc_c89" in
2832 { echo "$as_me:$LINENO: result: none needed" >&5
2833 echo "${ECHO_T}none needed" >&6; } ;;
2835 { echo "$as_me:$LINENO: result: unsupported" >&5
2836 echo "${ECHO_T}unsupported" >&6; } ;;
2838 CC="$CC $ac_cv_prog_cc_c89"
2839 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2840 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2845 ac_cpp='$CPP $CPPFLAGS'
2846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2851 ac_cpp='$CXXCPP $CPPFLAGS'
2852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2855 if test -z "$CXX"; then
2856 if test -n "$CCC"; then
2859 if test -n "$ac_tool_prefix"; then
2860 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2866 if test "${ac_cv_prog_CXX+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 if test -n "$CXX"; then
2870 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 if test -n "$CXX"; then
2891 { echo "$as_me:$LINENO: result: $CXX" >&5
2892 echo "${ECHO_T}$CXX" >&6; }
2894 { echo "$as_me:$LINENO: result: no" >&5
2895 echo "${ECHO_T}no" >&6; }
2899 test -n "$CXX" && break
2902 if test -z "$CXX"; then
2904 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907 set dummy $ac_prog; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if test -n "$ac_ct_CXX"; then
2914 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_ac_ct_CXX="$ac_prog"
2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2934 if test -n "$ac_ct_CXX"; then
2935 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2936 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2943 test -n "$ac_ct_CXX" && break
2946 if test "x$ac_ct_CXX" = x; then
2949 case $cross_compiling:$ac_tool_warned in
2951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2952 whose name does not start with the host triplet. If you think this
2953 configuration is useful to you, please write to autoconf@gnu.org." >&5
2954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2955 whose name does not start with the host triplet. If you think this
2956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2957 ac_tool_warned=yes ;;
2965 # Provide some information about the compiler.
2966 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2967 ac_compiler=`set X $ac_compile; echo $2`
2968 { (ac_try="$ac_compiler --version >&5"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compiler --version >&5") 2>&5
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }
2978 { (ac_try="$ac_compiler -v >&5"
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_compiler -v >&5") 2>&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }
2988 { (ac_try="$ac_compiler -V >&5"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compiler -V >&5") 2>&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }
2999 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3000 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3001 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3022 rm -f conftest.$ac_objext
3023 if { (ac_try="$ac_compile"
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compile") 2>conftest.er1
3031 grep -v '^ *+' conftest.er1 >conftest.err
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && {
3036 test -z "$ac_cxx_werror_flag" ||
3037 test ! -s conftest.err
3038 } && test -s conftest.$ac_objext; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3051 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3052 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3053 GXX=`test $ac_compiler_gnu = yes && echo yes`
3054 ac_test_CXXFLAGS=${CXXFLAGS+set}
3055 ac_save_CXXFLAGS=$CXXFLAGS
3056 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3057 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_cxx_g+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3062 ac_cxx_werror_flag=yes
3065 cat >conftest.$ac_ext <<_ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3080 rm -f conftest.$ac_objext
3081 if { (ac_try="$ac_compile"
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
3089 grep -v '^ *+' conftest.er1 >conftest.err
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } && {
3094 test -z "$ac_cxx_werror_flag" ||
3095 test ! -s conftest.err
3096 } && test -s conftest.$ac_objext; then
3097 ac_cv_prog_cxx_g=yes
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3118 rm -f conftest.$ac_objext
3119 if { (ac_try="$ac_compile"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_compile") 2>conftest.er1
3127 grep -v '^ *+' conftest.er1 >conftest.err
3129 cat conftest.err >&5
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); } && {
3132 test -z "$ac_cxx_werror_flag" ||
3133 test ! -s conftest.err
3134 } && test -s conftest.$ac_objext; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } && {
3171 test -z "$ac_cxx_werror_flag" ||
3172 test ! -s conftest.err
3173 } && test -s conftest.$ac_objext; then
3174 ac_cv_prog_cxx_g=yes
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3191 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3192 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3193 if test "$ac_test_CXXFLAGS" = set; then
3194 CXXFLAGS=$ac_save_CXXFLAGS
3195 elif test $ac_cv_prog_cxx_g = yes; then
3196 if test "$GXX" = yes; then
3202 if test "$GXX" = yes; then
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 ac_cpp='$CPP $CPPFLAGS'
3216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3220 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3221 # On Suns, sometimes $CPP names a directory.
3222 if test -n "$CPP" && test -d "$CPP"; then
3225 if test -z "$CPP"; then
3226 if test "${ac_cv_prog_CPP+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 # Double quotes because CPP needs to be expanded
3230 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3233 for ac_c_preproc_warn_flag in '' yes
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3248 # include <limits.h>
3250 # include <assert.h>
3254 if { (ac_try="$ac_cpp conftest.$ac_ext"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev/null && {
3267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 # Broken: fails on valid input.
3279 rm -f conftest.err conftest.$ac_ext
3281 # OK, works on sane cases. Now check whether nonexistent headers
3282 # can be detected and how.
3283 cat >conftest.$ac_ext <<_ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include <ac_nonexistent.h>
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); } >/dev/null && {
3304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3307 # Broken: success on invalid input.
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 # Passes both tests.
3318 rm -f conftest.err conftest.$ac_ext
3321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322 rm -f conftest.err conftest.$ac_ext
3323 if $ac_preproc_ok; then
3335 { echo "$as_me:$LINENO: result: $CPP" >&5
3336 echo "${ECHO_T}$CPP" >&6; }
3338 for ac_c_preproc_warn_flag in '' yes
3340 # Use a header file that comes with gcc, so configuring glibc
3341 # with a fresh cross-compiler works.
3342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343 # <limits.h> exists even on freestanding compilers.
3344 # On the NeXT, cc -E runs the code through the compiler's parser,
3345 # not just through cpp. "Syntax error" is here to catch this case.
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3353 # include <limits.h>
3355 # include <assert.h>
3359 if { (ac_try="$ac_cpp conftest.$ac_ext"
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } >/dev/null && {
3372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3373 test ! -s conftest.err
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3380 # Broken: fails on valid input.
3384 rm -f conftest.err conftest.$ac_ext
3386 # OK, works on sane cases. Now check whether nonexistent headers
3387 # can be detected and how.
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 #include <ac_nonexistent.h>
3396 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 grep -v '^ *+' conftest.er1 >conftest.err
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } >/dev/null && {
3409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3412 # Broken: success on invalid input.
3415 echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 # Passes both tests.
3423 rm -f conftest.err conftest.$ac_ext
3426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3427 rm -f conftest.err conftest.$ac_ext
3428 if $ac_preproc_ok; then
3431 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3434 See \`config.log' for more details." >&2;}
3435 { (exit 1); exit 1; }; }
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 # Find a good install program. We prefer a C program (faster),
3445 # so one script is as good as another. But avoid the broken or
3446 # incompatible versions:
3447 # SysV /etc/install, /usr/sbin/install
3448 # SunOS /usr/etc/install
3449 # IRIX /sbin/install
3451 # AmigaOS /C/install, which installs bootblocks on floppy discs
3452 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3453 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3454 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3455 # OS/2's system install, which has a completely different semantic
3456 # ./install, which can be erroneously created by make from ./install.sh.
3457 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3458 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3459 if test -z "$INSTALL"; then
3460 if test "${ac_cv_path_install+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir=.
3468 # Account for people who put trailing slashes in PATH elements.
3470 ./ | .// | /cC/* | \
3471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3475 # OSF1 and SCO ODT 3.0 have their own names for install.
3476 # Don't use installbsd from OSF since it installs stuff as root
3478 for ac_prog in ginstall scoinst install; do
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3481 if test $ac_prog = install &&
3482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3483 # AIX install. It has an incompatible calling convention.
3485 elif test $ac_prog = install &&
3486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3487 # program-specific install script used by HP pwplus--don't use.
3490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3503 if test "${ac_cv_path_install+set}" = set; then
3504 INSTALL=$ac_cv_path_install
3506 # As a last resort, use the slow shell script. Don't cache a
3507 # value for INSTALL within a source directory, because that will
3508 # break other packages using the cache if that directory is
3509 # removed, or if the value is a relative name.
3510 INSTALL=$ac_install_sh
3513 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3514 echo "${ECHO_T}$INSTALL" >&6; }
3516 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3517 # It thinks the first close brace ends the variable substitution.
3518 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3520 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3522 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3527 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3528 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3529 if test "${ac_cv_path_GREP+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 # Extract the first word of "grep ggrep" to use in msg output
3533 if test -z "$GREP"; then
3534 set dummy grep ggrep; ac_prog_name=$2
3535 if test "${ac_cv_path_GREP+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 ac_path_GREP_found=false
3539 # Loop through the user's path and test for each of PROGNAME-LIST
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3544 test -z "$as_dir" && as_dir=.
3545 for ac_prog in grep ggrep; do
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3548 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3549 # Check for GNU ac_path_GREP and select it if it is found.
3550 # Check for GNU $ac_path_GREP
3551 case `"$ac_path_GREP" --version 2>&1` in
3553 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3556 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3559 cat "conftest.in" "conftest.in" >"conftest.tmp"
3560 mv "conftest.tmp" "conftest.in"
3561 cp "conftest.in" "conftest.nl"
3562 echo 'GREP' >> "conftest.nl"
3563 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3564 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3565 ac_count=`expr $ac_count + 1`
3566 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3567 # Best one so far, save it but keep looking for a better one
3568 ac_cv_path_GREP="$ac_path_GREP"
3569 ac_path_GREP_max=$ac_count
3571 # 10*(2^10) chars as input seems more than enough
3572 test $ac_count -gt 10 && break
3574 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3578 $ac_path_GREP_found && break 3
3588 GREP="$ac_cv_path_GREP"
3589 if test -z "$GREP"; then
3590 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3591 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3592 { (exit 1); exit 1; }; }
3596 ac_cv_path_GREP=$GREP
3601 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3602 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3603 GREP="$ac_cv_path_GREP"
3606 { echo "$as_me:$LINENO: checking for egrep" >&5
3607 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3608 if test "${ac_cv_path_EGREP+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3612 then ac_cv_path_EGREP="$GREP -E"
3614 # Extract the first word of "egrep" to use in msg output
3615 if test -z "$EGREP"; then
3616 set dummy egrep; ac_prog_name=$2
3617 if test "${ac_cv_path_EGREP+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 ac_path_EGREP_found=false
3621 # Loop through the user's path and test for each of PROGNAME-LIST
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3626 test -z "$as_dir" && as_dir=.
3627 for ac_prog in egrep; do
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3630 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3631 # Check for GNU ac_path_EGREP and select it if it is found.
3632 # Check for GNU $ac_path_EGREP
3633 case `"$ac_path_EGREP" --version 2>&1` in
3635 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3638 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3641 cat "conftest.in" "conftest.in" >"conftest.tmp"
3642 mv "conftest.tmp" "conftest.in"
3643 cp "conftest.in" "conftest.nl"
3644 echo 'EGREP' >> "conftest.nl"
3645 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3647 ac_count=`expr $ac_count + 1`
3648 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3649 # Best one so far, save it but keep looking for a better one
3650 ac_cv_path_EGREP="$ac_path_EGREP"
3651 ac_path_EGREP_max=$ac_count
3653 # 10*(2^10) chars as input seems more than enough
3654 test $ac_count -gt 10 && break
3656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660 $ac_path_EGREP_found && break 3
3670 EGREP="$ac_cv_path_EGREP"
3671 if test -z "$EGREP"; then
3672 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3673 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3674 { (exit 1); exit 1; }; }
3678 ac_cv_path_EGREP=$EGREP
3684 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3685 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3686 EGREP="$ac_cv_path_EGREP"
3690 { echo "$as_me:$LINENO: checking for AIX" >&5
3691 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3704 $EGREP "yes" >/dev/null 2>&1; then
3705 { echo "$as_me:$LINENO: result: yes" >&5
3706 echo "${ECHO_T}yes" >&6; }
3707 cat >>confdefs.h <<\_ACEOF
3708 #define _ALL_SOURCE 1
3712 { echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6; }
3718 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3719 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3720 if test "${ac_cv_search_strerror+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 ac_func_search_save_LIBS=$LIBS
3724 cat >conftest.$ac_ext <<_ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h. */
3731 /* Override any GCC internal prototype to avoid an error.
3732 Use char because int might match the return type of a GCC
3733 builtin and then its argument prototype would still apply. */
3746 for ac_lib in '' cposix; do
3747 if test -z "$ac_lib"; then
3748 ac_res="none required"
3751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3753 rm -f conftest.$ac_objext conftest$ac_exeext
3754 if { (ac_try="$ac_link"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3760 (eval "$ac_link") 2>conftest.er1
3762 grep -v '^ *+' conftest.er1 >conftest.err
3764 cat conftest.err >&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } && {
3767 test -z "$ac_c_werror_flag" ||
3768 test ! -s conftest.err
3769 } && test -s conftest$ac_exeext &&
3770 $as_test_x conftest$ac_exeext; then
3771 ac_cv_search_strerror=$ac_res
3773 echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3781 if test "${ac_cv_search_strerror+set}" = set; then
3785 if test "${ac_cv_search_strerror+set}" = set; then
3788 ac_cv_search_strerror=no
3791 LIBS=$ac_func_search_save_LIBS
3793 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3794 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3795 ac_res=$ac_cv_search_strerror
3796 if test "$ac_res" != no; then
3797 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3802 ac_cpp='$CXXCPP $CPPFLAGS'
3803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3808 if test x$GCC = xyes && test x$GXX = xyes; then
3809 { echo "$as_me:$LINENO: checking for working libsupc++" >&5
3810 echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; }
3814 LIBS="$LIBS -lsupc++"
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 struct test { }; void f() try { throw new test; } catch (...) { throw; }
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (ac_try="$ac_link"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_link") 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } && {
3846 test -z "$ac_cxx_werror_flag" ||
3847 test ! -s conftest.err
3848 } && test -s conftest$ac_exeext &&
3849 $as_test_x conftest$ac_exeext; then
3850 { echo "$as_me:$LINENO: result: ok" >&5
3851 echo "${ECHO_T}ok" >&6; }
3853 echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3857 { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3858 echo "${ECHO_T}no, making everything bigger and slower" >&6; }
3865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3866 conftest$ac_exeext conftest.$ac_ext
3872 if test -z "$orig_CXXFLAGS"; then
3873 if test x$GCC = xyes && test "x$GXX" = xyes; then
3874 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && {
3904 test -z "$ac_cxx_werror_flag" ||
3905 test ! -s conftest.err
3906 } && test -s conftest.$ac_objext; then
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 cat >>confdefs.h <<\_ACEOF
3924 #define _GNU_SOURCE 1
3931 cat >>confdefs.h <<\_ACEOF
3932 #define _XOPEN_SOURCE 500
3939 { echo "$as_me:$LINENO: checking for setlocale" >&5
3940 echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3941 if test "${ac_cv_func_setlocale+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 cat >conftest.$ac_ext <<_ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3952 #define setlocale innocuous_setlocale
3954 /* System header to define __stub macros and hopefully few prototypes,
3955 which can conflict with char setlocale (); below.
3956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3957 <limits.h> exists even on freestanding compilers. */
3960 # include <limits.h>
3962 # include <assert.h>
3967 /* Override any GCC internal prototype to avoid an error.
3968 Use char because int might match the return type of a GCC
3969 builtin and then its argument prototype would still apply. */
3974 /* The GNU C library defines this for functions which it implements
3975 to always fail with ENOSYS. Some functions are actually named
3976 something starting with __ and the normal name is an alias. */
3977 #if defined __stub_setlocale || defined __stub___setlocale
3984 return setlocale ();
3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (ac_try="$ac_link"
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_link") 2>conftest.er1
3998 grep -v '^ *+' conftest.er1 >conftest.err
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } && {
4003 test -z "$ac_cxx_werror_flag" ||
4004 test ! -s conftest.err
4005 } && test -s conftest$ac_exeext &&
4006 $as_test_x conftest$ac_exeext; then
4007 ac_cv_func_setlocale=yes
4009 echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4012 ac_cv_func_setlocale=no
4015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4016 conftest$ac_exeext conftest.$ac_ext
4018 { echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
4019 echo "${ECHO_T}$ac_cv_func_setlocale" >&6; }
4020 if test $ac_cv_func_setlocale = yes; then
4023 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4024 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
4025 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4028 ac_check_lib_save_LIBS=$LIBS
4030 cat >conftest.$ac_ext <<_ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4037 /* Override any GCC internal prototype to avoid an error.
4038 Use char because int might match the return type of a GCC
4039 builtin and then its argument prototype would still apply. */
4047 return setlocale ();
4052 rm -f conftest.$ac_objext conftest$ac_exeext
4053 if { (ac_try="$ac_link"
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_link") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_cxx_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest$ac_exeext &&
4069 $as_test_x conftest$ac_exeext; then
4070 ac_cv_lib_xpg4_setlocale=yes
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 ac_cv_lib_xpg4_setlocale=no
4078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4079 conftest$ac_exeext conftest.$ac_ext
4080 LIBS=$ac_check_lib_save_LIBS
4082 { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
4083 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; }
4084 if test $ac_cv_lib_xpg4_setlocale = yes; then
4091 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4092 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4093 if test "${ac_cv_func_gethostbyname+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4102 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4104 #define gethostbyname innocuous_gethostbyname
4106 /* System header to define __stub macros and hopefully few prototypes,
4107 which can conflict with char gethostbyname (); below.
4108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4109 <limits.h> exists even on freestanding compilers. */
4112 # include <limits.h>
4114 # include <assert.h>
4117 #undef gethostbyname
4119 /* Override any GCC internal prototype to avoid an error.
4120 Use char because int might match the return type of a GCC
4121 builtin and then its argument prototype would still apply. */
4125 char gethostbyname ();
4126 /* The GNU C library defines this for functions which it implements
4127 to always fail with ENOSYS. Some functions are actually named
4128 something starting with __ and the normal name is an alias. */
4129 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4136 return gethostbyname ();
4141 rm -f conftest.$ac_objext conftest$ac_exeext
4142 if { (ac_try="$ac_link"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_link") 2>conftest.er1
4150 grep -v '^ *+' conftest.er1 >conftest.err
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && {
4155 test -z "$ac_cxx_werror_flag" ||
4156 test ! -s conftest.err
4157 } && test -s conftest$ac_exeext &&
4158 $as_test_x conftest$ac_exeext; then
4159 ac_cv_func_gethostbyname=yes
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 ac_cv_func_gethostbyname=no
4167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4168 conftest$ac_exeext conftest.$ac_ext
4170 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4171 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4172 if test $ac_cv_func_gethostbyname = yes; then
4175 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4176 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4177 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 ac_check_lib_save_LIBS=$LIBS
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4189 /* Override any GCC internal prototype to avoid an error.
4190 Use char because int might match the return type of a GCC
4191 builtin and then its argument prototype would still apply. */
4195 char gethostbyname ();
4199 return gethostbyname ();
4204 rm -f conftest.$ac_objext conftest$ac_exeext
4205 if { (ac_try="$ac_link"
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_link") 2>conftest.er1
4213 grep -v '^ *+' conftest.er1 >conftest.err
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_cxx_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest$ac_exeext &&
4221 $as_test_x conftest$ac_exeext; then
4222 ac_cv_lib_nsl_gethostbyname=yes
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 ac_cv_lib_nsl_gethostbyname=no
4230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4231 conftest$ac_exeext conftest.$ac_ext
4232 LIBS=$ac_check_lib_save_LIBS
4234 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4235 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4236 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4242 { echo "$as_me:$LINENO: checking for socket" >&5
4243 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
4244 if test "${ac_cv_func_socket+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
4254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4255 #define socket innocuous_socket
4257 /* System header to define __stub macros and hopefully few prototypes,
4258 which can conflict with char socket (); below.
4259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260 <limits.h> exists even on freestanding compilers. */
4263 # include <limits.h>
4265 # include <assert.h>
4270 /* Override any GCC internal prototype to avoid an error.
4271 Use char because int might match the return type of a GCC
4272 builtin and then its argument prototype would still apply. */
4277 /* The GNU C library defines this for functions which it implements
4278 to always fail with ENOSYS. Some functions are actually named
4279 something starting with __ and the normal name is an alias. */
4280 #if defined __stub_socket || defined __stub___socket
4292 rm -f conftest.$ac_objext conftest$ac_exeext
4293 if { (ac_try="$ac_link"
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_link") 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } && {
4306 test -z "$ac_cxx_werror_flag" ||
4307 test ! -s conftest.err
4308 } && test -s conftest$ac_exeext &&
4309 $as_test_x conftest$ac_exeext; then
4310 ac_cv_func_socket=yes
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_cv_func_socket=no
4318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4319 conftest$ac_exeext conftest.$ac_ext
4321 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4322 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4323 if test $ac_cv_func_socket = yes; then
4326 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4327 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4328 if test "${ac_cv_lib_socket_socket+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 ac_check_lib_save_LIBS=$LIBS
4332 LIBS="-lsocket $LIBS"
4333 cat >conftest.$ac_ext <<_ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h. */
4340 /* Override any GCC internal prototype to avoid an error.
4341 Use char because int might match the return type of a GCC
4342 builtin and then its argument prototype would still apply. */
4355 rm -f conftest.$ac_objext conftest$ac_exeext
4356 if { (ac_try="$ac_link"
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4362 (eval "$ac_link") 2>conftest.er1
4364 grep -v '^ *+' conftest.er1 >conftest.err
4366 cat conftest.err >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); } && {
4369 test -z "$ac_cxx_werror_flag" ||
4370 test ! -s conftest.err
4371 } && test -s conftest$ac_exeext &&
4372 $as_test_x conftest$ac_exeext; then
4373 ac_cv_lib_socket_socket=yes
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 ac_cv_lib_socket_socket=no
4381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4382 conftest$ac_exeext conftest.$ac_ext
4383 LIBS=$ac_check_lib_save_LIBS
4385 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4386 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
4387 if test $ac_cv_lib_socket_socket = yes; then
4388 LIBS="$LIBS -lsocket"
4396 support_inheritpixmap=yes
4398 support_keepscrolling=yes
4399 support_selectionscrolling=yes
4400 support_mousewheel=yes
4401 support_mouseslipwheel=yes
4402 support_text_blink=yes
4403 support_pointer_blank=yes
4404 support_scroll_rxvt=yes
4405 support_scroll_next=yes
4406 support_scroll_xterm=yes
4407 support_scroll_plain=yes
4409 support_afterimage=yes
4410 support_afterstep=yes
4413 support_combining=yes
4414 support_8bitctrls=no
4415 support_iso14755=yes
4421 if test "x$enable_shared" = xyes; then
4423 cat >>confdefs.h <<\_ACEOF
4431 # Check whether --enable-everything was given.
4432 if test "${enable_everything+set}" = set; then
4433 enableval=$enable_everything;
4434 if test x$enableval = xno; then
4436 support_inheritpixmap=no
4438 support_keepscrolling=no
4439 support_selectionscrolling=no
4441 support_mousewheel=no
4442 support_mouseslipwheel=no
4443 support_text_blink=no
4444 support_pointer_blank=no
4445 support_scroll_rxvt=no
4446 support_scroll_next=no
4447 support_scroll_xterm=no
4448 support_scroll_plain=no
4452 support_afterimage=no
4453 support_afterstep=no
4456 support_combining=no
4457 support_8bitctrls=no
4463 if test x$enableval = xyes; then
4465 support_inheritpixmap=yes
4467 support_keepscrolling=yes
4468 support_selectionscrolling=yes
4470 support_mousewheel=yes
4471 support_mouseslipwheel=yes
4472 support_text_blink=yes
4473 support_pointer_blank=yes
4474 support_scroll_rxvt=yes
4475 support_scroll_next=yes
4476 support_scroll_xterm=yes
4477 support_scroll_plain=yes
4481 support_afterimage=yes
4482 support_afterstep=yes
4484 support_unicode3=yes
4485 support_combining=yes
4486 #support_8bitctrls=yes
4487 support_iso14755=yes
4496 # Check whether --enable-unicode3 was given.
4497 if test "${enable_unicode3+set}" = set; then
4498 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4499 support_unicode3=$enableval
4504 # Check whether --enable-combining was given.
4505 if test "${enable_combining+set}" = set; then
4506 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4507 support_combining=$enableval
4512 # Check whether --enable-xft was given.
4513 if test "${enable_xft+set}" = set; then
4514 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4515 support_xft=$enableval
4520 # Check whether --enable-font-styles was given.
4521 if test "${enable_font_styles+set}" = set; then
4522 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4523 support_styles=$enableval
4528 # Check whether --enable-afterimage was given.
4529 if test "${enable_afterimage+set}" = set; then
4530 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4531 support_afterimage=$enableval
4537 # Check whether --with-afterimage_config was given.
4538 if test "${with_afterimage_config+set}" = set; then
4539 withval=$with_afterimage_config; if test "x$withval" != x; then
4540 afterimage_config=$withval/afterimage-config
4546 # Check whether --enable-transparency was given.
4547 if test "${enable_transparency+set}" = set; then
4548 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4549 support_inheritpixmap=$enableval
4554 # Check whether --enable-fading was given.
4555 if test "${enable_fading+set}" = set; then
4556 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4557 support_fading=$enableval
4562 # Check whether --enable-rxvt-scroll was given.
4563 if test "${enable_rxvt_scroll+set}" = set; then
4564 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4565 support_scroll_rxvt=$enableval
4570 # Check whether --enable-next-scroll was given.
4571 if test "${enable_next_scroll+set}" = set; then
4572 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4573 support_scroll_next=$enableval
4578 # Check whether --enable-xterm-scroll was given.
4579 if test "${enable_xterm_scroll+set}" = set; then
4580 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4581 support_scroll_xterm=$enableval
4586 # Check whether --enable-perl was given.
4587 if test "${enable_perl+set}" = set; then
4588 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4589 support_perl=$enableval
4594 # Check whether --enable-plain-scroll was given.
4595 if test "${enable_plain_scroll+set}" = set; then
4596 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4597 support_scroll_plain=$enableval
4603 # Check whether --with-codesets was given.
4604 if test "${with_codesets+set}" = set; then
4605 withval=$with_codesets; codesets="$withval"
4609 # Check whether --enable-xim was given.
4610 if test "${enable_xim+set}" = set; then
4611 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4612 support_xim=$enableval
4617 # Check whether --enable-backspace-key was given.
4618 if test "${enable_backspace_key+set}" = set; then
4619 enableval=$enable_backspace_key; if test x$enableval = xno; then
4621 cat >>confdefs.h <<\_ACEOF
4622 #define NO_BACKSPACE_KEY 1
4629 # Check whether --enable-delete-key was given.
4630 if test "${enable_delete_key+set}" = set; then
4631 enableval=$enable_delete_key; if test x$enableval = xno; then
4633 cat >>confdefs.h <<\_ACEOF
4634 #define NO_DELETE_KEY 1
4641 # Check whether --enable-resources was given.
4642 if test "${enable_resources+set}" = set; then
4643 enableval=$enable_resources; if test x$enableval = xno; then
4645 cat >>confdefs.h <<\_ACEOF
4646 #define NO_RESOURCES 1
4653 # Check whether --enable-8bitctrls was given.
4654 if test "${enable_8bitctrls+set}" = set; then
4655 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4656 support_8bitctrls=$enableval
4662 # Check whether --enable-fallback was given.
4663 if test "${enable_fallback+set}" = set; then
4664 enableval=$enable_fallback;
4665 test x$enableval = xyes && enableval=Rxvt
4666 test x$enableval = xno && enableval=
4667 RESFALLBACK="$enableval"
4672 if test x$RESFALLBACK != x; then
4674 cat >>confdefs.h <<_ACEOF
4675 #define RESFALLBACK "$RESFALLBACK"
4682 # Check whether --with-res-name was given.
4683 if test "${with_res_name+set}" = set; then
4684 withval=$with_res_name; RESNAME="$withval"
4688 cat >>confdefs.h <<_ACEOF
4689 #define RESNAME "$RESNAME"
4695 # Check whether --with-res-class was given.
4696 if test "${with_res_class+set}" = set; then
4697 withval=$with_res_class; RESCLASS="$withval"
4701 cat >>confdefs.h <<_ACEOF
4702 #define RESCLASS "$RESCLASS"
4708 # Check whether --with-name was given.
4709 if test "${with_name+set}" = set; then
4710 withval=$with_name; RXVTNAME="$withval"
4714 cat >>confdefs.h <<_ACEOF
4715 #define RXVTNAME "$RXVTNAME"
4719 RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4722 # Check whether --enable-swapscreen was given.
4723 if test "${enable_swapscreen+set}" = set; then
4724 enableval=$enable_swapscreen; if test x$enableval = xno; then
4726 cat >>confdefs.h <<\_ACEOF
4727 #define NO_SECONDARY_SCREEN 1
4734 # Check whether --enable-iso14755 was given.
4735 if test "${enable_iso14755+set}" = set; then
4736 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4737 support_iso14755=$enableval
4742 # Check whether --enable-frills was given.
4743 if test "${enable_frills+set}" = set; then
4744 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
4745 support_frills=$enableval
4750 # Check whether --enable-keepscrolling was given.
4751 if test "${enable_keepscrolling+set}" = set; then
4752 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4753 support_keepscrolling=$enableval
4758 # Check whether --enable-selectionscrolling was given.
4759 if test "${enable_selectionscrolling+set}" = set; then
4760 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4761 support_selectionscrolling=$enableval
4766 # Check whether --enable-mousewheel was given.
4767 if test "${enable_mousewheel+set}" = set; then
4768 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
4769 support_mousewheel=$enableval
4774 # Check whether --enable-slipwheeling was given.
4775 if test "${enable_slipwheeling+set}" = set; then
4776 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
4777 support_mouseslipwheel=$enableval
4782 # Check whether --enable-smart-resize was given.
4783 if test "${enable_smart_resize+set}" = set; then
4784 enableval=$enable_smart_resize; if test x$enableval = xyes; then
4786 cat >>confdefs.h <<\_ACEOF
4787 #define SMART_RESIZE 1
4794 # Check whether --enable-text-blink was given.
4795 if test "${enable_text_blink+set}" = set; then
4796 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
4797 support_text_blink=$enableval
4802 # Check whether --enable-pointer-blank was given.
4803 if test "${enable_pointer_blank+set}" = set; then
4804 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
4805 support_pointer_blank=$enableval
4811 # Check whether --with-term was given.
4812 if test "${with_term+set}" = set; then
4813 withval=$with_term; if test x$withval != x; then
4815 cat >>confdefs.h <<_ACEOF
4816 #define TERMENV "$withval"
4824 # Check whether --with-terminfo was given.
4825 if test "${with_terminfo+set}" = set; then
4826 withval=$with_terminfo; if test x$withval != x; then
4828 cat >>confdefs.h <<_ACEOF
4829 #define RXVT_TERMINFO "$withval"
4837 # Extract the first word of "tic", so it can be a program name with args.
4838 set dummy tic; ac_word=$2
4839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4841 if test "${ac_cv_path_TIC+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
4869 if test -n "$TIC"; then
4870 { echo "$as_me:$LINENO: result: $TIC" >&5
4871 echo "${ECHO_T}$TIC" >&6; }
4873 { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4882 ac_cpp='$CXXCPP $CPPFLAGS'
4883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4886 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4887 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4888 if test -z "$CXXCPP"; then
4889 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 # Double quotes because CXXCPP needs to be expanded
4893 for CXXCPP in "$CXX -E" "/lib/cpp"
4896 for ac_cxx_preproc_warn_flag in '' yes
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat >conftest.$ac_ext <<_ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4911 # include <limits.h>
4913 # include <assert.h>
4917 if { (ac_try="$ac_cpp conftest.$ac_ext"
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null && {
4930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4931 test ! -s conftest.err
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 # Broken: fails on valid input.
4942 rm -f conftest.err conftest.$ac_ext
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4954 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4968 test ! -s conftest.err
4970 # Broken: success on invalid input.
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 # Passes both tests.
4981 rm -f conftest.err conftest.$ac_ext
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.$ac_ext
4986 if $ac_preproc_ok; then
4991 ac_cv_prog_CXXCPP=$CXXCPP
4994 CXXCPP=$ac_cv_prog_CXXCPP
4996 ac_cv_prog_CXXCPP=$CXXCPP
4998 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4999 echo "${ECHO_T}$CXXCPP" >&6; }
5001 for ac_cxx_preproc_warn_flag in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 # include <limits.h>
5018 # include <assert.h>
5022 if { (ac_try="$ac_cpp conftest.$ac_ext"
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null && {
5035 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5036 test ! -s conftest.err
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 # Broken: fails on valid input.
5047 rm -f conftest.err conftest.$ac_ext
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <ac_nonexistent.h>
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5067 grep -v '^ *+' conftest.er1 >conftest.err
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev/null && {
5072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5073 test ! -s conftest.err
5075 # Broken: success on invalid input.
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 # Passes both tests.
5086 rm -f conftest.err conftest.$ac_ext
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then
5094 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5095 See \`config.log' for more details." >&5
5096 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5097 See \`config.log' for more details." >&2;}
5098 { (exit 1); exit 1; }; }
5102 ac_cpp='$CXXCPP $CPPFLAGS'
5103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5108 { echo "$as_me:$LINENO: checking for X" >&5
5109 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5112 # Check whether --with-x was given.
5113 if test "${with_x+set}" = set; then
5117 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5118 if test "x$with_x" = xno; then
5119 # The user explicitly disabled X.
5122 case $x_includes,$x_libraries in #(
5123 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5124 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5125 { (exit 1); exit 1; }; };; #(
5126 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 # One or both of the vars are not set, and there is no cached value.
5130 ac_x_includes=no ac_x_libraries=no
5131 rm -f -r conftest.dir
5132 if mkdir conftest.dir; then
5134 cat >Imakefile <<'_ACEOF'
5136 @echo incroot='${INCROOT}'
5138 @echo usrlibdir='${USRLIBDIR}'
5140 @echo libdir='${LIBDIR}'
5142 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5143 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5144 for ac_var in incroot usrlibdir libdir; do
5145 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5147 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5148 for ac_extension in a so sl; do
5149 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5150 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5151 ac_im_usrlibdir=$ac_im_libdir; break
5154 # Screen out bogus values from the imake configuration. They are
5155 # bogus both because they are the default anyway, and because
5156 # using them would break gcc on systems where it needs fixed includes.
5157 case $ac_im_incroot in
5158 /usr/include) ac_x_includes= ;;
5159 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5161 case $ac_im_usrlibdir in
5163 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5167 rm -f -r conftest.dir
5170 # Standard set of common directories for X headers.
5171 # Check X11 before X11Rn because it is often a symlink to the current release.
5183 /usr/local/X11/include
5184 /usr/local/X11R6/include
5185 /usr/local/X11R5/include
5186 /usr/local/X11R4/include
5188 /usr/local/include/X11
5189 /usr/local/include/X11R6
5190 /usr/local/include/X11R5
5191 /usr/local/include/X11R4
5195 /usr/XFree86/include/X11
5199 /usr/unsupported/include
5201 /usr/local/x11r5/include
5202 /usr/lpp/Xamples/include
5204 /usr/openwin/include
5205 /usr/openwin/share/include'
5207 if test "$ac_x_includes" = no; then
5208 # Guess where to find include files, by looking for Xlib.h.
5209 # First, try using that file with no special directory specified.
5210 cat >conftest.$ac_ext <<_ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 #include <X11/Xlib.h>
5218 if { (ac_try="$ac_cpp conftest.$ac_ext"
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 grep -v '^ *+' conftest.er1 >conftest.err
5228 cat conftest.err >&5
5229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null && {
5231 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5232 test ! -s conftest.err
5234 # We can compile using X headers with no special include directory.
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 for ac_dir in $ac_x_header_dirs; do
5241 if test -r "$ac_dir/X11/Xlib.h"; then
5242 ac_x_includes=$ac_dir
5248 rm -f conftest.err conftest.$ac_ext
5249 fi # $ac_x_includes = no
5251 if test "$ac_x_libraries" = no; then
5252 # Check for the libraries.
5253 # See if we find them without any special options.
5254 # Don't add to $LIBS permanently.
5257 cat >conftest.$ac_ext <<_ACEOF
5260 cat confdefs.h >>conftest.$ac_ext
5261 cat >>conftest.$ac_ext <<_ACEOF
5262 /* end confdefs.h. */
5263 #include <X11/Xlib.h>
5272 rm -f conftest.$ac_objext conftest$ac_exeext
5273 if { (ac_try="$ac_link"
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_link") 2>conftest.er1
5281 grep -v '^ *+' conftest.er1 >conftest.err
5283 cat conftest.err >&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } && {
5286 test -z "$ac_cxx_werror_flag" ||
5287 test ! -s conftest.err
5288 } && test -s conftest$ac_exeext &&
5289 $as_test_x conftest$ac_exeext; then
5291 # We can link X programs with no special library path.
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5298 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5300 # Don't even attempt the hair of trying to link an X program!
5301 for ac_extension in a so sl; do
5302 if test -r "$ac_dir/libX11.$ac_extension"; then
5303 ac_x_libraries=$ac_dir
5310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5311 conftest$ac_exeext conftest.$ac_ext
5312 fi # $ac_x_libraries = no
5314 case $ac_x_includes,$ac_x_libraries in #(
5316 # Didn't find X, or a directory has "'" in its name.
5317 ac_cv_have_x="have_x=no";; #(
5319 # Record where we found X for the cache.
5320 ac_cv_have_x="have_x=yes\
5321 ac_x_includes='$ac_x_includes'\
5322 ac_x_libraries='$ac_x_libraries'"
5328 eval "$ac_cv_have_x"
5331 if test "$have_x" != yes; then
5332 { echo "$as_me:$LINENO: result: $have_x" >&5
5333 echo "${ECHO_T}$have_x" >&6; }
5336 # If each of the values was on the command line, it overrides each guess.
5337 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5338 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5339 # Update the cache value to reflect the command line values.
5340 ac_cv_have_x="have_x=yes\
5341 ac_x_includes='$x_includes'\
5342 ac_x_libraries='$x_libraries'"
5343 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5344 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5347 if test "$no_x" = yes; then
5348 # Not all programs may use this symbol, but it does not hurt to define it.
5350 cat >>confdefs.h <<\_ACEOF
5351 #define X_DISPLAY_MISSING 1
5354 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5356 if test -n "$x_includes"; then
5357 X_CFLAGS="$X_CFLAGS -I$x_includes"
5360 # It would also be nice to do this for all -L options, not just this one.
5361 if test -n "$x_libraries"; then
5362 X_LIBS="$X_LIBS -L$x_libraries"
5363 # For Solaris; some versions of Sun CC require a space after -R and
5364 # others require no space. Words are not sufficient . . . .
5365 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5366 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5367 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5368 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5369 ac_cxx_werror_flag=yes
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5385 rm -f conftest.$ac_objext conftest$ac_exeext
5386 if { (ac_try="$ac_link"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_link") 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_cxx_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest$ac_exeext &&
5402 $as_test_x conftest$ac_exeext; then
5403 { echo "$as_me:$LINENO: result: no" >&5
5404 echo "${ECHO_T}no" >&6; }
5405 X_LIBS="$X_LIBS -R$x_libraries"
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 LIBS="$ac_xsave_LIBS -R $x_libraries"
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5426 rm -f conftest.$ac_objext conftest$ac_exeext
5427 if { (ac_try="$ac_link"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_link") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_cxx_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest$ac_exeext &&
5443 $as_test_x conftest$ac_exeext; then
5444 { echo "$as_me:$LINENO: result: yes" >&5
5445 echo "${ECHO_T}yes" >&6; }
5446 X_LIBS="$X_LIBS -R $x_libraries"
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 { echo "$as_me:$LINENO: result: neither works" >&5
5452 echo "${ECHO_T}neither works" >&6; }
5455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5456 conftest$ac_exeext conftest.$ac_ext
5459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5460 conftest$ac_exeext conftest.$ac_ext
5461 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5465 # Check for system-dependent libraries X programs must link with.
5466 # Do this before checking for the system-independent R6 libraries
5467 # (-lICE), since we may need -lsocket or whatever for X linking.
5469 if test "$ISC" = yes; then
5470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5472 # Martyn Johnson says this is needed for Ultrix, if the X
5473 # libraries were built with DECnet support. And Karl Berry says
5474 # the Alpha needs dnet_stub (dnet does not exist).
5475 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5483 /* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5489 char XOpenDisplay ();
5493 return XOpenDisplay ();
5498 rm -f conftest.$ac_objext conftest$ac_exeext
5499 if { (ac_try="$ac_link"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_link") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_cxx_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest$ac_exeext &&
5515 $as_test_x conftest$ac_exeext; then
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5521 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5522 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5523 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 ac_check_lib_save_LIBS=$LIBS
5528 cat >conftest.$ac_ext <<_ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5535 /* Override any GCC internal prototype to avoid an error.
5536 Use char because int might match the return type of a GCC
5537 builtin and then its argument prototype would still apply. */
5545 return dnet_ntoa ();
5550 rm -f conftest.$ac_objext conftest$ac_exeext
5551 if { (ac_try="$ac_link"
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_link") 2>conftest.er1
5559 grep -v '^ *+' conftest.er1 >conftest.err
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } && {
5564 test -z "$ac_cxx_werror_flag" ||
5565 test ! -s conftest.err
5566 } && test -s conftest$ac_exeext &&
5567 $as_test_x conftest$ac_exeext; then
5568 ac_cv_lib_dnet_dnet_ntoa=yes
5570 echo "$as_me: failed program was:" >&5
5571 sed 's/^/| /' conftest.$ac_ext >&5
5573 ac_cv_lib_dnet_dnet_ntoa=no
5576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5577 conftest$ac_exeext conftest.$ac_ext
5578 LIBS=$ac_check_lib_save_LIBS
5580 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5581 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5582 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5583 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5586 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5587 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5588 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5589 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 ac_check_lib_save_LIBS=$LIBS
5593 LIBS="-ldnet_stub $LIBS"
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5601 /* Override any GCC internal prototype to avoid an error.
5602 Use char because int might match the return type of a GCC
5603 builtin and then its argument prototype would still apply. */
5611 return dnet_ntoa ();
5616 rm -f conftest.$ac_objext conftest$ac_exeext
5617 if { (ac_try="$ac_link"
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_link") 2>conftest.er1
5625 grep -v '^ *+' conftest.er1 >conftest.err
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_cxx_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest$ac_exeext &&
5633 $as_test_x conftest$ac_exeext; then
5634 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_cv_lib_dnet_stub_dnet_ntoa=no
5642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5643 conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5646 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5647 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5648 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5649 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5656 conftest$ac_exeext conftest.$ac_ext
5657 LIBS="$ac_xsave_LIBS"
5659 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5660 # to get the SysV transport functions.
5661 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5663 # The nsl library prevents programs from opening the X display
5664 # on Irix 5.2, according to T.E. Dickey.
5665 # The functions gethostbyname, getservbyname, and inet_addr are
5666 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5667 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5668 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5669 if test "${ac_cv_func_gethostbyname+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5680 #define gethostbyname innocuous_gethostbyname
5682 /* System header to define __stub macros and hopefully few prototypes,
5683 which can conflict with char gethostbyname (); below.
5684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 <limits.h> exists even on freestanding compilers. */
5688 # include <limits.h>
5690 # include <assert.h>
5693 #undef gethostbyname
5695 /* Override any GCC internal prototype to avoid an error.
5696 Use char because int might match the return type of a GCC
5697 builtin and then its argument prototype would still apply. */
5701 char gethostbyname ();
5702 /* The GNU C library defines this for functions which it implements
5703 to always fail with ENOSYS. Some functions are actually named
5704 something starting with __ and the normal name is an alias. */
5705 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5712 return gethostbyname ();
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (ac_try="$ac_link"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_link") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_cxx_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext &&
5734 $as_test_x conftest$ac_exeext; then
5735 ac_cv_func_gethostbyname=yes
5737 echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5740 ac_cv_func_gethostbyname=no
5743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5744 conftest$ac_exeext conftest.$ac_ext
5746 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5747 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5749 if test $ac_cv_func_gethostbyname = no; then
5750 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5751 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5752 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 ac_check_lib_save_LIBS=$LIBS
5757 cat >conftest.$ac_ext <<_ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5764 /* Override any GCC internal prototype to avoid an error.
5765 Use char because int might match the return type of a GCC
5766 builtin and then its argument prototype would still apply. */
5770 char gethostbyname ();
5774 return gethostbyname ();
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (ac_try="$ac_link"
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_link") 2>conftest.er1
5788 grep -v '^ *+' conftest.er1 >conftest.err
5790 cat conftest.err >&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } && {
5793 test -z "$ac_cxx_werror_flag" ||
5794 test ! -s conftest.err
5795 } && test -s conftest$ac_exeext &&
5796 $as_test_x conftest$ac_exeext; then
5797 ac_cv_lib_nsl_gethostbyname=yes
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 ac_cv_lib_nsl_gethostbyname=no
5805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5806 conftest$ac_exeext conftest.$ac_ext
5807 LIBS=$ac_check_lib_save_LIBS
5809 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5810 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5811 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5812 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5815 if test $ac_cv_lib_nsl_gethostbyname = no; then
5816 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5817 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5818 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 ac_check_lib_save_LIBS=$LIBS
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5830 /* Override any GCC internal prototype to avoid an error.
5831 Use char because int might match the return type of a GCC
5832 builtin and then its argument prototype would still apply. */
5836 char gethostbyname ();
5840 return gethostbyname ();
5845 rm -f conftest.$ac_objext conftest$ac_exeext
5846 if { (ac_try="$ac_link"
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_link") 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } && {
5859 test -z "$ac_cxx_werror_flag" ||
5860 test ! -s conftest.err
5861 } && test -s conftest$ac_exeext &&
5862 $as_test_x conftest$ac_exeext; then
5863 ac_cv_lib_bsd_gethostbyname=yes
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 ac_cv_lib_bsd_gethostbyname=no
5871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5872 conftest$ac_exeext conftest.$ac_ext
5873 LIBS=$ac_check_lib_save_LIBS
5875 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5876 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5877 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5878 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5884 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5885 # socket/setsockopt and other routines are undefined under SCO ODT
5886 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5887 # on later versions), says Simon Leinen: it contains gethostby*
5888 # variants that don't use the name server (or something). -lsocket
5889 # must be given before -lnsl if both are needed. We assume that
5890 # if connect needs -lnsl, so does gethostbyname.
5891 { echo "$as_me:$LINENO: checking for connect" >&5
5892 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5893 if test "${ac_cv_func_connect+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 cat >conftest.$ac_ext <<_ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5904 #define connect innocuous_connect
5906 /* System header to define __stub macros and hopefully few prototypes,
5907 which can conflict with char connect (); below.
5908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5909 <limits.h> exists even on freestanding compilers. */
5912 # include <limits.h>
5914 # include <assert.h>
5919 /* Override any GCC internal prototype to avoid an error.
5920 Use char because int might match the return type of a GCC
5921 builtin and then its argument prototype would still apply. */
5926 /* The GNU C library defines this for functions which it implements
5927 to always fail with ENOSYS. Some functions are actually named
5928 something starting with __ and the normal name is an alias. */
5929 #if defined __stub_connect || defined __stub___connect
5941 rm -f conftest.$ac_objext conftest$ac_exeext
5942 if { (ac_try="$ac_link"
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_link") 2>conftest.er1
5950 grep -v '^ *+' conftest.er1 >conftest.err
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && {
5955 test -z "$ac_cxx_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest$ac_exeext &&
5958 $as_test_x conftest$ac_exeext; then
5959 ac_cv_func_connect=yes
5961 echo "$as_me: failed program was:" >&5
5962 sed 's/^/| /' conftest.$ac_ext >&5
5964 ac_cv_func_connect=no
5967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5968 conftest$ac_exeext conftest.$ac_ext
5970 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5971 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5973 if test $ac_cv_func_connect = no; then
5974 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5975 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5976 if test "${ac_cv_lib_socket_connect+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 ac_check_lib_save_LIBS=$LIBS
5980 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5981 cat >conftest.$ac_ext <<_ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5988 /* Override any GCC internal prototype to avoid an error.
5989 Use char because int might match the return type of a GCC
5990 builtin and then its argument prototype would still apply. */
6003 rm -f conftest.$ac_objext conftest$ac_exeext
6004 if { (ac_try="$ac_link"
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_link") 2>conftest.er1
6012 grep -v '^ *+' conftest.er1 >conftest.err
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_cxx_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest$ac_exeext &&
6020 $as_test_x conftest$ac_exeext; then
6021 ac_cv_lib_socket_connect=yes
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 ac_cv_lib_socket_connect=no
6029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6030 conftest$ac_exeext conftest.$ac_ext
6031 LIBS=$ac_check_lib_save_LIBS
6033 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6034 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6035 if test $ac_cv_lib_socket_connect = yes; then
6036 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6041 # Guillermo Gomez says -lposix is necessary on A/UX.
6042 { echo "$as_me:$LINENO: checking for remove" >&5
6043 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6044 if test "${ac_cv_func_remove+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6055 #define remove innocuous_remove
6057 /* System header to define __stub macros and hopefully few prototypes,
6058 which can conflict with char remove (); below.
6059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6060 <limits.h> exists even on freestanding compilers. */
6063 # include <limits.h>
6065 # include <assert.h>
6070 /* Override any GCC internal prototype to avoid an error.
6071 Use char because int might match the return type of a GCC
6072 builtin and then its argument prototype would still apply. */
6077 /* The GNU C library defines this for functions which it implements
6078 to always fail with ENOSYS. Some functions are actually named
6079 something starting with __ and the normal name is an alias. */
6080 #if defined __stub_remove || defined __stub___remove
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (ac_try="$ac_link"
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_link") 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_cxx_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest$ac_exeext &&
6109 $as_test_x conftest$ac_exeext; then
6110 ac_cv_func_remove=yes
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6115 ac_cv_func_remove=no
6118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6119 conftest$ac_exeext conftest.$ac_ext
6121 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6122 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6124 if test $ac_cv_func_remove = no; then
6125 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6126 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6127 if test "${ac_cv_lib_posix_remove+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_check_lib_save_LIBS=$LIBS
6131 LIBS="-lposix $LIBS"
6132 cat >conftest.$ac_ext <<_ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h. */
6139 /* Override any GCC internal prototype to avoid an error.
6140 Use char because int might match the return type of a GCC
6141 builtin and then its argument prototype would still apply. */
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (ac_try="$ac_link"
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_link") 2>conftest.er1
6163 grep -v '^ *+' conftest.er1 >conftest.err
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_cxx_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest$ac_exeext &&
6171 $as_test_x conftest$ac_exeext; then
6172 ac_cv_lib_posix_remove=yes
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6177 ac_cv_lib_posix_remove=no
6180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6181 conftest$ac_exeext conftest.$ac_ext
6182 LIBS=$ac_check_lib_save_LIBS
6184 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6185 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6186 if test $ac_cv_lib_posix_remove = yes; then
6187 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6192 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6193 { echo "$as_me:$LINENO: checking for shmat" >&5
6194 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6195 if test "${ac_cv_func_shmat+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 cat >conftest.$ac_ext <<_ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6204 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6206 #define shmat innocuous_shmat
6208 /* System header to define __stub macros and hopefully few prototypes,
6209 which can conflict with char shmat (); below.
6210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6211 <limits.h> exists even on freestanding compilers. */
6214 # include <limits.h>
6216 # include <assert.h>
6221 /* Override any GCC internal prototype to avoid an error.
6222 Use char because int might match the return type of a GCC
6223 builtin and then its argument prototype would still apply. */
6228 /* The GNU C library defines this for functions which it implements
6229 to always fail with ENOSYS. Some functions are actually named
6230 something starting with __ and the normal name is an alias. */
6231 #if defined __stub_shmat || defined __stub___shmat
6243 rm -f conftest.$ac_objext conftest$ac_exeext
6244 if { (ac_try="$ac_link"
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_link") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1 >conftest.err
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_cxx_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest$ac_exeext &&
6260 $as_test_x conftest$ac_exeext; then
6261 ac_cv_func_shmat=yes
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6270 conftest$ac_exeext conftest.$ac_ext
6272 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6273 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6275 if test $ac_cv_func_shmat = no; then
6276 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6277 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6278 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 ac_check_lib_save_LIBS=$LIBS
6283 cat >conftest.$ac_ext <<_ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6290 /* Override any GCC internal prototype to avoid an error.
6291 Use char because int might match the return type of a GCC
6292 builtin and then its argument prototype would still apply. */
6305 rm -f conftest.$ac_objext conftest$ac_exeext
6306 if { (ac_try="$ac_link"
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_link") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1 >conftest.err
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } && {
6319 test -z "$ac_cxx_werror_flag" ||
6320 test ! -s conftest.err
6321 } && test -s conftest$ac_exeext &&
6322 $as_test_x conftest$ac_exeext; then
6323 ac_cv_lib_ipc_shmat=yes
6325 echo "$as_me: failed program was:" >&5
6326 sed 's/^/| /' conftest.$ac_ext >&5
6328 ac_cv_lib_ipc_shmat=no
6331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6332 conftest$ac_exeext conftest.$ac_ext
6333 LIBS=$ac_check_lib_save_LIBS
6335 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6336 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6337 if test $ac_cv_lib_ipc_shmat = yes; then
6338 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6344 # Check for libraries that X11R6 Xt/Xaw programs need.
6345 ac_save_LDFLAGS=$LDFLAGS
6346 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6347 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6348 # check for ICE first), but we must link in the order -lSM -lICE or
6349 # we get undefined symbols. So assume we have SM if we have ICE.
6350 # These have to be linked with before -lX11, unlike the other
6351 # libraries we check for below, so use a different variable.
6352 # John Interrante, Karl Berry
6353 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6354 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6355 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 ac_check_lib_save_LIBS=$LIBS
6359 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6367 /* Override any GCC internal prototype to avoid an error.
6368 Use char because int might match the return type of a GCC
6369 builtin and then its argument prototype would still apply. */
6373 char IceConnectionNumber ();
6377 return IceConnectionNumber ();
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (ac_try="$ac_link"
6385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386 *) ac_try_echo=$ac_try;;
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_link") 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && {
6396 test -z "$ac_cxx_werror_flag" ||
6397 test ! -s conftest.err
6398 } && test -s conftest$ac_exeext &&
6399 $as_test_x conftest$ac_exeext; then
6400 ac_cv_lib_ICE_IceConnectionNumber=yes
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6405 ac_cv_lib_ICE_IceConnectionNumber=no
6408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6409 conftest$ac_exeext conftest.$ac_ext
6410 LIBS=$ac_check_lib_save_LIBS
6412 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6413 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6414 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6415 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6418 LDFLAGS=$ac_save_LDFLAGS
6427 if test x$support_afterimage = xyes; then
6428 support_afterimage=no
6430 if test "x$afterimage_config" = "x" ; then
6431 # Extract the first word of "afterimage-config", so it can be a program name with args.
6432 set dummy afterimage-config; ac_word=$2
6433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435 if test "${ac_cv_path_afterimage_config+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 case $afterimage_config in
6440 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6462 afterimage_config=$ac_cv_path_afterimage_config
6463 if test -n "$afterimage_config"; then
6464 { echo "$as_me:$LINENO: result: $afterimage_config" >&5
6465 echo "${ECHO_T}$afterimage_config" >&6; }
6467 { echo "$as_me:$LINENO: result: no" >&5
6468 echo "${ECHO_T}no" >&6; }
6473 if test "x$afterimage_config" != "xno" ; then
6474 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5
6475 echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; }
6476 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6477 if test -n "$xAFTERIMAGE_VERSION" ; then
6478 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6479 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6480 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6481 libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .`
6482 libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .`
6483 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6484 support_afterimage=yes
6485 AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS"
6486 AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS"
6487 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6491 if test "x$support_afterimage" = "xyes"; then
6492 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6493 echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; }
6495 { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6501 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6502 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6503 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 cat >conftest.$ac_ext <<_ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 #include <sys/types.h>
6513 #include <sys/wait.h>
6515 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6518 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6526 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6531 rm -f conftest.$ac_objext
6532 if { (ac_try="$ac_compile"
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_compile") 2>conftest.er1
6540 grep -v '^ *+' conftest.er1 >conftest.err
6542 cat conftest.err >&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } && {
6545 test -z "$ac_cxx_werror_flag" ||
6546 test ! -s conftest.err
6547 } && test -s conftest.$ac_objext; then
6548 ac_cv_header_sys_wait_h=yes
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 ac_cv_header_sys_wait_h=no
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6559 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6560 if test $ac_cv_header_sys_wait_h = yes; then
6562 cat >>confdefs.h <<\_ACEOF
6563 #define HAVE_SYS_WAIT_H 1
6568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6570 if test "${ac_cv_header_stdc+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6592 rm -f conftest.$ac_objext
6593 if { (ac_try="$ac_compile"
6595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_cxx_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_cv_header_stdc=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_cv_header_stdc=no
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 if test $ac_cv_header_stdc = yes; then
6620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621 cat >conftest.$ac_ext <<_ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631 $EGREP "memchr" >/dev/null 2>&1; then
6634 ac_cv_header_stdc=no
6640 if test $ac_cv_header_stdc = yes; then
6641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6642 cat >conftest.$ac_ext <<_ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 $EGREP "free" >/dev/null 2>&1; then
6655 ac_cv_header_stdc=no
6661 if test $ac_cv_header_stdc = yes; then
6662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6663 if test "$cross_compiling" = yes; then
6666 cat >conftest.$ac_ext <<_ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6674 #if ((' ' & 0x0FF) == 0x020)
6675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6678 # define ISLOWER(c) \
6679 (('a' <= (c) && (c) <= 'i') \
6680 || ('j' <= (c) && (c) <= 'r') \
6681 || ('s' <= (c) && (c) <= 'z'))
6682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6690 for (i = 0; i < 256; i++)
6691 if (XOR (islower (i), ISLOWER (i))
6692 || toupper (i) != TOUPPER (i))
6697 rm -f conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6708 { (case "(($ac_try" in
6709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_try") 2>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6719 echo "$as_me: program exited with status $ac_status" >&5
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6724 ac_cv_header_stdc=no
6726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6734 if test $ac_cv_header_stdc = yes; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define STDC_HEADERS 1
6742 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6753 inttypes.h stdint.h unistd.h
6755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 cat >conftest.$ac_ext <<_ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 $ac_includes_default
6769 #include <$ac_header>
6771 rm -f conftest.$ac_objext
6772 if { (ac_try="$ac_compile"
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_compile") 2>conftest.er1
6780 grep -v '^ *+' conftest.er1 >conftest.err
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_cxx_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest.$ac_objext; then
6788 eval "$as_ac_Header=yes"
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6793 eval "$as_ac_Header=no"
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 ac_res=`eval echo '${'$as_ac_Header'}'`
6799 { echo "$as_me:$LINENO: result: $ac_res" >&5
6800 echo "${ECHO_T}$ac_res" >&6; }
6801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6802 cat >>confdefs.h <<_ACEOF
6803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 ac_res=`eval echo '${'$as_ac_Header'}'`
6856 { echo "$as_me:$LINENO: result: $ac_res" >&5
6857 echo "${ECHO_T}$ac_res" >&6; }
6859 # Is the header compilable?
6860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6862 cat >conftest.$ac_ext <<_ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 $ac_includes_default
6869 #include <$ac_header>
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_compile") 2>conftest.er1
6880 grep -v '^ *+' conftest.er1 >conftest.err
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && {
6885 test -z "$ac_cxx_werror_flag" ||
6886 test ! -s conftest.err
6887 } && test -s conftest.$ac_objext; then
6888 ac_header_compiler=yes
6890 echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6893 ac_header_compiler=no
6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6898 echo "${ECHO_T}$ac_header_compiler" >&6; }
6900 # Is the header present?
6901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6903 cat >conftest.$ac_ext <<_ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 #include <$ac_header>
6911 if { (ac_try="$ac_cpp conftest.$ac_ext"
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6919 grep -v '^ *+' conftest.er1 >conftest.err
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } >/dev/null && {
6924 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6925 test ! -s conftest.err
6927 ac_header_preproc=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6932 ac_header_preproc=no
6935 rm -f conftest.err conftest.$ac_ext
6936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6937 echo "${ECHO_T}$ac_header_preproc" >&6; }
6939 # So? What about this header?
6940 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6946 ac_header_preproc=yes
6949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 eval "$as_ac_Header=\$ac_header_preproc"
6971 ac_res=`eval echo '${'$as_ac_Header'}'`
6972 { echo "$as_me:$LINENO: result: $ac_res" >&5
6973 echo "${ECHO_T}$ac_res" >&6; }
6976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6977 cat >>confdefs.h <<_ACEOF
6978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6986 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6987 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6988 if test "${ac_cv_header_time+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 #include <sys/types.h>
6998 #include <sys/time.h>
7004 if ((struct tm *) 0)
7010 rm -f conftest.$ac_objext
7011 if { (ac_try="$ac_compile"
7013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_compile") 2>conftest.er1
7019 grep -v '^ *+' conftest.er1 >conftest.err
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && {
7024 test -z "$ac_cxx_werror_flag" ||
7025 test ! -s conftest.err
7026 } && test -s conftest.$ac_objext; then
7027 ac_cv_header_time=yes
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_header_time=no
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7038 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7039 if test $ac_cv_header_time = yes; then
7041 cat >>confdefs.h <<\_ACEOF
7042 #define TIME_WITH_SYS_TIME 1
7048 { echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7049 echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7050 if test "${rxvt_cv_header_sysioctl+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 cat >conftest.$ac_ext <<_ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7060 #include <sys/ioctl.h>
7061 #ifdef HAVE_TERMIOS_H
7062 #include <termios.h>
7072 rm -f conftest.$ac_objext
7073 if { (ac_try="$ac_compile"
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7081 grep -v '^ *+' conftest.er1 >conftest.err
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_cxx_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.$ac_objext; then
7089 rxvt_cv_header_sysioctl=yes
7091 echo "$as_me: failed program was:" >&5
7092 sed 's/^/| /' conftest.$ac_ext >&5
7094 rxvt_cv_header_sysioctl=no
7097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 { echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7100 echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7102 { echo "$as_me:$LINENO: checking for XPointer" >&5
7103 echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7104 if test "${rxvt_cv_xpointer+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 cat >conftest.$ac_ext <<_ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <X11/Xlib.h>
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7131 grep -v '^ *+' conftest.er1 >conftest.err
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_cxx_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 rxvt_cv_xpointer=yes
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 { echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7150 echo "${ECHO_T}$rxvt_cv_xpointer" >&6; }
7151 if test x$rxvt_cv_xpointer = xyes; then
7153 cat >>confdefs.h <<\_ACEOF
7154 #define HAVE_XPOINTER 1
7159 { echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7160 echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7161 if test "${rxvt_xlib_illegal_access+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 cat >conftest.$ac_ext <<_ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7171 #define XLIB_ILLEGAL_ACCESS
7172 #include <X11/Xlib.h>
7179 dpy->xdefaults = (char *)0;
7185 rm -f conftest.$ac_objext
7186 if { (ac_try="$ac_compile"
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_compile") 2>conftest.er1
7194 grep -v '^ *+' conftest.er1 >conftest.err
7196 cat conftest.err >&5
7197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && {
7199 test -z "$ac_cxx_werror_flag" ||
7200 test ! -s conftest.err
7201 } && test -s conftest.$ac_objext; then
7202 rxvt_xlib_illegal_access=yes
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7207 rxvt_xlib_illegal_access=no
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213 { echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7214 echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; }
7215 if test x$rxvt_xlib_illegal_access = xyes; then
7217 cat >>confdefs.h <<\_ACEOF
7218 #define XLIB_ILLEGAL_ACCESS 1
7223 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7224 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7225 if test "${ac_cv_c_const+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7238 /* FIXME: Include the comments suggested by Paul. */
7240 /* Ultrix mips cc rejects this. */
7241 typedef int charset[2];
7243 /* SunOS 4.1.1 cc rejects this. */
7244 char const *const *pcpcc;
7246 /* NEC SVR4.0.2 mips cc rejects this. */
7247 struct point {int x, y;};
7248 static struct point const zero = {0,0};
7249 /* AIX XL C 1.02.0.0 rejects this.
7250 It does not let you subtract one const X* pointer from another in
7251 an arm of an if-expression whose if-part is not a constant
7253 const char *g = "string";
7254 pcpcc = &g + (g ? g-g : 0);
7255 /* HPUX 7.0 cc rejects these. */
7257 ppc = (char**) pcpcc;
7258 pcpcc = (char const *const *) ppc;
7259 { /* SCO 3.2v4 cc rejects this. */
7261 char const *s = 0 ? (char *) 0 : (char const *) 0;
7266 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7268 const int *foo = &x[0];
7271 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7272 typedef const int *iptr;
7276 { /* AIX XL C 1.02.0.0 rejects this saying
7277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7278 struct s { int j; const int *ap[3]; };
7279 struct s *b; b->j = 5;
7281 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7285 return !cs[0] && !zero.x;
7292 rm -f conftest.$ac_objext
7293 if { (ac_try="$ac_compile"
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_compile") 2>conftest.er1
7301 grep -v '^ *+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } && {
7306 test -z "$ac_cxx_werror_flag" ||
7307 test ! -s conftest.err
7308 } && test -s conftest.$ac_objext; then
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7320 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7321 if test $ac_cv_c_const = no; then
7323 cat >>confdefs.h <<\_ACEOF
7329 { echo "$as_me:$LINENO: checking for inline" >&5
7330 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7331 if test "${ac_cv_c_inline+set}" = set; then
7332 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 for ac_kw in inline __inline__ __inline; do
7336 cat >conftest.$ac_ext <<_ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7344 static $ac_kw foo_t static_foo () {return 0; }
7345 $ac_kw foo_t foo () {return 0; }
7349 rm -f conftest.$ac_objext
7350 if { (ac_try="$ac_compile"
7352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7358 grep -v '^ *+' conftest.er1 >conftest.err
7360 cat conftest.err >&5
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_cxx_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_c_inline=$ac_kw
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 test "$ac_cv_c_inline" != no && break
7379 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7380 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7383 case $ac_cv_c_inline in
7386 case $ac_cv_c_inline in
7388 *) ac_val=$ac_cv_c_inline;;
7390 cat >>confdefs.h <<_ACEOF
7392 #define inline $ac_val
7400 { echo "$as_me:$LINENO: checking for mode_t" >&5
7401 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7402 if test "${ac_cv_type_mode_t+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7405 cat >conftest.$ac_ext <<_ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 $ac_includes_default
7412 typedef mode_t ac__type_new_;
7416 if ((ac__type_new_ *) 0)
7418 if (sizeof (ac__type_new_))
7424 rm -f conftest.$ac_objext
7425 if { (ac_try="$ac_compile"
7427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428 *) ac_try_echo=$ac_try;;
7430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431 (eval "$ac_compile") 2>conftest.er1
7433 grep -v '^ *+' conftest.er1 >conftest.err
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && {
7438 test -z "$ac_cxx_werror_flag" ||
7439 test ! -s conftest.err
7440 } && test -s conftest.$ac_objext; then
7441 ac_cv_type_mode_t=yes
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7446 ac_cv_type_mode_t=no
7449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7452 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7453 if test $ac_cv_type_mode_t = yes; then
7457 cat >>confdefs.h <<_ACEOF
7463 { echo "$as_me:$LINENO: checking for pid_t" >&5
7464 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7465 if test "${ac_cv_type_pid_t+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 cat >conftest.$ac_ext <<_ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 $ac_includes_default
7475 typedef pid_t ac__type_new_;
7479 if ((ac__type_new_ *) 0)
7481 if (sizeof (ac__type_new_))
7487 rm -f conftest.$ac_objext
7488 if { (ac_try="$ac_compile"
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7494 (eval "$ac_compile") 2>conftest.er1
7496 grep -v '^ *+' conftest.er1 >conftest.err
7498 cat conftest.err >&5
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); } && {
7501 test -z "$ac_cxx_werror_flag" ||
7502 test ! -s conftest.err
7503 } && test -s conftest.$ac_objext; then
7504 ac_cv_type_pid_t=yes
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7515 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7516 if test $ac_cv_type_pid_t = yes; then
7520 cat >>confdefs.h <<_ACEOF
7526 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7527 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7528 if test "${ac_cv_type_uid_t+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7531 cat >conftest.$ac_ext <<_ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 #include <sys/types.h>
7540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7541 $EGREP "uid_t" >/dev/null 2>&1; then
7542 ac_cv_type_uid_t=yes
7549 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7550 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7551 if test $ac_cv_type_uid_t = no; then
7553 cat >>confdefs.h <<\_ACEOF
7558 cat >>confdefs.h <<\_ACEOF
7565 { echo "$as_me:$LINENO: checking for short" >&5
7566 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7567 if test "${ac_cv_type_short+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 cat >conftest.$ac_ext <<_ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 $ac_includes_default
7577 typedef short ac__type_new_;
7581 if ((ac__type_new_ *) 0)
7583 if (sizeof (ac__type_new_))
7589 rm -f conftest.$ac_objext
7590 if { (ac_try="$ac_compile"
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_compile") 2>conftest.er1
7598 grep -v '^ *+' conftest.er1 >conftest.err
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } && {
7603 test -z "$ac_cxx_werror_flag" ||
7604 test ! -s conftest.err
7605 } && test -s conftest.$ac_objext; then
7606 ac_cv_type_short=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7617 echo "${ECHO_T}$ac_cv_type_short" >&6; }
7619 # The cast to long int works around a bug in the HP C Compiler
7620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7622 # This bug is HP SR number 8606223364.
7623 { echo "$as_me:$LINENO: checking size of short" >&5
7624 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
7625 if test "${ac_cv_sizeof_short+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 if test "$cross_compiling" = yes; then
7629 # Depending upon the size, compute the lo and hi bounds.
7630 cat >conftest.$ac_ext <<_ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 $ac_includes_default
7637 typedef short ac__type_sizeof_;
7641 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_cxx_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 $ac_includes_default
7674 typedef short ac__type_sizeof_;
7678 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7694 grep -v '^ *+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_cxx_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then
7702 ac_hi=$ac_mid; break
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_lo=`expr $ac_mid + 1`
7708 if test $ac_lo -le $ac_mid; then
7712 ac_mid=`expr 2 '*' $ac_mid + 1`
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7721 cat >conftest.$ac_ext <<_ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 typedef short ac__type_sizeof_;
7732 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_compile") 2>conftest.er1
7748 grep -v '^ *+' conftest.er1 >conftest.err
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_cxx_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then
7758 cat >conftest.$ac_ext <<_ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 $ac_includes_default
7765 typedef short ac__type_sizeof_;
7769 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7776 rm -f conftest.$ac_objext
7777 if { (ac_try="$ac_compile"
7779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7780 *) ac_try_echo=$ac_try;;
7782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7783 (eval "$ac_compile") 2>conftest.er1
7785 grep -v '^ *+' conftest.er1 >conftest.err
7787 cat conftest.err >&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); } && {
7790 test -z "$ac_cxx_werror_flag" ||
7791 test ! -s conftest.err
7792 } && test -s conftest.$ac_objext; then
7793 ac_lo=$ac_mid; break
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7798 ac_hi=`expr '(' $ac_mid ')' - 1`
7799 if test $ac_mid -le $ac_hi; then
7803 ac_mid=`expr 2 '*' $ac_mid`
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 # Binary search between lo and hi bounds.
7820 while test "x$ac_lo" != "x$ac_hi"; do
7821 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7822 cat >conftest.$ac_ext <<_ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 $ac_includes_default
7829 typedef short ac__type_sizeof_;
7833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7840 rm -f conftest.$ac_objext
7841 if { (ac_try="$ac_compile"
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_compile") 2>conftest.er1
7849 grep -v '^ *+' conftest.er1 >conftest.err
7851 cat conftest.err >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_cxx_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest.$ac_objext; then
7859 echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7862 ac_lo=`expr '(' $ac_mid ')' + 1`
7865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 ?*) ac_cv_sizeof_short=$ac_lo;;
7869 '') if test "$ac_cv_type_short" = yes; then
7870 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7871 See \`config.log' for more details." >&5
7872 echo "$as_me: error: cannot compute sizeof (short)
7873 See \`config.log' for more details." >&2;}
7874 { (exit 77); exit 77; }; }
7876 ac_cv_sizeof_short=0
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 $ac_includes_default
7887 typedef short ac__type_sizeof_;
7888 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7889 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7896 FILE *f = fopen ("conftest.val", "w");
7899 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7901 long int i = longval ();
7902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7904 fprintf (f, "%ld\n", i);
7908 unsigned long int i = ulongval ();
7909 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7911 fprintf (f, "%lu\n", i);
7913 return ferror (f) || fclose (f) != 0;
7919 rm -f conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_link") 2>&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7930 { (case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_try") 2>&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7939 ac_cv_sizeof_short=`cat conftest.val`
7941 echo "$as_me: program exited with status $ac_status" >&5
7942 echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7946 if test "$ac_cv_type_short" = yes; then
7947 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
7948 See \`config.log' for more details." >&5
7949 echo "$as_me: error: cannot compute sizeof (short)
7950 See \`config.log' for more details." >&2;}
7951 { (exit 77); exit 77; }; }
7953 ac_cv_sizeof_short=0
7956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7960 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7961 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
7965 cat >>confdefs.h <<_ACEOF
7966 #define SIZEOF_SHORT $ac_cv_sizeof_short
7970 { echo "$as_me:$LINENO: checking for int" >&5
7971 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
7972 if test "${ac_cv_type_int+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 cat >conftest.$ac_ext <<_ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7981 $ac_includes_default
7982 typedef int ac__type_new_;
7986 if ((ac__type_new_ *) 0)
7988 if (sizeof (ac__type_new_))
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_compile") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_cxx_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest.$ac_objext; then
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8022 echo "${ECHO_T}$ac_cv_type_int" >&6; }
8024 # The cast to long int works around a bug in the HP C Compiler
8025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8027 # This bug is HP SR number 8606223364.
8028 { echo "$as_me:$LINENO: checking size of int" >&5
8029 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8030 if test "${ac_cv_sizeof_int+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8033 if test "$cross_compiling" = yes; then
8034 # Depending upon the size, compute the lo and hi bounds.
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8041 $ac_includes_default
8042 typedef int ac__type_sizeof_;
8046 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8062 grep -v '^ *+' conftest.er1 >conftest.err
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_cxx_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8078 $ac_includes_default
8079 typedef int ac__type_sizeof_;
8083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8094 *) ac_try_echo=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_cxx_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.$ac_objext; then
8107 ac_hi=$ac_mid; break
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.$ac_ext >&5
8112 ac_lo=`expr $ac_mid + 1`
8113 if test $ac_lo -le $ac_mid; then
8117 ac_mid=`expr 2 '*' $ac_mid + 1`
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8126 cat >conftest.$ac_ext <<_ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 $ac_includes_default
8133 typedef int ac__type_sizeof_;
8137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_cxx_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8163 cat >conftest.$ac_ext <<_ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 $ac_includes_default
8170 typedef int ac__type_sizeof_;
8174 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8181 rm -f conftest.$ac_objext
8182 if { (ac_try="$ac_compile"
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_cxx_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 ac_lo=$ac_mid; break
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 ac_hi=`expr '(' $ac_mid ')' - 1`
8204 if test $ac_mid -le $ac_hi; then
8208 ac_mid=`expr 2 '*' $ac_mid`
8211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 # Binary search between lo and hi bounds.
8225 while test "x$ac_lo" != "x$ac_hi"; do
8226 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8227 cat >conftest.$ac_ext <<_ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h. */
8233 $ac_includes_default
8234 typedef int ac__type_sizeof_;
8238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8254 grep -v '^ *+' conftest.er1 >conftest.err
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_cxx_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8267 ac_lo=`expr '(' $ac_mid ')' + 1`
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 ?*) ac_cv_sizeof_int=$ac_lo;;
8274 '') if test "$ac_cv_type_int" = yes; then
8275 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8276 See \`config.log' for more details." >&5
8277 echo "$as_me: error: cannot compute sizeof (int)
8278 See \`config.log' for more details." >&2;}
8279 { (exit 77); exit 77; }; }
8285 cat >conftest.$ac_ext <<_ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8292 typedef int ac__type_sizeof_;
8293 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8294 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8301 FILE *f = fopen ("conftest.val", "w");
8304 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8306 long int i = longval ();
8307 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8309 fprintf (f, "%ld\n", i);
8313 unsigned long int i = ulongval ();
8314 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8316 fprintf (f, "%lu\n", i);
8318 return ferror (f) || fclose (f) != 0;
8324 rm -f conftest$ac_exeext
8325 if { (ac_try="$ac_link"
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_link") 2>&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8335 { (case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_try") 2>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_sizeof_int=`cat conftest.val`
8346 echo "$as_me: program exited with status $ac_status" >&5
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8351 if test "$ac_cv_type_int" = yes; then
8352 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8353 See \`config.log' for more details." >&5
8354 echo "$as_me: error: cannot compute sizeof (int)
8355 See \`config.log' for more details." >&2;}
8356 { (exit 77); exit 77; }; }
8361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8365 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8366 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8370 cat >>confdefs.h <<_ACEOF
8371 #define SIZEOF_INT $ac_cv_sizeof_int
8375 { echo "$as_me:$LINENO: checking for long long" >&5
8376 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8377 if test "${ac_cv_type_long_long+set}" = set; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 $ac_includes_default
8387 typedef long long ac__type_new_;
8391 if ((ac__type_new_ *) 0)
8393 if (sizeof (ac__type_new_))
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8408 grep -v '^ *+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } && {
8413 test -z "$ac_cxx_werror_flag" ||
8414 test ! -s conftest.err
8415 } && test -s conftest.$ac_objext; then
8416 ac_cv_type_long_long=yes
8418 echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_cv_type_long_long=no
8424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8427 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8429 # The cast to long int works around a bug in the HP C Compiler
8430 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8431 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8432 # This bug is HP SR number 8606223364.
8433 { echo "$as_me:$LINENO: checking size of long long" >&5
8434 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8435 if test "${ac_cv_sizeof_long_long+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 if test "$cross_compiling" = yes; then
8439 # Depending upon the size, compute the lo and hi bounds.
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 typedef long long ac__type_sizeof_;
8451 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_cxx_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 $ac_includes_default
8484 typedef long long ac__type_sizeof_;
8488 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8495 rm -f conftest.$ac_objext
8496 if { (ac_try="$ac_compile"
8498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8499 *) ac_try_echo=$ac_try;;
8501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8502 (eval "$ac_compile") 2>conftest.er1
8504 grep -v '^ *+' conftest.er1 >conftest.err
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } && {
8509 test -z "$ac_cxx_werror_flag" ||
8510 test ! -s conftest.err
8511 } && test -s conftest.$ac_objext; then
8512 ac_hi=$ac_mid; break
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8517 ac_lo=`expr $ac_mid + 1`
8518 if test $ac_lo -le $ac_mid; then
8522 ac_mid=`expr 2 '*' $ac_mid + 1`
8525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 cat >conftest.$ac_ext <<_ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 $ac_includes_default
8538 typedef long long ac__type_sizeof_;
8542 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8549 rm -f conftest.$ac_objext
8550 if { (ac_try="$ac_compile"
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_compile") 2>conftest.er1
8558 grep -v '^ *+' conftest.er1 >conftest.err
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); } && {
8563 test -z "$ac_cxx_werror_flag" ||
8564 test ! -s conftest.err
8565 } && test -s conftest.$ac_objext; then
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574 $ac_includes_default
8575 typedef long long ac__type_sizeof_;
8579 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8586 rm -f conftest.$ac_objext
8587 if { (ac_try="$ac_compile"
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8595 grep -v '^ *+' conftest.er1 >conftest.err
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_cxx_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_lo=$ac_mid; break
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 ac_hi=`expr '(' $ac_mid ')' - 1`
8609 if test $ac_mid -le $ac_hi; then
8613 ac_mid=`expr 2 '*' $ac_mid`
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629 # Binary search between lo and hi bounds.
8630 while test "x$ac_lo" != "x$ac_hi"; do
8631 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8632 cat >conftest.$ac_ext <<_ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638 $ac_includes_default
8639 typedef long long ac__type_sizeof_;
8643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8650 rm -f conftest.$ac_objext
8651 if { (ac_try="$ac_compile"
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_cxx_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_lo=`expr '(' $ac_mid ')' + 1`
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8678 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8679 '') if test "$ac_cv_type_long_long" = yes; then
8680 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8681 See \`config.log' for more details." >&5
8682 echo "$as_me: error: cannot compute sizeof (long long)
8683 See \`config.log' for more details." >&2;}
8684 { (exit 77); exit 77; }; }
8686 ac_cv_sizeof_long_long=0
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 $ac_includes_default
8697 typedef long long ac__type_sizeof_;
8698 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8699 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8706 FILE *f = fopen ("conftest.val", "w");
8709 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8711 long int i = longval ();
8712 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8714 fprintf (f, "%ld\n", i);
8718 unsigned long int i = ulongval ();
8719 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8721 fprintf (f, "%lu\n", i);
8723 return ferror (f) || fclose (f) != 0;
8729 rm -f conftest$ac_exeext
8730 if { (ac_try="$ac_link"
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_link") 2>&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_sizeof_long_long=`cat conftest.val`
8751 echo "$as_me: program exited with status $ac_status" >&5
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8756 if test "$ac_cv_type_long_long" = yes; then
8757 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
8758 See \`config.log' for more details." >&5
8759 echo "$as_me: error: cannot compute sizeof (long long)
8760 See \`config.log' for more details." >&2;}
8761 { (exit 77); exit 77; }; }
8763 ac_cv_sizeof_long_long=0
8766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8770 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8771 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
8775 cat >>confdefs.h <<_ACEOF
8776 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8780 { echo "$as_me:$LINENO: checking for int *" >&5
8781 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
8782 if test "${ac_cv_type_int_p+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 cat >conftest.$ac_ext <<_ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8792 typedef int * ac__type_new_;
8796 if ((ac__type_new_ *) 0)
8798 if (sizeof (ac__type_new_))
8804 rm -f conftest.$ac_objext
8805 if { (ac_try="$ac_compile"
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_compile") 2>conftest.er1
8813 grep -v '^ *+' conftest.er1 >conftest.err
8815 cat conftest.err >&5
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && {
8818 test -z "$ac_cxx_werror_flag" ||
8819 test ! -s conftest.err
8820 } && test -s conftest.$ac_objext; then
8821 ac_cv_type_int_p=yes
8823 echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
8832 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
8834 # The cast to long int works around a bug in the HP C Compiler
8835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8837 # This bug is HP SR number 8606223364.
8838 { echo "$as_me:$LINENO: checking size of int *" >&5
8839 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
8840 if test "${ac_cv_sizeof_int_p+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 if test "$cross_compiling" = yes; then
8844 # Depending upon the size, compute the lo and hi bounds.
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 $ac_includes_default
8852 typedef int * ac__type_sizeof_;
8856 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8872 grep -v '^ *+' conftest.er1 >conftest.err
8874 cat conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_cxx_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 $ac_includes_default
8889 typedef int * ac__type_sizeof_;
8893 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8909 grep -v '^ *+' conftest.er1 >conftest.err
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_cxx_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest.$ac_objext; then
8917 ac_hi=$ac_mid; break
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_lo=`expr $ac_mid + 1`
8923 if test $ac_lo -le $ac_mid; then
8927 ac_mid=`expr 2 '*' $ac_mid + 1`
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.$ac_ext >&5
8936 cat >conftest.$ac_ext <<_ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 typedef int * ac__type_sizeof_;
8947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8954 rm -f conftest.$ac_objext
8955 if { (ac_try="$ac_compile"
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_compile") 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_cxx_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest.$ac_objext; then
8973 cat >conftest.$ac_ext <<_ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 $ac_includes_default
8980 typedef int * ac__type_sizeof_;
8984 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8991 rm -f conftest.$ac_objext
8992 if { (ac_try="$ac_compile"
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_compile") 2>conftest.er1
9000 grep -v '^ *+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } && {
9005 test -z "$ac_cxx_werror_flag" ||
9006 test ! -s conftest.err
9007 } && test -s conftest.$ac_objext; then
9008 ac_lo=$ac_mid; break
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 ac_hi=`expr '(' $ac_mid ')' - 1`
9014 if test $ac_mid -le $ac_hi; then
9018 ac_mid=`expr 2 '*' $ac_mid`
9021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 # Binary search between lo and hi bounds.
9035 while test "x$ac_lo" != "x$ac_hi"; do
9036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9037 cat >conftest.$ac_ext <<_ACEOF
9040 cat confdefs.h >>conftest.$ac_ext
9041 cat >>conftest.$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 $ac_includes_default
9044 typedef int * ac__type_sizeof_;
9048 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9055 rm -f conftest.$ac_objext
9056 if { (ac_try="$ac_compile"
9058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059 *) ac_try_echo=$ac_try;;
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062 (eval "$ac_compile") 2>conftest.er1
9064 grep -v '^ *+' conftest.er1 >conftest.err
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } && {
9069 test -z "$ac_cxx_werror_flag" ||
9070 test ! -s conftest.err
9071 } && test -s conftest.$ac_objext; then
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 ac_lo=`expr '(' $ac_mid ')' + 1`
9080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9083 ?*) ac_cv_sizeof_int_p=$ac_lo;;
9084 '') if test "$ac_cv_type_int_p" = yes; then
9085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9086 See \`config.log' for more details." >&5
9087 echo "$as_me: error: cannot compute sizeof (int *)
9088 See \`config.log' for more details." >&2;}
9089 { (exit 77); exit 77; }; }
9091 ac_cv_sizeof_int_p=0
9095 cat >conftest.$ac_ext <<_ACEOF
9098 cat confdefs.h >>conftest.$ac_ext
9099 cat >>conftest.$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9101 $ac_includes_default
9102 typedef int * ac__type_sizeof_;
9103 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9104 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9111 FILE *f = fopen ("conftest.val", "w");
9114 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9116 long int i = longval ();
9117 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9119 fprintf (f, "%ld\n", i);
9123 unsigned long int i = ulongval ();
9124 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9126 fprintf (f, "%lu\n", i);
9128 return ferror (f) || fclose (f) != 0;
9134 rm -f conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9145 { (case "(($ac_try" in
9146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147 *) ac_try_echo=$ac_try;;
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_try") 2>&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 ac_cv_sizeof_int_p=`cat conftest.val`
9156 echo "$as_me: program exited with status $ac_status" >&5
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9161 if test "$ac_cv_type_int_p" = yes; then
9162 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9163 See \`config.log' for more details." >&5
9164 echo "$as_me: error: cannot compute sizeof (int *)
9165 See \`config.log' for more details." >&2;}
9166 { (exit 77); exit 77; }; }
9168 ac_cv_sizeof_int_p=0
9171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9175 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9176 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9180 cat >>confdefs.h <<_ACEOF
9181 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
9187 { echo "$as_me:$LINENO: checking for int16_t" >&5
9188 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9189 if test "${rxvt_cv_int16_t+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 cat >conftest.$ac_ext <<_ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9207 rm -f conftest.$ac_objext
9208 if { (ac_try="$ac_compile"
9210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9211 *) ac_try_echo=$ac_try;;
9213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9214 (eval "$ac_compile") 2>conftest.er1
9216 grep -v '^ *+' conftest.er1 >conftest.err
9218 cat conftest.err >&5
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } && {
9221 test -z "$ac_cxx_werror_flag" ||
9222 test ! -s conftest.err
9223 } && test -s conftest.$ac_objext; then
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9229 if test "$ac_cv_sizeof_char" -ge 2; then
9230 rxvt_cv_int16_t=" char"
9232 if test "$ac_cv_sizeof_short" -ge 2; then
9233 rxvt_cv_int16_t=" short"
9235 if test "$ac_cv_sizeof_int" -ge 2; then
9236 rxvt_cv_int16_t=" int"
9238 if test "$ac_cv_sizeof_long" -ge 2; then
9239 rxvt_cv_int16_t=" long"
9241 if test "$ac_cv_sizeof_long_long" -ge 2; then
9242 rxvt_cv_int16_t=" long long"
9244 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 { echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9255 echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9256 if test x"$rxvt_cv_int16_t" != xyes; then
9257 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9259 if test x"" = x; then
9260 rxvt_int16_typedef="/* typedef short int16_t; */"
9262 rxvt_int16_typedef="/* typedef short int16_t; */"
9266 { echo "$as_me:$LINENO: checking for uint16_t" >&5
9267 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9268 if test "${rxvt_cv_uint16_t+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9286 rm -f conftest.$ac_objext
9287 if { (ac_try="$ac_compile"
9289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290 *) ac_try_echo=$ac_try;;
9292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_compile") 2>conftest.er1
9295 grep -v '^ *+' conftest.er1 >conftest.err
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } && {
9300 test -z "$ac_cxx_werror_flag" ||
9301 test ! -s conftest.err
9302 } && test -s conftest.$ac_objext; then
9303 rxvt_cv_uint16_t=yes
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9308 if test "$ac_cv_sizeof_char" -ge 2; then
9309 rxvt_cv_uint16_t="unsigned char"
9311 if test "$ac_cv_sizeof_short" -ge 2; then
9312 rxvt_cv_uint16_t="unsigned short"
9314 if test "$ac_cv_sizeof_int" -ge 2; then
9315 rxvt_cv_uint16_t="unsigned int"
9317 if test "$ac_cv_sizeof_long" -ge 2; then
9318 rxvt_cv_uint16_t="unsigned long"
9320 if test "$ac_cv_sizeof_long_long" -ge 2; then
9321 rxvt_cv_uint16_t="unsigned long long"
9323 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9333 { echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9334 echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9335 if test x"$rxvt_cv_uint16_t" != xyes; then
9336 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9338 if test x"unsigned" = x; then
9339 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9341 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9345 { echo "$as_me:$LINENO: checking for int32_t" >&5
9346 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9347 if test "${rxvt_cv_int32_t+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 cat >conftest.$ac_ext <<_ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9365 rm -f conftest.$ac_objext
9366 if { (ac_try="$ac_compile"
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_compile") 2>conftest.er1
9374 grep -v '^ *+' conftest.er1 >conftest.err
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } && {
9379 test -z "$ac_cxx_werror_flag" ||
9380 test ! -s conftest.err
9381 } && test -s conftest.$ac_objext; then
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9387 if test "$ac_cv_sizeof_char" -ge 4; then
9388 rxvt_cv_int32_t=" char"
9390 if test "$ac_cv_sizeof_short" -ge 4; then
9391 rxvt_cv_int32_t=" short"
9393 if test "$ac_cv_sizeof_int" -ge 4; then
9394 rxvt_cv_int32_t=" int"
9396 if test "$ac_cv_sizeof_long" -ge 4; then
9397 rxvt_cv_int32_t=" long"
9399 if test "$ac_cv_sizeof_long_long" -ge 4; then
9400 rxvt_cv_int32_t=" long long"
9402 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412 { echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9413 echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9414 if test x"$rxvt_cv_int32_t" != xyes; then
9415 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9417 if test x"" = x; then
9418 rxvt_int32_typedef="/* typedef int int32_t; */"
9420 rxvt_int32_typedef="/* typedef int int32_t; */"
9424 { echo "$as_me:$LINENO: checking for uint32_t" >&5
9425 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9426 if test "${rxvt_cv_uint32_t+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 cat >conftest.$ac_ext <<_ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9444 rm -f conftest.$ac_objext
9445 if { (ac_try="$ac_compile"
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_compile") 2>conftest.er1
9453 grep -v '^ *+' conftest.er1 >conftest.err
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_cxx_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest.$ac_objext; then
9461 rxvt_cv_uint32_t=yes
9463 echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9466 if test "$ac_cv_sizeof_char" -ge 4; then
9467 rxvt_cv_uint32_t="unsigned char"
9469 if test "$ac_cv_sizeof_short" -ge 4; then
9470 rxvt_cv_uint32_t="unsigned short"
9472 if test "$ac_cv_sizeof_int" -ge 4; then
9473 rxvt_cv_uint32_t="unsigned int"
9475 if test "$ac_cv_sizeof_long" -ge 4; then
9476 rxvt_cv_uint32_t="unsigned long"
9478 if test "$ac_cv_sizeof_long_long" -ge 4; then
9479 rxvt_cv_uint32_t="unsigned long long"
9481 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 { echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9492 echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9493 if test x"$rxvt_cv_uint32_t" != xyes; then
9494 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9496 if test x"unsigned" = x; then
9497 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9499 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9503 if test "$ac_cv_sizeof_int_p" -eq 8; then
9504 rxvt_intp_define="#define intp_t int64_t"
9505 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9507 if test "$ac_cv_sizeof_int_p" -eq 4; then
9508 rxvt_intp_define="#define intp_t int32_t"
9509 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9511 if test "$ac_cv_sizeof_int_p" -eq 2; then
9512 rxvt_intp_define="#define intp_t int16_t"
9513 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9515 rxvt_intp_define="#error set intp_t"
9516 rxvt_u_intp_define="#error set u_intp_t"
9523 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9524 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9525 if test "${ac_cv_type_signal+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 cat >conftest.$ac_ext <<_ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 #include <sys/types.h>
9540 return *(signal (0, 0)) (0) == 1;
9545 rm -f conftest.$ac_objext
9546 if { (ac_try="$ac_compile"
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_compile") 2>conftest.er1
9554 grep -v '^ *+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && {
9559 test -z "$ac_cxx_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest.$ac_objext; then
9562 ac_cv_type_signal=int
9564 echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9567 ac_cv_type_signal=void
9570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9572 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9573 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9575 cat >>confdefs.h <<_ACEOF
9576 #define RETSIGTYPE $ac_cv_type_signal
9590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 cat >conftest.$ac_ext <<_ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9604 #define $ac_func innocuous_$ac_func
9606 /* System header to define __stub macros and hopefully few prototypes,
9607 which can conflict with char $ac_func (); below.
9608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9609 <limits.h> exists even on freestanding compilers. */
9612 # include <limits.h>
9614 # include <assert.h>
9619 /* Override any GCC internal prototype to avoid an error.
9620 Use char because int might match the return type of a GCC
9621 builtin and then its argument prototype would still apply. */
9626 /* The GNU C library defines this for functions which it implements
9627 to always fail with ENOSYS. Some functions are actually named
9628 something starting with __ and the normal name is an alias. */
9629 #if defined __stub_$ac_func || defined __stub___$ac_func
9641 rm -f conftest.$ac_objext conftest$ac_exeext
9642 if { (ac_try="$ac_link"
9644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9645 *) ac_try_echo=$ac_try;;
9647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9648 (eval "$ac_link") 2>conftest.er1
9650 grep -v '^ *+' conftest.er1 >conftest.err
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } && {
9655 test -z "$ac_cxx_werror_flag" ||
9656 test ! -s conftest.err
9657 } && test -s conftest$ac_exeext &&
9658 $as_test_x conftest$ac_exeext; then
9659 eval "$as_ac_var=yes"
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 eval "$as_ac_var=no"
9667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9668 conftest$ac_exeext conftest.$ac_ext
9670 ac_res=`eval echo '${'$as_ac_var'}'`
9671 { echo "$as_me:$LINENO: result: $ac_res" >&5
9672 echo "${ECHO_T}$ac_res" >&6; }
9673 if test `eval echo '${'$as_ac_var'}'` = yes; then
9674 cat >>confdefs.h <<_ACEOF
9675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9687 # Check whether --enable-utmp was given.
9688 if test "${enable_utmp+set}" = set; then
9689 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
9690 support_utmp=$enableval
9695 # Check whether --enable-wtmp was given.
9696 if test "${enable_wtmp+set}" = set; then
9697 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
9698 support_wtmp=$enableval
9703 # Check whether --enable-lastlog was given.
9704 if test "${enable_lastlog+set}" = set; then
9705 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
9706 support_lastlog=$enableval
9711 if test x$support_utmp = xyes; then
9713 cat >>confdefs.h <<\_ACEOF
9714 #define UTMP_SUPPORT 1
9718 if test x$support_wtmp = xyes; then
9720 cat >>confdefs.h <<\_ACEOF
9721 #define WTMP_SUPPORT 1
9725 if test x$support_lastlog = xyes; then
9727 cat >>confdefs.h <<\_ACEOF
9728 #define LASTLOG_SUPPORT 1
9742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 cat >conftest.$ac_ext <<_ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9756 #define $ac_func innocuous_$ac_func
9758 /* System header to define __stub macros and hopefully few prototypes,
9759 which can conflict with char $ac_func (); below.
9760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9761 <limits.h> exists even on freestanding compilers. */
9764 # include <limits.h>
9766 # include <assert.h>
9771 /* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9778 /* The GNU C library defines this for functions which it implements
9779 to always fail with ENOSYS. Some functions are actually named
9780 something starting with __ and the normal name is an alias. */
9781 #if defined __stub_$ac_func || defined __stub___$ac_func
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (ac_try="$ac_link"
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_link") 2>conftest.er1
9802 grep -v '^ *+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_cxx_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest$ac_exeext &&
9810 $as_test_x conftest$ac_exeext; then
9811 eval "$as_ac_var=yes"
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 eval "$as_ac_var=no"
9819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9820 conftest$ac_exeext conftest.$ac_ext
9822 ac_res=`eval echo '${'$as_ac_var'}'`
9823 { echo "$as_me:$LINENO: result: $ac_res" >&5
9824 echo "${ECHO_T}$ac_res" >&6; }
9825 if test `eval echo '${'$as_ac_var'}'` = yes; then
9826 cat >>confdefs.h <<_ACEOF
9827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 ac_res=`eval echo '${'$as_ac_Header'}'`
9851 { echo "$as_me:$LINENO: result: $ac_res" >&5
9852 echo "${ECHO_T}$ac_res" >&6; }
9854 # Is the header compilable?
9855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9857 cat >conftest.$ac_ext <<_ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 $ac_includes_default
9864 #include <$ac_header>
9866 rm -f conftest.$ac_objext
9867 if { (ac_try="$ac_compile"
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_compile") 2>conftest.er1
9875 grep -v '^ *+' conftest.er1 >conftest.err
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } && {
9880 test -z "$ac_cxx_werror_flag" ||
9881 test ! -s conftest.err
9882 } && test -s conftest.$ac_objext; then
9883 ac_header_compiler=yes
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 ac_header_compiler=no
9891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9893 echo "${ECHO_T}$ac_header_compiler" >&6; }
9895 # Is the header present?
9896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9898 cat >conftest.$ac_ext <<_ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 #include <$ac_header>
9906 if { (ac_try="$ac_cpp conftest.$ac_ext"
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9914 grep -v '^ *+' conftest.er1 >conftest.err
9916 cat conftest.err >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } >/dev/null && {
9919 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9920 test ! -s conftest.err
9922 ac_header_preproc=yes
9924 echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9927 ac_header_preproc=no
9930 rm -f conftest.err conftest.$ac_ext
9931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9932 echo "${ECHO_T}$ac_header_preproc" >&6; }
9934 # So? What about this header?
9935 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9941 ac_header_preproc=yes
9944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 eval "$as_ac_Header=\$ac_header_preproc"
9966 ac_res=`eval echo '${'$as_ac_Header'}'`
9967 { echo "$as_me:$LINENO: result: $ac_res" >&5
9968 echo "${ECHO_T}$ac_res" >&6; }
9971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9972 cat >>confdefs.h <<_ACEOF
9973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9982 if test "${ac_cv_header_utmp_h+set}" = set; then
9983 { echo "$as_me:$LINENO: checking for utmp.h" >&5
9984 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
9985 if test "${ac_cv_header_utmp_h+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
9989 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
9991 # Is the header compilable?
9992 { echo "$as_me:$LINENO: checking utmp.h usability" >&5
9993 echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10003 rm -f conftest.$ac_objext
10004 if { (ac_try="$ac_compile"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_compile") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_cxx_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest.$ac_objext; then
10020 ac_header_compiler=yes
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 ac_header_compiler=no
10028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10030 echo "${ECHO_T}$ac_header_compiler" >&6; }
10032 # Is the header present?
10033 { echo "$as_me:$LINENO: checking utmp.h presence" >&5
10034 echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; }
10035 cat >conftest.$ac_ext <<_ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10043 if { (ac_try="$ac_cpp conftest.$ac_ext"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev/null && {
10056 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10057 test ! -s conftest.err
10059 ac_header_preproc=yes
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_header_preproc=no
10067 rm -f conftest.err conftest.$ac_ext
10068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10069 echo "${ECHO_T}$ac_header_preproc" >&6; }
10071 # So? What about this header?
10072 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10074 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10075 echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10077 echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10078 ac_header_preproc=yes
10081 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10082 echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10083 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10084 echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10085 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10086 echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10087 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10088 echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10089 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10090 echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10091 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10092 echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10096 { echo "$as_me:$LINENO: checking for utmp.h" >&5
10097 echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
10098 if test "${ac_cv_header_utmp_h+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 ac_cv_header_utmp_h=$ac_header_preproc
10103 { echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10104 echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
10107 if test $ac_cv_header_utmp_h = yes; then
10108 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10109 echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10110 if test "${struct_utmp+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 #include <sys/types.h>
10129 rm -f conftest.$ac_objext
10130 if { (ac_try="$ac_compile"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_compile") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } && {
10143 test -z "$ac_cxx_werror_flag" ||
10144 test ! -s conftest.err
10145 } && test -s conftest.$ac_objext; then
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 { echo "$as_me:$LINENO: result: $struct_utmp" >&5
10157 echo "${ECHO_T}$struct_utmp" >&6; }
10158 if test x$struct_utmp = xyes; then
10160 cat >>confdefs.h <<\_ACEOF
10161 #define HAVE_STRUCT_UTMP 1
10167 { echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10168 echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; }
10169 if test "${struct_utmp_host+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 cat >conftest.$ac_ext <<_ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178 #include <sys/types.h>
10183 struct utmp ut; ut.ut_host;
10188 rm -f conftest.$ac_objext
10189 if { (ac_try="$ac_compile"
10190 case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_compile") 2>conftest.er1
10197 grep -v '^ *+' conftest.er1 >conftest.err
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } && {
10202 test -z "$ac_cxx_werror_flag" ||
10203 test ! -s conftest.err
10204 } && test -s conftest.$ac_objext; then
10205 struct_utmp_host=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10210 struct_utmp_host=no
10213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 { echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10216 echo "${ECHO_T}$struct_utmp_host" >&6; }
10217 if test x$struct_utmp_host = xyes; then
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_UTMP_HOST 1
10225 { echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10226 echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; }
10227 if test "${struct_utmp_pid+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 cat >conftest.$ac_ext <<_ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 #include <sys/types.h>
10241 struct utmp ut; ut.ut_pid;
10246 rm -f conftest.$ac_objext
10247 if { (ac_try="$ac_compile"
10248 case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_compile") 2>conftest.er1
10255 grep -v '^ *+' conftest.er1 >conftest.err
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && {
10260 test -z "$ac_cxx_werror_flag" ||
10261 test ! -s conftest.err
10262 } && test -s conftest.$ac_objext; then
10263 struct_utmp_pid=yes
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10273 { echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10274 echo "${ECHO_T}$struct_utmp_pid" >&6; }
10275 if test x$struct_utmp_pid = xyes; then
10277 cat >>confdefs.h <<\_ACEOF
10278 #define HAVE_UTMP_PID 1
10287 if test "${ac_cv_header_utmpx_h+set}" = set; then
10288 { echo "$as_me:$LINENO: checking for utmpx.h" >&5
10289 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
10290 if test "${ac_cv_header_utmpx_h+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10294 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
10296 # Is the header compilable?
10297 { echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10298 echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; }
10299 cat >conftest.$ac_ext <<_ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 $ac_includes_default
10308 rm -f conftest.$ac_objext
10309 if { (ac_try="$ac_compile"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_compile") 2>conftest.er1
10317 grep -v '^ *+' conftest.er1 >conftest.err
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && {
10322 test -z "$ac_cxx_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest.$ac_objext; then
10325 ac_header_compiler=yes
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_header_compiler=no
10333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10335 echo "${ECHO_T}$ac_header_compiler" >&6; }
10337 # Is the header present?
10338 { echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10339 echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; }
10340 cat >conftest.$ac_ext <<_ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10348 if { (ac_try="$ac_cpp conftest.$ac_ext"
10349 case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10356 grep -v '^ *+' conftest.er1 >conftest.err
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } >/dev/null && {
10361 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10362 test ! -s conftest.err
10364 ac_header_preproc=yes
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_header_preproc=no
10372 rm -f conftest.err conftest.$ac_ext
10373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10374 echo "${ECHO_T}$ac_header_preproc" >&6; }
10376 # So? What about this header?
10377 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10379 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10380 echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10382 echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10383 ac_header_preproc=yes
10386 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10387 echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10389 echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10391 echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10393 echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10394 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10395 echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10396 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10397 echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10401 { echo "$as_me:$LINENO: checking for utmpx.h" >&5
10402 echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
10403 if test "${ac_cv_header_utmpx_h+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10406 ac_cv_header_utmpx_h=$ac_header_preproc
10408 { echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10409 echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
10412 if test $ac_cv_header_utmpx_h = yes; then
10413 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10414 echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10415 if test "${struct_utmpx+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 cat >conftest.$ac_ext <<_ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h. */
10424 #include <sys/types.h>
10434 rm -f conftest.$ac_objext
10435 if { (ac_try="$ac_compile"
10436 case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_compile") 2>conftest.er1
10443 grep -v '^ *+' conftest.er1 >conftest.err
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && {
10448 test -z "$ac_cxx_werror_flag" ||
10449 test ! -s conftest.err
10450 } && test -s conftest.$ac_objext; then
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10461 { echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10462 echo "${ECHO_T}$struct_utmpx" >&6; }
10463 if test x$struct_utmpx = xyes; then
10465 cat >>confdefs.h <<\_ACEOF
10466 #define HAVE_STRUCT_UTMPX 1
10472 { echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10473 echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; }
10474 if test "${struct_utmpx_host+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 cat >conftest.$ac_ext <<_ACEOF
10480 cat confdefs.h >>conftest.$ac_ext
10481 cat >>conftest.$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 #include <sys/types.h>
10488 struct utmpx utx; utx.ut_host;
10493 rm -f conftest.$ac_objext
10494 if { (ac_try="$ac_compile"
10495 case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_compile") 2>conftest.er1
10502 grep -v '^ *+' conftest.er1 >conftest.err
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_cxx_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest.$ac_objext; then
10510 struct_utmpx_host=yes
10512 echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10515 struct_utmpx_host=no
10518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10520 { echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10521 echo "${ECHO_T}$struct_utmpx_host" >&6; }
10522 if test x$struct_utmpx_host = xyes; then
10524 cat >>confdefs.h <<\_ACEOF
10525 #define HAVE_UTMPX_HOST 1
10530 { echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10531 echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; }
10532 if test "${struct_utmpx_session+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 #include <sys/types.h>
10546 struct utmpx utx; utx.ut_session;
10551 rm -f conftest.$ac_objext
10552 if { (ac_try="$ac_compile"
10553 case "(($ac_try" in
10554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555 *) ac_try_echo=$ac_try;;
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558 (eval "$ac_compile") 2>conftest.er1
10560 grep -v '^ *+' conftest.er1 >conftest.err
10562 cat conftest.err >&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); } && {
10565 test -z "$ac_cxx_werror_flag" ||
10566 test ! -s conftest.err
10567 } && test -s conftest.$ac_objext; then
10568 struct_utmpx_session=yes
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 struct_utmpx_session=no
10576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10578 { echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10579 echo "${ECHO_T}$struct_utmpx_session" >&6; }
10580 if test x$struct_utmpx_session = xyes; then
10582 cat >>confdefs.h <<\_ACEOF
10583 #define HAVE_UTMPX_SESSION 1
10591 { echo "$as_me:$LINENO: checking for struct lastlog" >&5
10592 echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
10593 if test "${struct_lastlog+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 cat >conftest.$ac_ext <<_ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 #include <sys/types.h>
10604 #ifdef HAVE_LASTLOG_H
10605 #include <lastlog.h>
10616 rm -f conftest.$ac_objext
10617 if { (ac_try="$ac_compile"
10618 case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_compile") 2>conftest.er1
10625 grep -v '^ *+' conftest.er1 >conftest.err
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } && {
10630 test -z "$ac_cxx_werror_flag" ||
10631 test ! -s conftest.err
10632 } && test -s conftest.$ac_objext; then
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 { echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10644 echo "${ECHO_T}$struct_lastlog" >&6; }
10645 if test x$struct_lastlog = xyes; then
10647 cat >>confdefs.h <<\_ACEOF
10648 #define HAVE_STRUCT_LASTLOG 1
10653 { echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10654 echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; }
10655 if test "${struct_lastlogx+set}" = set; then
10656 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 cat >conftest.$ac_ext <<_ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 #include <sys/types.h>
10666 #ifdef HAVE_LASTLOG_H
10667 #include <lastlog.h>
10673 struct lastlogx ll;
10678 rm -f conftest.$ac_objext
10679 if { (ac_try="$ac_compile"
10680 case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_compile") 2>conftest.er1
10687 grep -v '^ *+' conftest.er1 >conftest.err
10689 cat conftest.err >&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_cxx_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest.$ac_objext; then
10695 struct_lastlogx=yes
10697 echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10705 { echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
10706 echo "${ECHO_T}$struct_lastlogx" >&6; }
10707 if test x$struct_lastlogx = xyes; then
10709 cat >>confdefs.h <<\_ACEOF
10710 #define HAVE_STRUCT_LASTLOGX 1
10716 { echo "$as_me:$LINENO: checking where utmp is located" >&5
10717 echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; }
10718 if test "${path_utmp+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 if test "$cross_compiling" = yes; then
10722 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
10723 echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10732 #include <stdlib.h>
10733 #include <sys/types.h>
10738 char **u, *utmplist[] = {
10739 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
10740 FILE *a, *f=fopen("conftestval", "w");
10743 fprintf(f, "%s\n", UTMP_FILE);
10747 fprintf(f, "%s\n", _PATH_UTMP);
10750 for (u = utmplist; *u; u++) {
10751 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10752 fprintf(f, "%s\n", *u);
10759 rm -f conftest$ac_exeext
10760 if { (ac_try="$ac_link"
10761 case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_link") 2>&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 path_utmp=`cat conftestval`
10781 echo "$as_me: program exited with status $ac_status" >&5
10782 echo "$as_me: failed program was:" >&5
10783 sed 's/^/| /' conftest.$ac_ext >&5
10785 ( exit $ac_status )
10788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10793 { echo "$as_me:$LINENO: result: $path_utmp" >&5
10794 echo "${ECHO_T}$path_utmp" >&6; }
10795 if test x$path_utmp != x; then
10797 cat >>confdefs.h <<_ACEOF
10798 #define UTMP_FILE "$path_utmp"
10804 { echo "$as_me:$LINENO: checking where utmpx is located" >&5
10805 echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; }
10806 if test "${path_utmpx+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 if test "$cross_compiling" = yes; then
10810 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
10811 echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
10813 cat >conftest.$ac_ext <<_ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10820 #include <stdlib.h>
10821 #include <sys/types.h>
10824 #include <sys/stat.h>
10825 #ifdef HAVE_STRING_H
10826 #include <string.h>
10830 char **u, *p, *utmplist[] = {
10837 "/var/adm/utmpx", "/etc/utmpx", NULL };
10838 FILE *a, *f=fopen("conftestval", "w");
10839 struct stat statu, statux;
10841 for (u = utmplist; *u; u++) {
10842 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
10843 if (stat(*u, &statux) < 0)
10846 p[strlen(p) - 1] = '\0';
10847 if (stat(p, &statu) >= 0
10848 && (statu.st_mtime - statux.st_mtime > 86400))
10850 fprintf(f, "%s\n", *u);
10857 rm -f conftest$ac_exeext
10858 if { (ac_try="$ac_link"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_link") 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 path_utmpx=`cat conftestval`
10879 echo "$as_me: program exited with status $ac_status" >&5
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10883 ( exit $ac_status )
10886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10891 { echo "$as_me:$LINENO: result: $path_utmpx" >&5
10892 echo "${ECHO_T}$path_utmpx" >&6; }
10893 if test x$path_utmpx != x; then
10895 cat >>confdefs.h <<_ACEOF
10896 #define UTMPX_FILE "$path_utmpx"
10902 { echo "$as_me:$LINENO: checking where wtmp is located" >&5
10903 echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; }
10904 if test "${path_wtmp+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 if test "$cross_compiling" = yes; then
10908 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
10909 echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
10911 cat >conftest.$ac_ext <<_ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10918 #include <stdlib.h>
10919 #include <sys/types.h>
10926 char **w, *wtmplist[] = {
10927 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
10928 FILE *a, *f=fopen("conftestval", "w");
10931 fprintf(f, "%s\n", WTMP_FILE);
10935 fprintf(f, "%s\n", _PATH_WTMP);
10938 for (w = wtmplist; *w; w++) {
10939 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
10940 fprintf(f, "%s\n", *w);
10947 rm -f conftest$ac_exeext
10948 if { (ac_try="$ac_link"
10949 case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_link") 2>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10967 path_wtmp=`cat conftestval`
10969 echo "$as_me: program exited with status $ac_status" >&5
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 ( exit $ac_status )
10976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10981 { echo "$as_me:$LINENO: result: $path_wtmp" >&5
10982 echo "${ECHO_T}$path_wtmp" >&6; }
10983 if test x$path_wtmp != x; then
10985 cat >>confdefs.h <<_ACEOF
10986 #define WTMP_FILE "$path_wtmp"
10991 { echo "$as_me:$LINENO: checking where wtmpx is located" >&5
10992 echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; }
10993 if test "${path_wtmpx+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 if test "$cross_compiling" = yes; then
10997 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
10998 echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11000 cat >conftest.$ac_ext <<_ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11007 #include <stdlib.h>
11008 #ifdef HAVE_UTMPX_H
11014 char **w, *wtmplist[] = {
11015 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11016 FILE *a, *f=fopen("conftestval", "w");
11019 fprintf(f, "%s\n", WTMPX_FILE);
11023 fprintf(f, "%s\n", _PATH_WTMPX);
11026 for (w = wtmplist; *w; w++) {
11027 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11028 fprintf(f, "%s\n", *w);
11035 rm -f conftest$ac_exeext
11036 if { (ac_try="$ac_link"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_link") 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 path_wtmpx=`cat conftestval`
11057 echo "$as_me: program exited with status $ac_status" >&5
11058 echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11061 ( exit $ac_status )
11064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11069 { echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11070 echo "${ECHO_T}$path_wtmpx" >&6; }
11071 if test x$path_wtmpx != x; then
11073 cat >>confdefs.h <<_ACEOF
11074 #define WTMPX_FILE "$path_wtmpx"
11079 { echo "$as_me:$LINENO: checking where lastlog is located" >&5
11080 echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; }
11081 if test "${path_lastlog+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 if test "$cross_compiling" = yes; then
11085 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11086 echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11088 cat >conftest.$ac_ext <<_ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11095 #include <stdlib.h>
11096 #include <sys/types.h>
11097 #ifdef HAVE_UTMPX_H
11099 #elif defined(HAVE_UTMP_H)
11102 #ifdef HAVE_LASTLOG_H
11103 #include <lastlog.h>
11108 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11109 FILE *a, *f=fopen("conftestval", "w");
11111 #ifdef LASTLOG_FILE
11112 fprintf(f, "%s\n", LASTLOG_FILE);
11115 #ifdef _PATH_LASTLOG
11116 fprintf(f, "%s\n", _PATH_LASTLOG);
11119 for (w = lastloglist; *w; w++) {
11120 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11121 fprintf(f, "%s\n", *w);
11128 rm -f conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_link") 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11139 { (case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_try") 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 path_lastlog=`cat conftestval`
11150 echo "$as_me: program exited with status $ac_status" >&5
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11154 ( exit $ac_status )
11157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11162 { echo "$as_me:$LINENO: result: $path_lastlog" >&5
11163 echo "${ECHO_T}$path_lastlog" >&6; }
11164 if test x$path_lastlog != x; then
11166 cat >>confdefs.h <<_ACEOF
11167 #define LASTLOG_FILE "$path_lastlog"
11170 if test -d "$path_lastlog"; then
11172 cat >>confdefs.h <<\_ACEOF
11173 #define LASTLOG_IS_DIR 1
11179 { echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11180 echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11181 if test "${path_lastlogx+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 if test "$cross_compiling" = yes; then
11185 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11186 echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11188 cat >conftest.$ac_ext <<_ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11195 #include <stdlib.h>
11196 #ifdef HAVE_UTMPX_H
11202 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11203 FILE *a, *f=fopen("conftestval", "w");
11205 #ifdef LASTLOGX_FILE
11206 fprintf(f, "%s\n", LASTLOGX_FILE);
11209 #ifdef _PATH_LASTLOGX
11210 fprintf(f, "%s\n", _PATH_LASTLOGX);
11213 for (w = wtmplist; *w; w++) {
11214 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11215 fprintf(f, "%s\n", *w);
11222 rm -f conftest$ac_exeext
11223 if { (ac_try="$ac_link"
11224 case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11233 { (case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_try") 2>&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); }; }; then
11242 path_lastlogx=`cat conftestval`
11244 echo "$as_me: program exited with status $ac_status" >&5
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 ( exit $ac_status )
11251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11256 { echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11257 echo "${ECHO_T}$path_lastlogx" >&6; }
11258 if test x$path_lastlogx != x; then
11260 cat >>confdefs.h <<_ACEOF
11261 #define LASTLOGX_FILE "$path_lastlogx"
11268 { echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11269 echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11270 if test "${rxvt_cv_path_ttytab+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 for ttys_file in /etc/ttys /etc/ttytab;
11275 if test -f "$ttys_file" ; then
11276 rxvt_cv_path_ttytab=$ttys_file
11282 { echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11283 echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11284 if test x$rxvt_cv_path_ttytab != x; then
11286 cat >>confdefs.h <<_ACEOF
11287 #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11294 ac_save_CFLAGS=$CFLAGS
11295 CFLAGS="$CFLAGS $X_CFLAGS"
11296 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11297 if test x$support_xim = xyes; then
11298 { echo "$as_me:$LINENO: checking for working Xlocale" >&5
11299 echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; }
11300 if test "${rxvt_cv_func_xlocale+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11303 if test "$cross_compiling" = yes; then
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 #include <X11/Xlib.h>
11313 #include <stdlib.h>
11316 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11317 exit (XSupportsLocale() ? 0 : 1);
11321 rm -f conftest$ac_exeext
11322 if { (ac_try="$ac_link"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_link") 2>&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; }; then
11341 rxvt_cv_func_xlocale=yes
11343 echo "$as_me: program exited with status $ac_status" >&5
11344 echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11347 ( exit $ac_status )
11348 rxvt_cv_func_xlocale=no
11350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11355 { echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11356 echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; }
11357 if test x$rxvt_cv_func_xlocale = xyes; then
11359 cat >>confdefs.h <<\_ACEOF
11363 { echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11364 echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
11365 if test "${rxvt_broken_ximcb+set}" = set; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 cat >conftest.$ac_ext <<_ACEOF
11370 #include <X11/Xlib.h>
11372 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11376 cb.callback = im_destroy_cb;
11380 rm -f conftest.$ac_objext
11381 if { (ac_try="$ac_compile"
11382 case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_compile") 2>conftest.er1
11389 grep -v '^ *+' conftest.er1 >conftest.err
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } && {
11394 test -z "$ac_cxx_werror_flag" ||
11395 test ! -s conftest.err
11396 } && test -s conftest.$ac_objext; then
11397 rxvt_broken_ximcb=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 rxvt_broken_ximcb=no
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11407 { echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11408 echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
11410 if test x$rxvt_broken_ximcb = xyes; then
11412 cat >>confdefs.h <<\_ACEOF
11413 #define XIMCB_PROTO_BROKEN 1
11420 { echo "$as_me:$LINENO: checking for working X setlocale" >&5
11421 echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11422 if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11423 echo $ECHO_N "(cached) $ECHO_C" >&6
11425 cat >conftest.$ac_ext <<_ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h. */
11432 #include <X11/Xlocale.h>
11436 setlocale(LC_CTYPE, "");
11441 rm -f conftest.$ac_objext conftest$ac_exeext
11442 if { (ac_try="$ac_link"
11443 case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11450 grep -v '^ *+' conftest.er1 >conftest.err
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } && {
11455 test -z "$ac_cxx_werror_flag" ||
11456 test ! -s conftest.err
11457 } && test -s conftest$ac_exeext &&
11458 $as_test_x conftest$ac_exeext; then
11459 rxvt_cv_func_xsetlocale=yes
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 rxvt_cv_func_xsetlocale=no
11467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468 conftest$ac_exeext conftest.$ac_ext
11470 { echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5
11471 echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; }
11472 if test x$rxvt_cv_func_xsetlocale = xyes; then
11474 cat >>confdefs.h <<\_ACEOF
11475 #define HAVE_XSETLOCALE 1
11480 CFLAGS=$ac_save_CFLAGS
11482 { echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11483 echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
11484 if test "${rxvt_cv_func_setlocale+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 cat >conftest.$ac_ext <<_ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11497 setlocale(LC_CTYPE, "");
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (ac_try="$ac_link"
11504 case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_link") 2>conftest.er1
11511 grep -v '^ *+' conftest.er1 >conftest.err
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } && {
11516 test -z "$ac_cxx_werror_flag" ||
11517 test ! -s conftest.err
11518 } && test -s conftest$ac_exeext &&
11519 $as_test_x conftest$ac_exeext; then
11520 rxvt_cv_func_setlocale=yes
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11525 rxvt_cv_func_setlocale=no
11528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11529 conftest$ac_exeext conftest.$ac_ext
11531 { echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11532 echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; }
11533 if test x$rxvt_cv_func_setlocale = xyes; then
11535 cat >>confdefs.h <<\_ACEOF
11536 #define HAVE_SETLOCALE 1
11541 { echo "$as_me:$LINENO: checking for working nl_langinfo" >&5
11542 echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; }
11543 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 cat >conftest.$ac_ext <<_ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h. */
11552 #include <langinfo.h>
11556 nl_langinfo(CODESET);
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (ac_try="$ac_link"
11563 case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_link") 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } && {
11575 test -z "$ac_cxx_werror_flag" ||
11576 test ! -s conftest.err
11577 } && test -s conftest$ac_exeext &&
11578 $as_test_x conftest$ac_exeext; then
11579 rxvt_cv_func_nl_langinfo=yes
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 rxvt_cv_func_nl_langinfo=no
11587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11588 conftest$ac_exeext conftest.$ac_ext
11590 { echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
11591 echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; }
11592 if test x$rxvt_cv_func_nl_langinfo = xyes; then
11594 cat >>confdefs.h <<\_ACEOF
11595 #define HAVE_NL_LANGINFO 1
11601 { echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11602 echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; }
11603 if test "${can_pass_fds+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 cat >conftest.$ac_ext <<_ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11613 #include <cstddef> // broken bsds (is that redundant?) need this
11614 #include <sys/types.h>
11615 #include <sys/socket.h>
11616 #include <sys/uio.h>
11628 iov.iov_base = &data;
11631 msg.msg_iov = &iov;
11632 msg.msg_iovlen = 1;
11633 msg.msg_control = buf;
11634 msg.msg_controllen = sizeof buf;
11636 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11637 cmsg->cmsg_level = SOL_SOCKET;
11638 cmsg->cmsg_type = SCM_RIGHTS;
11639 cmsg->cmsg_len = 100;
11641 *(int *)CMSG_DATA (cmsg) = 5;
11643 return sendmsg (3, &msg, 0);
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1 >conftest.err
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_cxx_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest$ac_exeext &&
11667 $as_test_x conftest$ac_exeext; then
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11677 conftest$ac_exeext conftest.$ac_ext
11679 { echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11680 echo "${ECHO_T}$can_pass_fds" >&6; }
11681 if test x$can_pass_fds = xyes; then
11683 cat >>confdefs.h <<\_ACEOF
11684 #define HAVE_UNIX_FDPASS 1
11688 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11689 echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11690 { (exit 1); exit 1; }; }
11708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 ac_res=`eval echo '${'$as_ac_Header'}'`
11716 { echo "$as_me:$LINENO: result: $ac_res" >&5
11717 echo "${ECHO_T}$ac_res" >&6; }
11719 # Is the header compilable?
11720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11722 cat >conftest.$ac_ext <<_ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 $ac_includes_default
11729 #include <$ac_header>
11731 rm -f conftest.$ac_objext
11732 if { (ac_try="$ac_compile"
11733 case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_compile") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_cxx_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest.$ac_objext; then
11748 ac_header_compiler=yes
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11753 ac_header_compiler=no
11756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11758 echo "${ECHO_T}$ac_header_compiler" >&6; }
11760 # Is the header present?
11761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11763 cat >conftest.$ac_ext <<_ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h. */
11769 #include <$ac_header>
11771 if { (ac_try="$ac_cpp conftest.$ac_ext"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } >/dev/null && {
11784 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11785 test ! -s conftest.err
11787 ac_header_preproc=yes
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_header_preproc=no
11795 rm -f conftest.err conftest.$ac_ext
11796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11797 echo "${ECHO_T}$ac_header_preproc" >&6; }
11799 # So? What about this header?
11800 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11806 ac_header_preproc=yes
11809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 eval "$as_ac_Header=\$ac_header_preproc"
11831 ac_res=`eval echo '${'$as_ac_Header'}'`
11832 { echo "$as_me:$LINENO: result: $ac_res" >&5
11833 echo "${ECHO_T}$ac_res" >&6; }
11836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11837 cat >>confdefs.h <<_ACEOF
11838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11881 #define $ac_func innocuous_$ac_func
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11889 # include <limits.h>
11891 # include <assert.h>
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11903 /* The GNU C library defines this for functions which it implements
11904 to always fail with ENOSYS. Some functions are actually named
11905 something starting with __ and the normal name is an alias. */
11906 #if defined __stub_$ac_func || defined __stub___$ac_func
11913 return $ac_func ();
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (ac_try="$ac_link"
11920 case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_link") 2>conftest.er1
11927 grep -v '^ *+' conftest.er1 >conftest.err
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_cxx_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest$ac_exeext &&
11935 $as_test_x conftest$ac_exeext; then
11936 eval "$as_ac_var=yes"
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 eval "$as_ac_var=no"
11944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11945 conftest$ac_exeext conftest.$ac_ext
11947 ac_res=`eval echo '${'$as_ac_var'}'`
11948 { echo "$as_me:$LINENO: result: $ac_res" >&5
11949 echo "${ECHO_T}$ac_res" >&6; }
11950 if test `eval echo '${'$as_ac_var'}'` = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11961 { echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
11962 echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; }
11963 if test -e /dev/ptym/clone; then
11964 { echo "$as_me:$LINENO: result: yes" >&5
11965 echo "${ECHO_T}yes" >&6; }
11967 cat >>confdefs.h <<\_ACEOF
11968 #define HAVE_DEV_CLONE 1
11972 cat >>confdefs.h <<\_ACEOF
11973 #define CLONE_DEVICE "/dev/ptym/clone"
11978 { echo "$as_me:$LINENO: result: no" >&5
11979 echo "${ECHO_T}no" >&6; }
11982 { echo "$as_me:$LINENO: checking for /dev/ptc" >&5
11983 echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
11984 if test -e /dev/ptc; then
11985 { echo "$as_me:$LINENO: result: yes" >&5
11986 echo "${ECHO_T}yes" >&6; }
11988 cat >>confdefs.h <<\_ACEOF
11989 #define HAVE_DEV_PTC 1
11993 cat >>confdefs.h <<\_ACEOF
11994 #define CLONE_DEVICE "/dev/ptc"
11999 { echo "$as_me:$LINENO: result: no" >&5
12000 echo "${ECHO_T}no" >&6; }
12007 cat >>confdefs.h <<\_ACEOF
12008 #define CLONE_DEVICE "/dev/ptmx"
12013 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12014 echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
12015 if test -e /dev/ptmx; then
12016 { echo "$as_me:$LINENO: result: yes" >&5
12017 echo "${ECHO_T}yes" >&6; }
12019 cat >>confdefs.h <<\_ACEOF
12020 #define HAVE_DEV_PTMX 1
12024 cat >>confdefs.h <<\_ACEOF
12025 #define CLONE_DEVICE "/dev/ptmx"
12030 { echo "$as_me:$LINENO: result: no" >&5
12031 echo "${ECHO_T}no" >&6; }
12036 if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12037 { echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12038 echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; }
12039 cat >conftest.$ac_ext <<_ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 #include <stdlib.h>
12049 grantpt(0);unlockpt(0);ptsname(0);
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_link") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_cxx_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest$ac_exeext &&
12071 $as_test_x conftest$ac_exeext; then
12074 cat >>confdefs.h <<\_ACEOF
12075 #define UNIX98_PTY 1
12078 { echo "$as_me:$LINENO: result: yes" >&5
12079 echo "${ECHO_T}yes" >&6; }
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12084 { echo "$as_me:$LINENO: result: no" >&5
12085 echo "${ECHO_T}no" >&6; }
12088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12089 conftest$ac_exeext conftest.$ac_ext
12092 if test -z "$unix98_pty"; then
12094 for ac_func in openpty
12096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12102 cat >conftest.$ac_ext <<_ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12110 #define $ac_func innocuous_$ac_func
12112 /* System header to define __stub macros and hopefully few prototypes,
12113 which can conflict with char $ac_func (); below.
12114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12115 <limits.h> exists even on freestanding compilers. */
12118 # include <limits.h>
12120 # include <assert.h>
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12132 /* The GNU C library defines this for functions which it implements
12133 to always fail with ENOSYS. Some functions are actually named
12134 something starting with __ and the normal name is an alias. */
12135 #if defined __stub_$ac_func || defined __stub___$ac_func
12142 return $ac_func ();
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (ac_try="$ac_link"
12149 case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_link") 2>conftest.er1
12156 grep -v '^ *+' conftest.er1 >conftest.err
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } && {
12161 test -z "$ac_cxx_werror_flag" ||
12162 test ! -s conftest.err
12163 } && test -s conftest$ac_exeext &&
12164 $as_test_x conftest$ac_exeext; then
12165 eval "$as_ac_var=yes"
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 eval "$as_ac_var=no"
12173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12174 conftest$ac_exeext conftest.$ac_ext
12176 ac_res=`eval echo '${'$as_ac_var'}'`
12177 { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12179 if test `eval echo '${'$as_ac_var'}'` = yes; then
12180 cat >>confdefs.h <<_ACEOF
12181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12185 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12186 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
12187 if test "${ac_cv_lib_util_openpty+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-lutil $LIBS"
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12214 rm -f conftest.$ac_objext conftest$ac_exeext
12215 if { (ac_try="$ac_link"
12216 case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_cxx_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest$ac_exeext &&
12231 $as_test_x conftest$ac_exeext; then
12232 ac_cv_lib_util_openpty=yes
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12237 ac_cv_lib_util_openpty=no
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241 conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12244 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12245 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
12246 if test $ac_cv_lib_util_openpty = yes; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define HAVE_OPENPTY 1
12250 LIBS="$LIBS -lutil"
12260 { echo "$as_me:$LINENO: checking for tty group" >&5
12261 echo $ECHO_N "checking for tty group... $ECHO_C" >&6; }
12262 if test "${tty_group+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 if test "$cross_compiling" = yes; then
12268 cat >conftest.$ac_ext <<_ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12275 #include <sys/types.h>
12276 #include <sys/stat.h>
12277 #include <unistd.h>
12285 gr = getgrnam("tty");
12289 && (stat(tty, &st)) == 0
12290 && st.st_gid == gr->gr_gid)
12296 rm -f conftest$ac_exeext
12297 if { (ac_try="$ac_link"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_link") 2>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12307 { (case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_try") 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12318 echo "$as_me: program exited with status $ac_status" >&5
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ( exit $ac_status )
12325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12330 { echo "$as_me:$LINENO: result: $tty_group" >&5
12331 echo "${ECHO_T}$tty_group" >&6; }
12332 if test x$tty_group = xyes; then
12334 cat >>confdefs.h <<\_ACEOF
12335 #define TTY_GID_SUPPORT 1
12340 if test x$support_xft = xyes; then
12341 # Extract the first word of "pkg-config", so it can be a program name with args.
12342 set dummy pkg-config; ac_word=$2
12343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12345 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 case $PKG_CONFIG in
12350 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12357 test -z "$as_dir" && as_dir=.
12358 for ac_exec_ext in '' $ac_executable_extensions; do
12359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12360 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12368 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12372 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12373 if test -n "$PKG_CONFIG"; then
12374 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12375 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12377 { echo "$as_me:$LINENO: result: no" >&5
12378 echo "${ECHO_T}no" >&6; }
12382 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12383 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12384 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12386 # Extract the first word of "xft-config", so it can be a program name with args.
12387 set dummy xft-config; ac_word=$2
12388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12390 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 case $XFT_CONFIG in
12395 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12417 XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12418 if test -n "$XFT_CONFIG"; then
12419 { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12420 echo "${ECHO_T}$XFT_CONFIG" >&6; }
12422 { echo "$as_me:$LINENO: result: no" >&5
12423 echo "${ECHO_T}no" >&6; }
12427 if test $XFT_CONFIG != no; then
12428 LIBS="$LIBS `$XFT_CONFIG --libs`"
12429 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12434 for ac_header in X11/Xft/Xft.h
12436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 ac_res=`eval echo '${'$as_ac_Header'}'`
12444 { echo "$as_me:$LINENO: result: $ac_res" >&5
12445 echo "${ECHO_T}$ac_res" >&6; }
12447 # Is the header compilable?
12448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12456 $ac_includes_default
12457 #include <$ac_header>
12459 rm -f conftest.$ac_objext
12460 if { (ac_try="$ac_compile"
12461 case "(($ac_try" in
12462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463 *) ac_try_echo=$ac_try;;
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466 (eval "$ac_compile") 2>conftest.er1
12468 grep -v '^ *+' conftest.er1 >conftest.err
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } && {
12473 test -z "$ac_cxx_werror_flag" ||
12474 test ! -s conftest.err
12475 } && test -s conftest.$ac_objext; then
12476 ac_header_compiler=yes
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12481 ac_header_compiler=no
12484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12486 echo "${ECHO_T}$ac_header_compiler" >&6; }
12488 # Is the header present?
12489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12491 cat >conftest.$ac_ext <<_ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 #include <$ac_header>
12499 if { (ac_try="$ac_cpp conftest.$ac_ext"
12500 case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12507 grep -v '^ *+' conftest.er1 >conftest.err
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } >/dev/null && {
12512 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12513 test ! -s conftest.err
12515 ac_header_preproc=yes
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12520 ac_header_preproc=no
12523 rm -f conftest.err conftest.$ac_ext
12524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12525 echo "${ECHO_T}$ac_header_preproc" >&6; }
12527 # So? What about this header?
12528 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12534 ac_header_preproc=yes
12537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 eval "$as_ac_Header=\$ac_header_preproc"
12559 ac_res=`eval echo '${'$as_ac_Header'}'`
12560 { echo "$as_me:$LINENO: result: $ac_res" >&5
12561 echo "${ECHO_T}$ac_res" >&6; }
12564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12565 cat >>confdefs.h <<_ACEOF
12566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12576 { echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12577 echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; }
12578 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12579 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 ac_check_lib_save_LIBS=$LIBS
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12590 /* Override any GCC internal prototype to avoid an error.
12591 Use char because int might match the return type of a GCC
12592 builtin and then its argument prototype would still apply. */
12596 char XftDrawString32 ();
12600 return XftDrawString32 ();
12605 rm -f conftest.$ac_objext conftest$ac_exeext
12606 if { (ac_try="$ac_link"
12607 case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12612 (eval "$ac_link") 2>conftest.er1
12614 grep -v '^ *+' conftest.er1 >conftest.err
12616 cat conftest.err >&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); } && {
12619 test -z "$ac_cxx_werror_flag" ||
12620 test ! -s conftest.err
12621 } && test -s conftest$ac_exeext &&
12622 $as_test_x conftest$ac_exeext; then
12623 ac_cv_lib_Xft_XftDrawString32=yes
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ac_cv_lib_Xft_XftDrawString32=no
12631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12632 conftest$ac_exeext conftest.$ac_ext
12633 LIBS=$ac_check_lib_save_LIBS
12635 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12636 echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
12637 if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639 #define HAVE_LIBXFT 1
12649 if test x$support_xft = xyes; then
12651 cat >>confdefs.h <<\_ACEOF
12657 if test x$support_styles = xyes; then
12659 cat >>confdefs.h <<\_ACEOF
12660 #define ENABLE_STYLES 1
12664 if test x$support_iso14755 = xyes; then
12666 cat >>confdefs.h <<\_ACEOF
12667 #define ISO_14755 1
12671 if test x$support_8bitctrls = xyes; then
12673 cat >>confdefs.h <<\_ACEOF
12674 #define EIGHT_BIT_CONTROLS 1
12678 if test x$support_fading = xyes; then
12680 cat >>confdefs.h <<\_ACEOF
12681 #define OFF_FOCUS_FADING 1
12685 if test x$support_inheritpixmap = xyes; then
12687 cat >>confdefs.h <<\_ACEOF
12688 #define ENABLE_TRANSPARENCY 1
12692 if test x$support_keepscrolling = xno; then
12694 cat >>confdefs.h <<\_ACEOF
12695 #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12699 if test x$support_selectionscrolling = xyes; then
12701 cat >>confdefs.h <<\_ACEOF
12702 #define SELECTION_SCROLLING 1
12706 if test x$support_frills = xyes; then
12708 cat >>confdefs.h <<\_ACEOF
12709 #define ENABLE_FRILLS 1
12713 if test x$support_mousewheel = xyes; then
12715 cat >>confdefs.h <<\_ACEOF
12716 #define MOUSE_WHEEL 1
12720 if test x$support_mouseslipwheel = xyes; then
12722 cat >>confdefs.h <<\_ACEOF
12723 #define MOUSE_SLIP_WHEELING 1
12727 if test x$support_afterimage = xyes; then
12729 cat >>confdefs.h <<\_ACEOF
12730 #define HAVE_AFTERIMAGE 1
12734 cat >>confdefs.h <<\_ACEOF
12735 #define BG_IMAGE_FROM_FILE 1
12741 if test x$support_scroll_rxvt = xyes; then
12743 cat >>confdefs.h <<\_ACEOF
12744 #define RXVT_SCROLLBAR 1
12749 if test x$support_scroll_next = xyes; then
12751 cat >>confdefs.h <<\_ACEOF
12752 #define NEXT_SCROLLBAR 1
12755 scrolltypes="$scrolltypes next"
12757 if test x$support_scroll_xterm = xyes; then
12759 cat >>confdefs.h <<\_ACEOF
12760 #define XTERM_SCROLLBAR 1
12763 scrolltypes="$scrolltypes xterm"
12765 if test x$support_scroll_plain = xyes; then
12767 cat >>confdefs.h <<\_ACEOF
12768 #define PLAIN_SCROLLBAR 1
12771 scrolltypes="$scrolltypes plain"
12773 if test x$support_pointer_blank = xyes; then
12775 cat >>confdefs.h <<\_ACEOF
12776 #define POINTER_BLANK 1
12780 if test x$support_text_blink = xyes; then
12782 cat >>confdefs.h <<\_ACEOF
12783 #define TEXT_BLINK 1
12787 if test x$support_unicode3 = xyes; then
12789 cat >>confdefs.h <<\_ACEOF
12790 #define UNICODE_3 1
12794 if test x$support_combining = xyes; then
12796 cat >>confdefs.h <<\_ACEOF
12797 #define ENABLE_COMBINING 1
12801 if test x$codesets = xall; then
12802 codesets=jp,jp-ext,kr,zh,zh-ext
12805 cat >>confdefs.h <<\_ACEOF
12806 #define ENCODING_EU 1
12810 cat >>confdefs.h <<\_ACEOF
12811 #define ENCODING_VN 1
12814 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12817 cat >>confdefs.h <<\_ACEOF
12818 #define ENCODING_JP 1
12822 cat >>confdefs.h <<\_ACEOF
12823 #define ENCODING_JP_EXT 1
12827 cat >>confdefs.h <<\_ACEOF
12828 #define ENCODING_KR 1
12832 cat >>confdefs.h <<\_ACEOF
12833 #define ENCODING_ZH 1
12837 cat >>confdefs.h <<\_ACEOF
12838 #define ENCODING_ZH_EXT 1
12845 if test x$support_perl = xyes; then
12846 # Extract the first word of "perl5", so it can be a program name with args.
12847 set dummy perl5; ac_word=$2
12848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12850 if test "${ac_cv_path_PERL+set}" = set; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12865 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 PERL=$ac_cv_path_PERL
12877 if test -n "$PERL"; then
12878 { echo "$as_me:$LINENO: result: $PERL" >&5
12879 echo "${ECHO_T}$PERL" >&6; }
12881 { echo "$as_me:$LINENO: result: no" >&5
12882 echo "${ECHO_T}no" >&6; }
12886 # Extract the first word of "perl", so it can be a program name with args.
12887 set dummy perl; ac_word=$2
12888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12890 if test "${ac_cv_path_PERL+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 PERL=$ac_cv_path_PERL
12917 if test -n "$PERL"; then
12918 { echo "$as_me:$LINENO: result: $PERL" >&5
12919 echo "${ECHO_T}$PERL" >&6; }
12921 { echo "$as_me:$LINENO: result: no" >&5
12922 echo "${ECHO_T}no" >&6; }
12927 { echo "$as_me:$LINENO: checking for $PERL suitability" >&5
12928 echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; }
12929 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12931 save_CXXFLAGS="$CXXFLAGS"
12933 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12934 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12935 cat >conftest.$ac_ext <<_ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h. */
12942 #include <EXTERN.h>
12950 PerlInterpreter *perl = perl_alloc ();
12956 rm -f conftest.$ac_objext conftest$ac_exeext
12957 if { (ac_try="$ac_link"
12958 case "(($ac_try" in
12959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960 *) ac_try_echo=$ac_try;;
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_link") 2>conftest.er1
12965 grep -v '^ *+' conftest.er1 >conftest.err
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } && {
12970 test -z "$ac_cxx_werror_flag" ||
12971 test ! -s conftest.err
12972 } && test -s conftest$ac_exeext &&
12973 $as_test_x conftest$ac_exeext; then
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12983 conftest$ac_exeext conftest.$ac_ext
12984 CXXFLAGS="$save_CXXFLAGS"
12987 if test x$rxvt_perl_link = xyes; then
12988 { echo "$as_me:$LINENO: result: ok" >&5
12989 echo "${ECHO_T}ok" >&6; }
12991 cat >>confdefs.h <<\_ACEOF
12992 #define ENABLE_PERL 1
12997 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12998 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12999 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13001 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13002 echo "$as_me: error: no, unable to link" >&2;}
13003 { (exit 1); exit 1; }; }
13006 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13007 echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13008 { (exit 1); exit 1; }; }
13030 test "$program_prefix" != NONE &&
13031 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13032 # Use a double $ so make ignores it.
13033 test "$program_suffix" != NONE &&
13034 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13035 # Double any \ or $. echo might interpret backslashes.
13036 # By default was `s,x,x', remove it if useless.
13037 cat <<\_ACEOF >conftest.sed
13038 s/[\\$]/&&/g;s/;s,x,x,$//
13040 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13047 if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13048 include_stdint_h="#include <stdint.h>"
13050 include_stdint_h="/* #include <stdint.h> */"
13052 if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13053 include_stdarg_h="#include <cstdarg>"
13055 include_stdarg_h="/* #include <cstdarg> */"
13057 if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13058 include_stdlib_h="#include <cstdlib>"
13060 include_stdlib_h="/* #include <cstdlib> */"
13062 if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13063 include_unistd_h="#include <unistd.h>"
13065 include_unistd_h="/* #include <unistd.h> */"
13067 if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13068 include_string_h="#include <cstring>"
13070 include_string_h="/* #include <cstring> */"
13072 if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13073 include_fcntl_h="#include <fcntl.h>"
13075 include_fcntl_h="/* #include <fcntl.h> */"
13077 if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13078 include_util_h="#include <util.h>"
13080 include_util_h="/* #include <util.h> */"
13082 if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13083 include_assert_h="#include <assert.h>"
13085 include_assert_h="/* #include <assert.h> */"
13087 if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13088 include_sys_ioctl_h="#include <sys/ioctl.h>"
13090 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13092 if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13093 include_sys_select_h="#include <sys/select.h>"
13095 include_sys_select_h="/* #include <sys/select.h> */"
13097 if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13098 include_sys_strredir_h="#include <sys/strredir.h>"
13100 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13102 if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13103 include_sys_time_h="#include <sys/time.h>"
13105 include_sys_time_h="/* #include <sys/time.h> */"
13107 if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13108 include_time_h="#include <time.h>"
13110 include_time_h="/* #include <time.h> */"
13113 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13115 cat >confcache <<\_ACEOF
13116 # This file is a shell script that caches the results of configure
13117 # tests run on this system so they can be shared between configure
13118 # scripts and configure runs, see configure's option --config-cache.
13119 # It is not useful on other systems. If it contains results you don't
13120 # want to keep, you may remove or edit it.
13122 # config.status only pays attention to the cache file if you give it
13123 # the --recheck option to rerun configure.
13125 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13126 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13127 # following values.
13131 # The following way of writing the cache mishandles newlines in values,
13132 # but we know of no workaround that is simple, portable, and efficient.
13133 # So, we kill variables containing newlines.
13134 # Ultrix sh set writes to stderr and can't be redirected directly,
13135 # and sets the high bit in the cache file unless we assign to the vars.
13137 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13138 eval ac_val=\$$ac_var
13142 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13143 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13146 _ | IFS | as_nl) ;; #(
13147 *) $as_unset $ac_var ;;
13153 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13154 *${as_nl}ac_space=\ *)
13155 # `set' does not quote correctly, so add quotes (double-quote
13156 # substitution turns \\\\ into \\, and sed turns \\ into \).
13159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13162 # `set' quotes correctly as required by POSIX, so do not add quotes.
13163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13174 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13176 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13177 if test -w "$cache_file"; then
13178 test "x$cache_file" != "x/dev/null" &&
13179 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13180 echo "$as_me: updating cache $cache_file" >&6;}
13181 cat confcache >$cache_file
13183 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13184 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13189 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13190 # Let make expand exec_prefix.
13191 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13193 DEFS=-DHAVE_CONFIG_H
13197 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13198 # 1. Remove the extension, and $U if already installed.
13199 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13200 ac_i=`echo "$ac_i" | sed "$ac_script"`
13201 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13202 # will be set to the directory where LIBOBJS objects are built.
13203 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13204 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13206 LIBOBJS=$ac_libobjs
13208 LTLIBOBJS=$ac_ltlibobjs
13212 : ${CONFIG_STATUS=./config.status}
13213 ac_clean_files_save=$ac_clean_files
13214 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13215 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13216 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13217 cat >$CONFIG_STATUS <<_ACEOF
13219 # Generated by $as_me.
13220 # Run this file to recreate the current configuration.
13221 # Compiler output produced by configure, useful for debugging
13222 # configure, is in config.log if it exists.
13225 ac_cs_recheck=false
13227 SHELL=\${CONFIG_SHELL-$SHELL}
13230 cat >>$CONFIG_STATUS <<\_ACEOF
13231 ## --------------------- ##
13232 ## M4sh Initialization. ##
13233 ## --------------------- ##
13235 # Be more Bourne compatible
13236 DUALCASE=1; export DUALCASE # for MKS sh
13237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13241 # is contrary to our usage. Disable this feature.
13242 alias -g '${1+"$@"}'='"$@"'
13243 setopt NO_GLOB_SUBST
13245 case `(set -o) 2>/dev/null` in
13246 *posix*) set -o posix ;;
13255 # Avoid depending upon Character Ranges.
13256 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13257 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13258 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13259 as_cr_digits='0123456789'
13260 as_cr_alnum=$as_cr_Letters$as_cr_digits
13262 # The user is always right.
13263 if test "${PATH_SEPARATOR+set}" != set; then
13264 echo "#! /bin/sh" >conf$$.sh
13265 echo "exit 0" >>conf$$.sh
13267 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13275 # Support unset when possible.
13276 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13284 # We need space, tab and new line, in precisely that order. Quoting is
13285 # there to prevent editors from complaining about space-tab.
13286 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13287 # splitting by setting IFS to empty value.)
13292 # Find who we are. Look in the path if we contain no directory separator.
13294 *[\\/]* ) as_myself=$0 ;;
13295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13299 test -z "$as_dir" && as_dir=.
13300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13306 # We did not find ourselves, most probably we were run as `sh COMMAND'
13307 # in which case we are not to be found in the path.
13308 if test "x$as_myself" = x; then
13311 if test ! -f "$as_myself"; then
13312 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13313 { (exit 1); exit 1; }
13316 # Work around bugs in pre-3.0 UWIN ksh.
13317 for as_var in ENV MAIL MAILPATH
13318 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13326 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13327 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13328 LC_TELEPHONE LC_TIME
13330 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13331 eval $as_var=C; export $as_var
13333 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13337 # Required to use basename.
13338 if expr a : '\(a\)' >/dev/null 2>&1 &&
13339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13345 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13346 as_basename=basename
13352 # Name of the executable.
13353 as_me=`$as_basename -- "$0" ||
13354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13355 X"$0" : 'X\(//\)$' \| \
13356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13358 sed '/^.*\/\([^/][^/]*\)\/*$/{
13377 as_lineno_1=$LINENO
13378 as_lineno_2=$LINENO
13379 test "x$as_lineno_1" != "x$as_lineno_2" &&
13380 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13382 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13383 # uniformly replaced by the line number. The first 'sed' inserts a
13384 # line-number line after each line using $LINENO; the second 'sed'
13385 # does the real work. The second script uses 'N' to pair each
13386 # line-number line with the line containing $LINENO, and appends
13387 # trailing '-' during substitution so that $LINENO is not a special
13388 # case at line end.
13389 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13390 # scripts with optimization help from Paolo Bonzini. Blame Lee
13391 # E. McMahon (1931-1989) for sed's syntax. :-)
13403 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13406 ' >$as_me.lineno &&
13407 chmod +x "$as_me.lineno" ||
13408 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13409 { (exit 1); exit 1; }; }
13411 # Don't try to exec as it changes $[0], causing all sort of problems
13412 # (the dirname of $[0] is not the place where we might find the
13413 # original and so on. Autoconf is especially sensitive to this).
13414 . "./$as_me.lineno"
13415 # Exit status is that of the last command.
13420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13426 ECHO_C= ECHO_N= ECHO_T=
13427 case `echo -n x` in
13429 case `echo 'x\c'` in
13430 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13437 if expr a : '\(a\)' >/dev/null 2>&1 &&
13438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13444 rm -f conf$$ conf$$.exe conf$$.file
13445 if test -d conf$$.dir; then
13446 rm -f conf$$.dir/conf$$.file
13452 if ln -s conf$$.file conf$$ 2>/dev/null; then
13454 # ... but there are two gotchas:
13455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13457 # In both cases, we have to default to `cp -p'.
13458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13460 elif ln conf$$.file conf$$ 2>/dev/null; then
13465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13466 rmdir conf$$.dir 2>/dev/null
13468 if mkdir -p . 2>/dev/null; then
13471 test -d ./-p && rmdir ./-p
13475 if test -x / >/dev/null 2>&1; then
13476 as_test_x='test -x'
13478 if ls -dL / >/dev/null 2>&1; then
13485 if test -d "$1"; then
13491 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13492 ???[sx]*):;;*)false;;esac;fi
13496 as_executable_p=$as_test_x
13498 # Sed expression to map a string onto a valid CPP name.
13499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13501 # Sed expression to map a string onto a valid variable name.
13502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13507 # Save the log message, to keep $[0] and so on meaningful, and to
13508 # report actual input values of CONFIG_FILES etc. instead of their
13509 # values after options handling.
13511 This file was extended by $as_me, which was
13512 generated by GNU Autoconf 2.61. Invocation command line was
13514 CONFIG_FILES = $CONFIG_FILES
13515 CONFIG_HEADERS = $CONFIG_HEADERS
13516 CONFIG_LINKS = $CONFIG_LINKS
13517 CONFIG_COMMANDS = $CONFIG_COMMANDS
13520 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13525 cat >>$CONFIG_STATUS <<_ACEOF
13526 # Files that config.status was made for.
13527 config_files="$ac_config_files"
13528 config_headers="$ac_config_headers"
13532 cat >>$CONFIG_STATUS <<\_ACEOF
13534 \`$as_me' instantiates files from templates according to the
13535 current configuration.
13537 Usage: $0 [OPTIONS] [FILE]...
13539 -h, --help print this help, then exit
13540 -V, --version print version number and configuration settings, then exit
13541 -q, --quiet do not print progress messages
13542 -d, --debug don't remove temporary files
13543 --recheck update $as_me by reconfiguring in the same conditions
13544 --file=FILE[:TEMPLATE]
13545 instantiate the configuration file FILE
13546 --header=FILE[:TEMPLATE]
13547 instantiate the configuration header FILE
13549 Configuration files:
13552 Configuration headers:
13555 Report bugs to <bug-autoconf@gnu.org>."
13558 cat >>$CONFIG_STATUS <<_ACEOF
13561 configured by $0, generated by GNU Autoconf 2.61,
13562 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13564 Copyright (C) 2006 Free Software Foundation, Inc.
13565 This config.status script is free software; the Free Software Foundation
13566 gives unlimited permission to copy, distribute and modify it."
13573 cat >>$CONFIG_STATUS <<\_ACEOF
13574 # If no file are specified by the user, then we need to provide default
13575 # value. By we need to know if files were specified by the user.
13581 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13582 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13593 # Handling of the options.
13594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13596 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13597 echo "$ac_cs_version"; exit ;;
13598 --debug | --debu | --deb | --de | --d | -d )
13600 --file | --fil | --fi | --f )
13602 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13603 ac_need_defaults=false;;
13604 --header | --heade | --head | --hea )
13606 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13607 ac_need_defaults=false;;
13609 # Conflict between --help and --header
13610 { echo "$as_me: error: ambiguous option: $1
13611 Try \`$0 --help' for more information." >&2
13612 { (exit 1); exit 1; }; };;
13613 --help | --hel | -h )
13614 echo "$ac_cs_usage"; exit ;;
13615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13619 # This is an error.
13620 -*) { echo "$as_me: error: unrecognized option: $1
13621 Try \`$0 --help' for more information." >&2
13622 { (exit 1); exit 1; }; } ;;
13624 *) ac_config_targets="$ac_config_targets $1"
13625 ac_need_defaults=false ;;
13631 ac_configure_extra_args=
13633 if $ac_cs_silent; then
13635 ac_configure_extra_args="$ac_configure_extra_args --silent"
13639 cat >>$CONFIG_STATUS <<_ACEOF
13640 if \$ac_cs_recheck; then
13641 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13642 CONFIG_SHELL=$SHELL
13643 export CONFIG_SHELL
13644 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13648 cat >>$CONFIG_STATUS <<\_ACEOF
13652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13653 ## Running $as_me. ##
13659 cat >>$CONFIG_STATUS <<_ACEOF
13662 cat >>$CONFIG_STATUS <<\_ACEOF
13664 # Handling of arguments.
13665 for ac_config_target in $ac_config_targets
13667 case $ac_config_target in
13668 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13669 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13670 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13671 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13672 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13674 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13675 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13676 { (exit 1); exit 1; }; };;
13681 # If the user did not use the arguments to specify the items to instantiate,
13682 # then the envvar interface is used. Set only those that are not.
13683 # We use the long form for the default assignment because of an extremely
13684 # bizarre bug on SunOS 4.1.3.
13685 if $ac_need_defaults; then
13686 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13687 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13690 # Have a temporary directory for convenience. Make it in the build tree
13691 # simply because there is no reason against having it here, and in addition,
13692 # creating and moving files from /tmp can sometimes cause problems.
13693 # Hook for its removal unless debugging.
13694 # Note that there is a small window in which the directory will not be cleaned:
13695 # after its creation but before its name has been assigned to `$tmp'.
13699 trap 'exit_status=$?
13700 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13702 trap '{ (exit 1); exit 1; }' 1 2 13 15
13704 # Create a (secure) tmp directory for tmp files.
13707 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13708 test -n "$tmp" && test -d "$tmp"
13711 tmp=./conf$$-$RANDOM
13712 (umask 077 && mkdir "$tmp")
13715 echo "$me: cannot create a temporary directory in ." >&2
13716 { (exit 1); exit 1; }
13720 # Set up the sed scripts for CONFIG_FILES section.
13723 # No need to generate the scripts if there are no CONFIG_FILES.
13724 # This happens for instance when ./config.status config.h
13725 if test -n "$CONFIG_FILES"; then
13732 for ac_last_try in false false false false false :; do
13733 cat >conf$$subs.sed <<_ACEOF
13734 SHELL!$SHELL$ac_delim
13735 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13736 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13737 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13738 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13739 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13740 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13741 exec_prefix!$exec_prefix$ac_delim
13742 prefix!$prefix$ac_delim
13743 program_transform_name!$program_transform_name$ac_delim
13744 bindir!$bindir$ac_delim
13745 sbindir!$sbindir$ac_delim
13746 libexecdir!$libexecdir$ac_delim
13747 datarootdir!$datarootdir$ac_delim
13748 datadir!$datadir$ac_delim
13749 sysconfdir!$sysconfdir$ac_delim
13750 sharedstatedir!$sharedstatedir$ac_delim
13751 localstatedir!$localstatedir$ac_delim
13752 includedir!$includedir$ac_delim
13753 oldincludedir!$oldincludedir$ac_delim
13754 docdir!$docdir$ac_delim
13755 infodir!$infodir$ac_delim
13756 htmldir!$htmldir$ac_delim
13757 dvidir!$dvidir$ac_delim
13758 pdfdir!$pdfdir$ac_delim
13759 psdir!$psdir$ac_delim
13760 libdir!$libdir$ac_delim
13761 localedir!$localedir$ac_delim
13762 mandir!$mandir$ac_delim
13763 DEFS!$DEFS$ac_delim
13764 ECHO_C!$ECHO_C$ac_delim
13765 ECHO_N!$ECHO_N$ac_delim
13766 ECHO_T!$ECHO_T$ac_delim
13767 LIBS!$LIBS$ac_delim
13768 build_alias!$build_alias$ac_delim
13769 host_alias!$host_alias$ac_delim
13770 target_alias!$target_alias$ac_delim
13771 build!$build$ac_delim
13772 build_cpu!$build_cpu$ac_delim
13773 build_vendor!$build_vendor$ac_delim
13774 build_os!$build_os$ac_delim
13775 host!$host$ac_delim
13776 host_cpu!$host_cpu$ac_delim
13777 host_vendor!$host_vendor$ac_delim
13778 host_os!$host_os$ac_delim
13779 VERSION!$VERSION$ac_delim
13780 DATE!$DATE$ac_delim
13781 LSMDATE!$LSMDATE$ac_delim
13782 LIBVERSION!$LIBVERSION$ac_delim
13784 CFLAGS!$CFLAGS$ac_delim
13785 LDFLAGS!$LDFLAGS$ac_delim
13786 CPPFLAGS!$CPPFLAGS$ac_delim
13787 ac_ct_CC!$ac_ct_CC$ac_delim
13788 EXEEXT!$EXEEXT$ac_delim
13789 OBJEXT!$OBJEXT$ac_delim
13791 CXXFLAGS!$CXXFLAGS$ac_delim
13792 ac_ct_CXX!$ac_ct_CXX$ac_delim
13794 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13795 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13796 INSTALL_DATA!$INSTALL_DATA$ac_delim
13797 GREP!$GREP$ac_delim
13798 EGREP!$EGREP$ac_delim
13799 LINKER!$LINKER$ac_delim
13800 INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
13801 RXVTNAME!$RXVTNAME$ac_delim
13803 XMKMF!$XMKMF$ac_delim
13804 CXXCPP!$CXXCPP$ac_delim
13805 X_CFLAGS!$X_CFLAGS$ac_delim
13806 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13807 X_LIBS!$X_LIBS$ac_delim
13808 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13809 afterimage_config!$afterimage_config$ac_delim
13810 rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
13811 rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
13812 rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
13813 rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
13814 rxvt_intp_define!$rxvt_intp_define$ac_delim
13815 rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
13816 PKG_CONFIG!$PKG_CONFIG$ac_delim
13817 XFT_CONFIG!$XFT_CONFIG$ac_delim
13818 PERL!$PERL$ac_delim
13819 PERLLIB!$PERLLIB$ac_delim
13820 PERLFLAGS!$PERLFLAGS$ac_delim
13821 PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
13822 IF_PERL!$IF_PERL$ac_delim
13823 PERL_O!$PERL_O$ac_delim
13824 AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
13825 AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
13826 include_stdint_h!$include_stdint_h$ac_delim
13827 include_stdarg_h!$include_stdarg_h$ac_delim
13828 include_stdlib_h!$include_stdlib_h$ac_delim
13829 include_unistd_h!$include_unistd_h$ac_delim
13830 include_string_h!$include_string_h$ac_delim
13833 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13835 elif $ac_last_try; then
13836 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13837 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13838 { (exit 1); exit 1; }; }
13840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13844 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13845 if test -n "$ac_eof"; then
13846 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13847 ac_eof=`expr $ac_eof + 1`
13850 cat >>$CONFIG_STATUS <<_ACEOF
13851 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13855 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13856 s/^/s,@/; s/!/@,|#_!!_#|/
13859 s/'"$ac_delim"'$/,g/; t
13861 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13862 ' >>$CONFIG_STATUS <conf$$subs.sed
13863 rm -f conf$$subs.sed
13864 cat >>$CONFIG_STATUS <<_ACEOF
13870 for ac_last_try in false false false false false :; do
13871 cat >conf$$subs.sed <<_ACEOF
13872 include_fcntl_h!$include_fcntl_h$ac_delim
13873 include_util_h!$include_util_h$ac_delim
13874 include_assert_h!$include_assert_h$ac_delim
13875 include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
13876 include_sys_select_h!$include_sys_select_h$ac_delim
13877 include_sys_strredir_h!$include_sys_strredir_h$ac_delim
13878 include_sys_time_h!$include_sys_time_h$ac_delim
13879 include_time_h!$include_time_h$ac_delim
13880 LIBOBJS!$LIBOBJS$ac_delim
13881 LTLIBOBJS!$LTLIBOBJS$ac_delim
13884 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
13886 elif $ac_last_try; then
13887 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13888 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13889 { (exit 1); exit 1; }; }
13891 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13895 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13896 if test -n "$ac_eof"; then
13897 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13898 ac_eof=`expr $ac_eof + 1`
13901 cat >>$CONFIG_STATUS <<_ACEOF
13902 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13906 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13907 s/^/s,@/; s/!/@,|#_!!_#|/
13910 s/'"$ac_delim"'$/,g/; t
13912 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13913 ' >>$CONFIG_STATUS <conf$$subs.sed
13914 rm -f conf$$subs.sed
13915 cat >>$CONFIG_STATUS <<_ACEOF
13922 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13923 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13924 # trailing colons and then remove the whole line if VPATH becomes empty
13925 # (actually we leave an empty line to preserve line numbers).
13926 if test "x$srcdir" = x.; then
13927 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13928 s/:*\$(srcdir):*/:/
13929 s/:*\${srcdir}:*/:/
13931 s/^\([^=]*=[ ]*\):*/\1/
13937 cat >>$CONFIG_STATUS <<\_ACEOF
13938 fi # test -n "$CONFIG_FILES"
13941 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
13944 :[FHLC]) ac_mode=$ac_tag; continue;;
13946 case $ac_mode$ac_tag in
13948 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13949 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13950 { (exit 1); exit 1; }; };;
13951 :[FH]-) ac_tag=-:-;;
13952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13969 -) ac_f="$tmp/stdin";;
13970 *) # Look for the file first in the build tree, then in the source tree
13971 # (if the path is not absolute). The absolute path cannot be DOS-style,
13972 # because $ac_f cannot contain `:'.
13976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13978 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13979 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13980 { (exit 1); exit 1; }; };;
13982 ac_file_inputs="$ac_file_inputs $ac_f"
13985 # Let's still pretend it is `configure' which instantiates (i.e., don't
13986 # use $as_me), people would be surprised to read:
13987 # /* config.h. Generated by config.status. */
13988 configure_input="Generated from "`IFS=:
13989 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13990 if test x"$ac_file" != x-; then
13991 configure_input="$ac_file. $configure_input"
13992 { echo "$as_me:$LINENO: creating $ac_file" >&5
13993 echo "$as_me: creating $ac_file" >&6;}
13997 *:-:* | *:-) cat >"$tmp/stdin";;
14002 ac_dir=`$as_dirname -- "$ac_file" ||
14003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14004 X"$ac_file" : 'X\(//\)[^/]' \| \
14005 X"$ac_file" : 'X\(//\)$' \| \
14006 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14012 /^X\(\/\/\)[^/].*/{
14027 -*) as_dir=./$as_dir;;
14029 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14033 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14034 *) as_qdir=$as_dir;;
14036 as_dirs="'$as_qdir' $as_dirs"
14037 as_dir=`$as_dirname -- "$as_dir" ||
14038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14039 X"$as_dir" : 'X\(//\)[^/]' \| \
14040 X"$as_dir" : 'X\(//\)$' \| \
14041 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14047 /^X\(\/\/\)[^/].*/{
14060 test -d "$as_dir" && break
14062 test -z "$as_dirs" || eval "mkdir $as_dirs"
14063 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14064 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14065 { (exit 1); exit 1; }; }; }
14069 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14071 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14072 # A ".." for each directory in $ac_dir_suffix.
14073 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14074 case $ac_top_builddir_sub in
14075 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14076 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14079 ac_abs_top_builddir=$ac_pwd
14080 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14081 # for backward compatibility:
14082 ac_top_builddir=$ac_top_build_prefix
14085 .) # We are building in place.
14087 ac_top_srcdir=$ac_top_builddir_sub
14088 ac_abs_top_srcdir=$ac_pwd ;;
14089 [\\/]* | ?:[\\/]* ) # Absolute name.
14090 ac_srcdir=$srcdir$ac_dir_suffix;
14091 ac_top_srcdir=$srcdir
14092 ac_abs_top_srcdir=$srcdir ;;
14093 *) # Relative name.
14094 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14095 ac_top_srcdir=$ac_top_build_prefix$srcdir
14096 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14098 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14108 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14109 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14113 cat >>$CONFIG_STATUS <<\_ACEOF
14114 # If the template does not know about datarootdir, expand it.
14115 # FIXME: This hack should be removed a few years after 2.60.
14116 ac_datarootdir_hack=; ac_datarootdir_seen=
14118 case `sed -n '/datarootdir/ {
14127 ' $ac_file_inputs` in
14128 *datarootdir*) ac_datarootdir_seen=yes;;
14129 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14130 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14131 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14133 cat >>$CONFIG_STATUS <<_ACEOF
14134 ac_datarootdir_hack='
14135 s&@datadir@&$datadir&g
14136 s&@docdir@&$docdir&g
14137 s&@infodir@&$infodir&g
14138 s&@localedir@&$localedir&g
14139 s&@mandir@&$mandir&g
14140 s&\\\${datarootdir}&$datarootdir&g' ;;
14144 # Neutralize VPATH when `$srcdir' = `.'.
14145 # Shell code in configure.ac might set extrasub.
14146 # FIXME: do we really want to maintain this feature?
14147 cat >>$CONFIG_STATUS <<_ACEOF
14151 cat >>$CONFIG_STATUS <<\_ACEOF
14153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14154 s&@configure_input@&$configure_input&;t t
14155 s&@top_builddir@&$ac_top_builddir_sub&;t t
14156 s&@srcdir@&$ac_srcdir&;t t
14157 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14158 s&@top_srcdir@&$ac_top_srcdir&;t t
14159 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14160 s&@builddir@&$ac_builddir&;t t
14161 s&@abs_builddir@&$ac_abs_builddir&;t t
14162 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14163 s&@INSTALL@&$ac_INSTALL&;t t
14164 $ac_datarootdir_hack
14165 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14167 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14168 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14170 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14171 which seems to be undefined. Please make sure it is defined." >&5
14172 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14173 which seems to be undefined. Please make sure it is defined." >&2;}
14177 -) cat "$tmp/out"; rm -f "$tmp/out";;
14178 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14187 # Transform confdefs.h into a sed script `conftest.defines', that
14188 # substitutes the proper values into config.h.in to produce config.h.
14189 rm -f conftest.defines conftest.tail
14190 # First, append a space to every undef/define line, to ease matching.
14191 echo 's/$/ /' >conftest.defines
14192 # Then, protect against being on the right side of a sed subst, or in
14193 # an unquoted here document, in config.status. If some macros were
14194 # called several times there might be several #defines for the same
14195 # symbol, which is useless. But do not sort them, since the last
14196 # AC_DEFINE must be honored.
14197 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14198 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14199 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14200 # PARAMS is the parameter list in the macro definition--in most cases, it's
14201 # just an empty string.
14202 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14203 ac_dB='\\)[ (].*,\\1define\\2'
14211 s/^[ ]*#[ ]*define[ ][ ]*//
14216 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14217 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14218 ' >>conftest.defines
14220 # Remove the space that was appended to ease matching.
14221 # Then replace #undef with comments. This is necessary, for
14222 # example, in the case of _POSIX_SOURCE, which is predefined and required
14223 # on some systems where configure will not decide to define it.
14224 # (The regexp can be short, since the line contains either #define or #undef.)
14226 s,^[ #]*u.*,/* & */,' >>conftest.defines
14228 # Break up conftest.defines:
14229 ac_max_sed_lines=50
14231 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14232 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14233 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14235 ac_in='$ac_file_inputs'
14236 ac_out='"$tmp/out1"'
14237 ac_nxt='"$tmp/out2"'
14241 # Write a here document:
14242 cat >>$CONFIG_STATUS <<_ACEOF
14243 # First, check the format of the line:
14244 cat >"\$tmp/defines.sed" <<\\CEOF
14245 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14246 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14250 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14252 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14253 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14254 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14255 grep . conftest.tail >/dev/null || break
14256 rm -f conftest.defines
14257 mv conftest.tail conftest.defines
14259 rm -f conftest.defines conftest.tail
14261 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14262 cat >>$CONFIG_STATUS <<\_ACEOF
14263 if test x"$ac_file" != x-; then
14264 echo "/* $configure_input */" >"$tmp/config.h"
14265 cat "$ac_result" >>"$tmp/config.h"
14266 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14267 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14268 echo "$as_me: $ac_file is unchanged" >&6;}
14271 mv "$tmp/config.h" $ac_file
14274 echo "/* $configure_input */"
14286 { (exit 0); exit 0; }
14288 chmod +x $CONFIG_STATUS
14289 ac_clean_files=$ac_clean_files_save
14292 # configure is writing to config.log, and then calls config.status.
14293 # config.status does its own redirection, appending to config.log.
14294 # Unfortunately, on DOS this fails, as config.log is still kept open
14295 # by configure, so config.status won't be able to write to it; its
14296 # output is simply discarded. So we exec the FD to /dev/null,
14297 # effectively closing config.log, so it can be properly (re)opened and
14298 # appended to by config.status. When coming back to configure, we
14299 # need to make the FD available again.
14300 if test "$no_create" != yes; then
14302 ac_config_status_args=
14303 test "$silent" = yes &&
14304 ac_config_status_args="$ac_config_status_args --quiet"
14306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14309 # would make configure fail if this is the last instruction.
14310 $ac_cs_success || { (exit 1); exit 1; }
14314 echo "Configuration:
14316 Rxvt version: $VERSION : $DATE
14317 Source code location: $srcdir
14318 Install path: ${prefix}/bin
14320 Compiler flags: $CXXFLAGS
14323 if test x$term != x; then
14324 echo " set TERM to: $term"
14326 if test x$terminfo != x; then
14327 echo " set TERMINFO to: $terminfo"
14329 echo " default resource name: $RESNAME"
14330 echo " resource class: $RESCLASS"
14331 if test x$RESFALLBACK != x; then
14332 echo " resource class fallback: $RESFALLBACK"
14335 echo " embedded perl: $support_perl"
14336 echo " libafterimage: $support_afterimage"
14338 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14339 echo ".----------------------------------------------------------------."
14340 echo ". WARNING: --enable-xim was specified however the locale support ."
14341 echo ". functions could not be found. ."
14342 echo ". XIM is now being DISABLED! ."
14343 echo ".----------------------------------------------------------------."
14346 echo "*** Optionally check src/feature.h for further, rarely used options ***"