# include <unistd.h>
#endif"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
ac_subst_files='MCOMMON'
# Initialize some variables set by options.
--enable-unicode3 use 21 instead of 16 bits to represent unicode characters
--enable-combining enable composition of base and combining characters
--enable-xft enable xft support on systems that have it
+ --enable-font-styles enable bold and italic support
--enable-utmp enable utmp (utmpx) support
--enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
--enable-lastlog enable lastlog support (requires --enable-utmp)
--enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
--enable-strings enable some replacement system functions
--disable-swapscreen disable swap screen support
+ --enable-iso14755 enable support for extended ISO 14755 modes
--enable-frills enable support for rarely used features
- --enable-linespace enable support for linespace
--enable-24bit enable support for using 24bit visuals if available
--enable-keepscrolling enable continual scrolling on scrollbar arrow press
--enable-selectionscrolling enable scrolling during selections
--enable-dlmalloc enable Doug Lea's malloc - for production use
NOTE: enable only one malloc package
--enable-smart-resize enable smart growth/shrink behaviour
- --enable-256-color enable 256-color support
--enable-cursor-blink enable blinking cursor
--enable-text-blink enable blinking text
--enable-pointer-blank enable pointer blank when typing or inactive pointer
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-pic try to use only PIC/non-PIC objects default=use both
- --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)
+ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
--with-res-name=NAME use this as default resource name (default: urxvt)
--with-res-class=CLASS use this as the resource class (default: URxvt)
--with-name=NAME set the basename for the installed binaries (default: urxvt)
ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
+# Make sure we can run config.sub.
+$ac_config_sub sun4 >/dev/null 2>&1 ||
+ { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
+echo "$as_me: error: cannot run $ac_config_sub" >&2;}
+ { (exit 1); exit 1; }; }
+
+echo "$as_me:$LINENO: checking build system type" >&5
+echo $ECHO_N "checking build system type... $ECHO_C" >&6
+if test "${ac_cv_build+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_build_alias=$build_alias
+test -z "$ac_cv_build_alias" &&
+ ac_cv_build_alias=`$ac_config_guess`
+test -z "$ac_cv_build_alias" &&
+ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
+echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
+ { (exit 1); exit 1; }; }
+ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
+echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_build" >&5
+echo "${ECHO_T}$ac_cv_build" >&6
+build=$ac_cv_build
+build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+
+echo "$as_me:$LINENO: checking host system type" >&5
+echo $ECHO_N "checking host system type... $ECHO_C" >&6
+if test "${ac_cv_host+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_host_alias=$host_alias
+test -z "$ac_cv_host_alias" &&
+ ac_cv_host_alias=$ac_cv_build_alias
+ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
+ { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
+echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_host" >&5
+echo "${ECHO_T}$ac_cv_host" >&6
+host=$ac_cv_host
+host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+
+
+
VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -z "$orig_CXXFLAGS"; then
+ CXXFLAGS='-O'
+ if test x$GCC = xyes && test "x$GXX" = xyes; then
+ CXXFLAGS="-g -O3"
+ fi
+ CFLAGS="$CXXFLAGS"
+fi
+
LINKER="$CXX"
if test x$GCC = xyes && test x$GXX = xyes; then
LINKER=$LINKER
-CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
+
+cat >>confdefs.h <<\_ACEOF
+#define _GNU_SOURCE 1
+_ACEOF
+
+
+case $host in
+ *-*-solaris* )
+
+cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE_EXTENDED 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE 2
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define __EXTENSIONS__ 1
+_ACEOF
+
+ ;;
+esac
ac_ext=cc
else
enable_fast_install=yes
fi;
-# Make sure we can run config.sub.
-$ac_config_sub sun4 >/dev/null 2>&1 ||
- { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
-echo "$as_me: error: cannot run $ac_config_sub" >&2;}
- { (exit 1); exit 1; }; }
-
-echo "$as_me:$LINENO: checking build system type" >&5
-echo $ECHO_N "checking build system type... $ECHO_C" >&6
-if test "${ac_cv_build+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_build_alias=$build_alias
-test -z "$ac_cv_build_alias" &&
- ac_cv_build_alias=`$ac_config_guess`
-test -z "$ac_cv_build_alias" &&
- { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
-echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
- { (exit 1); exit 1; }; }
-ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
-echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
- { (exit 1); exit 1; }; }
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_build" >&5
-echo "${ECHO_T}$ac_cv_build" >&6
-build=$ac_cv_build
-build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-
-
-echo "$as_me:$LINENO: checking host system type" >&5
-echo $ECHO_N "checking host system type... $ECHO_C" >&6
-if test "${ac_cv_host+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_host_alias=$host_alias
-test -z "$ac_cv_host_alias" &&
- ac_cv_host_alias=$ac_cv_build_alias
-ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
-echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
- { (exit 1); exit 1; }; }
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_host" >&5
-echo "${ECHO_T}$ac_cv_host" >&6
-host=$ac_cv_host
-host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-
-
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
case "$host" in
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 5242 "configure"' > conftest.$ac_ext
+ echo '#line 5275 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
compiler_c_o=no
-if { (eval echo configure:5793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
+if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
if test -s out/conftest.err; then
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 7409 "configure"
+#line 7442 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 7507 "configure"
+#line 7540 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
MALLOC_TYPE=S
support_addstrings=no
support_frills=no
-support_linespace=no
support_inheritpixmap=no
support_tinting=no
support_fading=no
support_unicode3=no
support_combining=no
support_8bitctrls=no
+support_iso14755=no
+support_styles=no
codesets=
if test x$enableval = xyes; then
support_24bit=yes
support_frills=yes
- support_linespace=yes
support_inheritpixmap=yes
support_tinting=yes
support_fading=yes
support_unicode3=yes
support_combining=yes
#support_8bitctrls=yes
+ support_iso14755=yes
+ support_styles=yes
codesets=all
fi
fi;
if test "${enable_unicode3+set}" = set; then
enableval="$enable_unicode3"
if test x$enableval = xyes -o x$enableval = xno; then
- support_unicode3=yes
+ support_unicode3=$enableval
fi
fi;
if test "${enable_combining+set}" = set; then
enableval="$enable_combining"
if test x$enableval = xyes -o x$enableval = xno; then
- support_combining=yes
+ support_combining=$enableval
fi
fi;
if test "${enable_xft+set}" = set; then
enableval="$enable_xft"
if test x$enableval = xyes -o x$enableval = xno; then
- support_xft=yes
+ support_xft=$enableval
+ fi
+fi;
+
+# Check whether --enable-font-styles or --disable-font-styles was given.
+if test "${enable_font_styles+set}" = set; then
+ enableval="$enable_font_styles"
+ if test x$enableval = xyes -o x$enableval = xno; then
+ support_styles=$enableval
fi
fi;
if test "${enable_8bitctrls+set}" = set; then
enableval="$enable_8bitctrls"
if test x$enableval = xyes -o x$enableval = xno; then
- support_8bitctrls=yes
+ support_8bitctrls=$enableval
fi
fi;
RXVTNAME="$withval"
fi;
+cat >>confdefs.h <<_ACEOF
+#define RXVTNAME "$RXVTNAME"
+_ACEOF
+
+
RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
fi
fi;
-# Check whether --enable-frills or --disable-frills was given.
-if test "${enable_frills+set}" = set; then
- enableval="$enable_frills"
+# Check whether --enable-iso14755 or --disable-iso14755 was given.
+if test "${enable_iso14755+set}" = set; then
+ enableval="$enable_iso14755"
if test x$enableval = xyes -o x$enableval = xno; then
- support_frills=$enableval
+ support_iso14755=$enableval
fi
fi;
-# Check whether --enable-linespace or --disable-linespace was given.
-if test "${enable_linespace+set}" = set; then
- enableval="$enable_linespace"
+# Check whether --enable-frills or --disable-frills was given.
+if test "${enable_frills+set}" = set; then
+ enableval="$enable_frills"
if test x$enableval = xyes -o x$enableval = xno; then
- support_linespace=$enableval
+ support_frills=$enableval
fi
fi;
fi
fi;
-# Check whether --enable-256-color or --disable-256-color was given.
-if test "${enable_256_color+set}" = set; then
- enableval="$enable_256_color"
- if test x$enableval = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define TTY_256COLOR 1
-_ACEOF
-
- fi
-fi;
-
# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
if test "${enable_cursor_blink+set}" = set; then
enableval="$enable_cursor_blink"
_ACEOF
-if test -z "$CFLAGS"; then
- if test -z "$CCOPTS"; then
- CCOPTS='-O'
- fi
- CFLAGS="$CCOPTS"
-fi
-
# Extract the first word of "mv", so it can be a program name with args.
set dummy mv; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo "${ECHO_T}no" >&6
fi
+# Extract the first word of "tic", so it can be a program name with args.
+set dummy tic; ac_word=$2
+echo "$as_me:$LINENO: checking for $ac_word" >&5
+echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
+if test "${ac_cv_path_TIC+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ case $TIC in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
+ echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+
+ ;;
+esac
+fi
+TIC=$ac_cv_path_TIC
+
+if test -n "$TIC"; then
+ echo "$as_me:$LINENO: result: $TIC" >&5
+echo "${ECHO_T}$TIC" >&6
+else
+ echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+
+
+
+
for ac_header in \
assert.h \
fcntl.h \
utmp.h \
utmpx.h \
stdint.h \
+ pty.h \
+ wchar.h \
+ cwchar \
+ clocale \
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fi
-
-echo "$as_me:$LINENO: checking for char" >&5
-echo $ECHO_N "checking for char... $ECHO_C" >&6
-if test "${ac_cv_type_char+set}" = set; then
+echo "$as_me:$LINENO: checking for short" >&5
+echo $ECHO_N "checking for short... $ECHO_C" >&6
+if test "${ac_cv_type_short+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
int
main ()
{
-if ((char *) 0)
+if ((short *) 0)
return 0;
-if (sizeof (char))
+if (sizeof (short))
return 0;
;
return 0;
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_char=yes
+ ac_cv_type_short=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_type_char=no
+ac_cv_type_short=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
-echo "${ECHO_T}$ac_cv_type_char" >&6
+echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
+echo "${ECHO_T}$ac_cv_type_short" >&6
-echo "$as_me:$LINENO: checking size of char" >&5
-echo $ECHO_N "checking size of char... $ECHO_C" >&6
-if test "${ac_cv_sizeof_char+set}" = set; then
+echo "$as_me:$LINENO: checking size of short" >&5
+echo $ECHO_N "checking size of short... $ECHO_C" >&6
+if test "${ac_cv_sizeof_short+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- if test "$ac_cv_type_char" = yes; then
+ if test "$ac_cv_type_short" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
+static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
+static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0
;
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
-?*) ac_cv_sizeof_char=$ac_lo;;
-'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
+?*) ac_cv_sizeof_short=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (char), 77
+echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-long longval () { return (long) (sizeof (char)); }
-unsigned long ulongval () { return (long) (sizeof (char)); }
+long longval () { return (long) (sizeof (short)); }
+unsigned long ulongval () { return (long) (sizeof (short)); }
#include <stdio.h>
#include <stdlib.h>
int
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
- if (((long) (sizeof (char))) < 0)
+ if (((long) (sizeof (short))) < 0)
{
long i = longval ();
- if (i != ((long) (sizeof (char))))
+ if (i != ((long) (sizeof (short))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
- if (i != ((long) (sizeof (char))))
+ if (i != ((long) (sizeof (short))))
exit (1);
fprintf (f, "%lu\n", i);
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_sizeof_char=`cat conftest.val`
+ ac_cv_sizeof_short=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
-{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (char), 77
+echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
rm -f conftest.val
else
- ac_cv_sizeof_char=0
+ ac_cv_sizeof_short=0
fi
fi
-echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
-echo "${ECHO_T}$ac_cv_sizeof_char" >&6
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
+echo "${ECHO_T}$ac_cv_sizeof_short" >&6
cat >>confdefs.h <<_ACEOF
-#define SIZEOF_CHAR $ac_cv_sizeof_char
+#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF
-echo "$as_me:$LINENO: checking for short" >&5
-echo $ECHO_N "checking for short... $ECHO_C" >&6
-if test "${ac_cv_type_short+set}" = set; then
+echo "$as_me:$LINENO: checking for int" >&5
+echo $ECHO_N "checking for int... $ECHO_C" >&6
+if test "${ac_cv_type_int+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
int
main ()
{
-if ((short *) 0)
+if ((int *) 0)
return 0;
-if (sizeof (short))
+if (sizeof (int))
return 0;
;
return 0;
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_short=yes
+ ac_cv_type_int=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_type_short=no
+ac_cv_type_int=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
-echo "${ECHO_T}$ac_cv_type_short" >&6
+echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
+echo "${ECHO_T}$ac_cv_type_int" >&6
-echo "$as_me:$LINENO: checking size of short" >&5
-echo $ECHO_N "checking size of short... $ECHO_C" >&6
-if test "${ac_cv_sizeof_short+set}" = set; then
+echo "$as_me:$LINENO: checking size of int" >&5
+echo $ECHO_N "checking size of int... $ECHO_C" >&6
+if test "${ac_cv_sizeof_int+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- if test "$ac_cv_type_short" = yes; then
+ if test "$ac_cv_type_int" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
+static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
+static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
;
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
-?*) ac_cv_sizeof_short=$ac_lo;;
-'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
+?*) ac_cv_sizeof_int=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (short), 77
+echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-long longval () { return (long) (sizeof (short)); }
-unsigned long ulongval () { return (long) (sizeof (short)); }
+long longval () { return (long) (sizeof (int)); }
+unsigned long ulongval () { return (long) (sizeof (int)); }
#include <stdio.h>
#include <stdlib.h>
int
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
- if (((long) (sizeof (short))) < 0)
+ if (((long) (sizeof (int))) < 0)
{
long i = longval ();
- if (i != ((long) (sizeof (short))))
+ if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
- if (i != ((long) (sizeof (short))))
+ if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%lu\n", i);
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_sizeof_short=`cat conftest.val`
+ ac_cv_sizeof_int=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
-{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (short), 77
+echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
rm -f conftest.val
else
- ac_cv_sizeof_short=0
+ ac_cv_sizeof_int=0
fi
fi
-echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
-echo "${ECHO_T}$ac_cv_sizeof_short" >&6
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
+echo "${ECHO_T}$ac_cv_sizeof_int" >&6
cat >>confdefs.h <<_ACEOF
-#define SIZEOF_SHORT $ac_cv_sizeof_short
+#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF
-echo "$as_me:$LINENO: checking for int" >&5
-echo $ECHO_N "checking for int... $ECHO_C" >&6
-if test "${ac_cv_type_int+set}" = set; then
+echo "$as_me:$LINENO: checking for long long" >&5
+echo $ECHO_N "checking for long long... $ECHO_C" >&6
+if test "${ac_cv_type_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
int
main ()
{
-if ((int *) 0)
+if ((long long *) 0)
return 0;
-if (sizeof (int))
+if (sizeof (long long))
return 0;
;
return 0;
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_int=yes
+ ac_cv_type_long_long=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_type_int=no
+ac_cv_type_long_long=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
-echo "${ECHO_T}$ac_cv_type_int" >&6
+echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
+echo "${ECHO_T}$ac_cv_type_long_long" >&6
-echo "$as_me:$LINENO: checking size of int" >&5
-echo $ECHO_N "checking size of int... $ECHO_C" >&6
-if test "${ac_cv_sizeof_int+set}" = set; then
+echo "$as_me:$LINENO: checking size of long long" >&5
+echo $ECHO_N "checking size of long long... $ECHO_C" >&6
+if test "${ac_cv_sizeof_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- if test "$ac_cv_type_int" = yes; then
+ if test "$ac_cv_type_long_long" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0
;
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
-?*) ac_cv_sizeof_int=$ac_lo;;
-'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
+?*) ac_cv_sizeof_long_long=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (int), 77
+echo "$as_me: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-long longval () { return (long) (sizeof (int)); }
-unsigned long ulongval () { return (long) (sizeof (int)); }
+long longval () { return (long) (sizeof (long long)); }
+unsigned long ulongval () { return (long) (sizeof (long long)); }
#include <stdio.h>
#include <stdlib.h>
int
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
- if (((long) (sizeof (int))) < 0)
+ if (((long) (sizeof (long long))) < 0)
{
long i = longval ();
- if (i != ((long) (sizeof (int))))
+ if (i != ((long) (sizeof (long long))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
- if (i != ((long) (sizeof (int))))
+ if (i != ((long) (sizeof (long long))))
exit (1);
fprintf (f, "%lu\n", i);
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_sizeof_int=`cat conftest.val`
+ ac_cv_sizeof_long_long=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
-{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (int), 77
+echo "$as_me: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
rm -f conftest.val
else
- ac_cv_sizeof_int=0
+ ac_cv_sizeof_long_long=0
fi
fi
-echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
-echo "${ECHO_T}$ac_cv_sizeof_int" >&6
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
+echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
cat >>confdefs.h <<_ACEOF
-#define SIZEOF_INT $ac_cv_sizeof_int
+#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF
-echo "$as_me:$LINENO: checking for long" >&5
-echo $ECHO_N "checking for long... $ECHO_C" >&6
-if test "${ac_cv_type_long+set}" = set; then
+echo "$as_me:$LINENO: checking for int *" >&5
+echo $ECHO_N "checking for int *... $ECHO_C" >&6
+if test "${ac_cv_type_int_p+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
int
main ()
{
-if ((long *) 0)
+if ((int * *) 0)
return 0;
-if (sizeof (long))
+if (sizeof (int *))
return 0;
;
return 0;
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_long=yes
+ ac_cv_type_int_p=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_type_long=no
+ac_cv_type_int_p=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
-echo "${ECHO_T}$ac_cv_type_long" >&6
+echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
+echo "${ECHO_T}$ac_cv_type_int_p" >&6
-echo "$as_me:$LINENO: checking size of long" >&5
-echo $ECHO_N "checking size of long... $ECHO_C" >&6
-if test "${ac_cv_sizeof_long+set}" = set; then
+echo "$as_me:$LINENO: checking size of int *" >&5
+echo $ECHO_N "checking size of int *... $ECHO_C" >&6
+if test "${ac_cv_sizeof_int_p+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- if test "$ac_cv_type_long" = yes; then
+ if test "$ac_cv_type_int_p" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
+static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
+static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
test_array [0] = 0
;
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
+static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
test_array [0] = 0
;
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
-?*) ac_cv_sizeof_long=$ac_lo;;
-'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
+?*) ac_cv_sizeof_int_p=$ac_lo;;
+'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (long), 77
+echo "$as_me: error: cannot compute sizeof (int *), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-long longval () { return (long) (sizeof (long)); }
-unsigned long ulongval () { return (long) (sizeof (long)); }
+long longval () { return (long) (sizeof (int *)); }
+unsigned long ulongval () { return (long) (sizeof (int *)); }
#include <stdio.h>
#include <stdlib.h>
int
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
- if (((long) (sizeof (long))) < 0)
+ if (((long) (sizeof (int *))) < 0)
{
long i = longval ();
- if (i != ((long) (sizeof (long))))
+ if (i != ((long) (sizeof (int *))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
- if (i != ((long) (sizeof (long))))
+ if (i != ((long) (sizeof (int *))))
exit (1);
fprintf (f, "%lu\n", i);
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_sizeof_long=`cat conftest.val`
+ ac_cv_sizeof_int_p=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
-{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
+{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (long), 77
+echo "$as_me: error: cannot compute sizeof (int *), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
rm -f conftest.val
else
- ac_cv_sizeof_long=0
+ ac_cv_sizeof_int_p=0
fi
fi
-echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
-echo "${ECHO_T}$ac_cv_sizeof_long" >&6
+echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
+echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
cat >>confdefs.h <<_ACEOF
-#define SIZEOF_LONG $ac_cv_sizeof_long
+#define SIZEOF_INT_P $ac_cv_sizeof_int_p
_ACEOF
-echo "$as_me:$LINENO: checking for long long" >&5
-echo $ECHO_N "checking for long long... $ECHO_C" >&6
-if test "${ac_cv_type_long_long+set}" = set; then
+
+
+echo "$as_me:$LINENO: checking for int16_t" >&5
+echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
+if test "${rxvt_cv_int16_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
+#include <stdint.h>
int
main ()
{
-if ((long long *) 0)
- return 0;
-if (sizeof (long long))
- return 0;
+int16_t dummy;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_long_long=yes
+ rxvt_cv_int16_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_type_long_long=no
+if test "$ac_cv_sizeof_char" -ge 2; then
+ rxvt_cv_int16_t=" char"
+else
+ if test "$ac_cv_sizeof_short" -ge 2; then
+ rxvt_cv_int16_t=" short"
+ else
+ if test "$ac_cv_sizeof_int" -ge 2; then
+ rxvt_cv_int16_t=" int"
+ else
+ if test "$ac_cv_sizeof_long" -ge 2; then
+ rxvt_cv_int16_t=" long"
+ else
+ if test "$ac_cv_sizeof_long_long" -ge 2; then
+ rxvt_cv_int16_t=" long long"
+ else
+ rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
+ fi
+ fi
+ fi
+ fi
+fi
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
-echo "${ECHO_T}$ac_cv_type_long_long" >&6
+echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
+echo "${ECHO_T}$rxvt_cv_int16_t" >&6
+if test x"$rxvt_cv_int16_t" != xyes; then
+ rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
+else
+ if test x"" = x; then
+ rxvt_int16_typedef="/* typedef short int16_t; */"
+ else
+ rxvt_int16_typedef="/* typedef short int16_t; */"
+ fi
+fi
-echo "$as_me:$LINENO: checking size of long long" >&5
-echo $ECHO_N "checking size of long long... $ECHO_C" >&6
-if test "${ac_cv_sizeof_long_long+set}" = set; then
+echo "$as_me:$LINENO: checking for uint16_t" >&5
+echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
+if test "${rxvt_cv_uint16_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- if test "$ac_cv_type_long_long" = yes; then
- # The cast to unsigned long works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- if test "$cross_compiling" = yes; then
- # Depending upon the size, compute the lo and hi bounds.
-cat >conftest.$ac_ext <<_ACEOF
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
+#include <stdint.h>
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
-test_array [0] = 0
-
+uint16_t dummy;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_lo=0 ac_mid=0
- while :; do
- cat >conftest.$ac_ext <<_ACEOF
+ rxvt_cv_uint16_t=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+if test "$ac_cv_sizeof_char" -ge 2; then
+ rxvt_cv_uint16_t="unsigned char"
+else
+ if test "$ac_cv_sizeof_short" -ge 2; then
+ rxvt_cv_uint16_t="unsigned short"
+ else
+ if test "$ac_cv_sizeof_int" -ge 2; then
+ rxvt_cv_uint16_t="unsigned int"
+ else
+ if test "$ac_cv_sizeof_long" -ge 2; then
+ rxvt_cv_uint16_t="unsigned long"
+ else
+ if test "$ac_cv_sizeof_long_long" -ge 2; then
+ rxvt_cv_uint16_t="unsigned long long"
+ else
+ rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
+ fi
+ fi
+ fi
+ fi
+fi
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
+echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
+if test x"$rxvt_cv_uint16_t" != xyes; then
+ rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
+else
+ if test x"unsigned" = x; then
+ rxvt_uint16_typedef="/* typedef short uint16_t; */"
+ else
+ rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
+ fi
+fi
+
+echo "$as_me:$LINENO: checking for int32_t" >&5
+echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
+if test "${rxvt_cv_int32_t+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
+#include <stdint.h>
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
-test_array [0] = 0
-
+int32_t dummy;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_hi=$ac_mid; break
+ rxvt_cv_int32_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_lo=`expr $ac_mid + 1`
- if test $ac_lo -le $ac_mid; then
- ac_lo= ac_hi=
- break
- fi
- ac_mid=`expr 2 '*' $ac_mid + 1`
+if test "$ac_cv_sizeof_char" -ge 4; then
+ rxvt_cv_int32_t=" char"
+else
+ if test "$ac_cv_sizeof_short" -ge 4; then
+ rxvt_cv_int32_t=" short"
+ else
+ if test "$ac_cv_sizeof_int" -ge 4; then
+ rxvt_cv_int32_t=" int"
+ else
+ if test "$ac_cv_sizeof_long" -ge 4; then
+ rxvt_cv_int32_t=" long"
+ else
+ if test "$ac_cv_sizeof_long_long" -ge 4; then
+ rxvt_cv_int32_t=" long long"
+ else
+ rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
+ fi
+ fi
+ fi
+ fi
+fi
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- done
+fi
+echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
+echo "${ECHO_T}$rxvt_cv_int32_t" >&6
+if test x"$rxvt_cv_int32_t" != xyes; then
+ rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
-test_array [0] = 0
+ if test x"" = x; then
+ rxvt_int32_typedef="/* typedef int int32_t; */"
+ else
+ rxvt_int32_typedef="/* typedef int int32_t; */"
+ fi
+fi
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_hi=-1 ac_mid=-1
- while :; do
- cat >conftest.$ac_ext <<_ACEOF
+echo "$as_me:$LINENO: checking for uint32_t" >&5
+echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
+if test "${rxvt_cv_uint32_t+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
+#include <stdint.h>
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
-test_array [0] = 0
-
+uint32_t dummy;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_lo=$ac_mid; break
+ rxvt_cv_uint32_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_hi=`expr '(' $ac_mid ')' - 1`
- if test $ac_mid -le $ac_hi; then
- ac_lo= ac_hi=
- break
- fi
- ac_mid=`expr 2 '*' $ac_mid`
+if test "$ac_cv_sizeof_char" -ge 4; then
+ rxvt_cv_uint32_t="unsigned char"
+else
+ if test "$ac_cv_sizeof_short" -ge 4; then
+ rxvt_cv_uint32_t="unsigned short"
+ else
+ if test "$ac_cv_sizeof_int" -ge 4; then
+ rxvt_cv_uint32_t="unsigned int"
+ else
+ if test "$ac_cv_sizeof_long" -ge 4; then
+ rxvt_cv_uint32_t="unsigned long"
+ else
+ if test "$ac_cv_sizeof_long_long" -ge 4; then
+ rxvt_cv_uint32_t="unsigned long long"
+ else
+ rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
+ fi
+ fi
+ fi
+ fi
+fi
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- done
+fi
+echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
+echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
+if test x"$rxvt_cv_uint32_t" != xyes; then
+ rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_lo= ac_hi=
+ if test x"unsigned" = x; then
+ rxvt_uint32_typedef="/* typedef int uint32_t; */"
+ else
+ rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
+ fi
fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test "$ac_cv_sizeof_int_p" -eq 8; then
+ rxvt_intp_define="#define intp_t int64_t"
+ rxvt_u_intp_define="#define u_intp_t u_int64_t"
+else
+ if test "$ac_cv_sizeof_int_p" -eq 4; then
+ rxvt_intp_define="#define intp_t int32_t"
+ rxvt_u_intp_define="#define u_intp_t u_int32_t"
+ else
+ if test "$ac_cv_sizeof_int_p" -eq 2; then
+ rxvt_intp_define="#define intp_t int16_t"
+ rxvt_u_intp_define="#define u_intp_t u_int16_t"
+ else
+ rxvt_intp_define="#error set intp_t"
+ rxvt_u_intp_define="#error set u_intp_t"
+ fi
+ fi
fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-# Binary search between lo and hi bounds.
-while test "x$ac_lo" != "x$ac_hi"; do
- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+
+
+
+echo "$as_me:$LINENO: checking return type of signal handlers" >&5
+echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
+if test "${ac_cv_type_signal+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
+#include <sys/types.h>
+#include <signal.h>
+#ifdef signal
+# undef signal
+#endif
+#ifdef __cplusplus
+extern "C" void (*signal (int, void (*)(int)))(int);
+#else
+void (*signal ()) ();
+#endif
+
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
-test_array [0] = 0
-
+int i;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_hi=$ac_mid
+ ac_cv_type_signal=void
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_lo=`expr '(' $ac_mid ')' + 1`
+ac_cv_type_signal=int
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
-case $ac_lo in
-?*) ac_cv_sizeof_long_long=$ac_lo;;
-'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (long long), 77
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; } ;;
+fi
+echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
+echo "${ECHO_T}$ac_cv_type_signal" >&6
+
+cat >>confdefs.h <<_ACEOF
+#define RETSIGTYPE $ac_cv_type_signal
+_ACEOF
+
+
+
+case "$host_alias" in
+ *ultrix) ac_cv_func_setsid='no' ;;
+ *) break;;
esac
-else
- if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
-echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
- { (exit 1); exit 1; }; }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+for ac_func in \
+ atexit \
+ revoke \
+ unsetenv \
+ setutent \
+ seteuid \
+ setreuid \
+ setsid \
+ setpgrp \
+ setpgid \
+ openpty \
+ _getpty \
+ grantpt \
+ unlockpt \
+ isastream \
+ on_exit \
+ nanosleep \
+ updwtmp \
+ ttyslot \
+
+do
+as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
+echo "$as_me:$LINENO: checking for $ac_func" >&5
+echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
+if eval "test \"\${$as_ac_var+set}\" = set"; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
-long longval () { return (long) (sizeof (long long)); }
-unsigned long ulongval () { return (long) (sizeof (long long)); }
-#include <stdio.h>
-#include <stdlib.h>
-int
-main ()
-{
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
- FILE *f = fopen ("conftest.val", "w");
- if (! f)
- exit (1);
- if (((long) (sizeof (long long))) < 0)
- {
- long i = longval ();
- if (i != ((long) (sizeof (long long))))
- exit (1);
- fprintf (f, "%ld\n", i);
- }
- else
- {
- unsigned long i = ulongval ();
- if (i != ((long) (sizeof (long long))))
- exit (1);
- fprintf (f, "%lu\n", i);
- }
- exit (ferror (f) || fclose (f) != 0);
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+choke me
+#else
+char (*f) () = $ac_func;
+#endif
+#ifdef __cplusplus
+}
+#endif
+int
+main ()
+{
+return f != $ac_func;
;
return 0;
}
_ACEOF
-rm -f conftest$ac_exeext
+rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_sizeof_long_long=`cat conftest.val`
+ eval "$as_ac_var=yes"
else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
+ echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-( exit $ac_status )
-{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (long long), 77
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-fi
-rm -f conftest.val
-else
- ac_cv_sizeof_long_long=0
+eval "$as_ac_var=no"
fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
-echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
-cat >>confdefs.h <<_ACEOF
-#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
+if test `eval echo '${'$as_ac_var'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
+fi
+done
+
-echo "$as_me:$LINENO: checking for int *" >&5
-echo $ECHO_N "checking for int *... $ECHO_C" >&6
-if test "${ac_cv_type_int_p+set}" = set; then
+
+if test "${ac_cv_header_utmp_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for utmp.h" >&5
+echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
+if test "${ac_cv_header_utmp_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
+echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
else
- cat >conftest.$ac_ext <<_ACEOF
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking utmp.h usability" >&5
+echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-int
-main ()
-{
-if ((int * *) 0)
- return 0;
-if (sizeof (int *))
- return 0;
- ;
- return 0;
-}
+#include <utmp.h>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_cv_type_int_p=yes
+ ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_type_int_p=no
+ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking utmp.h presence" >&5
+echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <utmp.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_cxx_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
fi
-echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
-echo "${ECHO_T}$ac_cv_type_int_p" >&6
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-echo "$as_me:$LINENO: checking size of int *" >&5
-echo $ECHO_N "checking size of int *... $ECHO_C" >&6
-if test "${ac_cv_sizeof_int_p+set}" = set; then
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for utmp.h" >&5
+echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
+if test "${ac_cv_header_utmp_h+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- if test "$ac_cv_type_int_p" = yes; then
- # The cast to unsigned long works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- if test "$cross_compiling" = yes; then
- # Depending upon the size, compute the lo and hi bounds.
-cat >conftest.$ac_ext <<_ACEOF
+ ac_cv_header_utmp_h=$ac_header_preproc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
+echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
+
+fi
+if test $ac_cv_header_utmp_h = yes; then
+ echo "$as_me:$LINENO: checking for struct utmp" >&5
+echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
+if test "${rxvt_cv_struct_utmp+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
+#include <sys/types.h>
+#include <stdint.h>
+#include <utmp.h>
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
-test_array [0] = 0
-
+struct utmp ut;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_lo=0 ac_mid=0
- while :; do
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
+ rxvt_cv_struct_utmp=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+rxvt_cv_struct_utmp=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
+echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
+if test x$rxvt_cv_struct_utmp = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_STRUCT_UTMP 1
+_ACEOF
+
+fi
+
+
+echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
+echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
+if test "${rxvt_cv_struct_utmp_host+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <utmp.h>
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
-test_array [0] = 0
-
+struct utmp ut; ut.ut_host;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_hi=$ac_mid; break
+ rxvt_cv_struct_utmp_host=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_lo=`expr $ac_mid + 1`
- if test $ac_lo -le $ac_mid; then
- ac_lo= ac_hi=
- break
- fi
- ac_mid=`expr 2 '*' $ac_mid + 1`
+rxvt_cv_struct_utmp_host=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- done
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+fi
+echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
+echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
+if test x$rxvt_cv_struct_utmp_host = xyes; then
-cat >conftest.$ac_ext <<_ACEOF
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_UTMP_HOST 1
+_ACEOF
+
+fi
+
+echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
+echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
+if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
+#include <sys/types.h>
+#include <utmp.h>
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
-test_array [0] = 0
-
+struct utmp ut; ut.ut_pid;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_hi=-1 ac_mid=-1
- while :; do
- cat >conftest.$ac_ext <<_ACEOF
+ rxvt_cv_struct_utmp_pid=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+rxvt_cv_struct_utmp_pid=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
+echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
+if test x$rxvt_cv_struct_utmp_pid = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_UTMP_PID 1
+_ACEOF
+
+fi
+
+fi
+
+
+
+if test "${ac_cv_header_utmpx_h+set}" = set; then
+ echo "$as_me:$LINENO: checking for utmpx.h" >&5
+echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
+if test "${ac_cv_header_utmpx_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+fi
+echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
+echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
+else
+ # Is the header compilable?
+echo "$as_me:$LINENO: checking utmpx.h usability" >&5
+echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
-int
-main ()
-{
-static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
-test_array [0] = 0
-
- ;
- return 0;
-}
+#include <utmpx.h>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_lo=$ac_mid; break
+ ac_header_compiler=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_hi=`expr '(' $ac_mid ')' - 1`
- if test $ac_mid -le $ac_hi; then
- ac_lo= ac_hi=
- break
- fi
- ac_mid=`expr 2 '*' $ac_mid`
+ac_header_compiler=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
- done
+echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+echo "${ECHO_T}$ac_header_compiler" >&6
+
+# Is the header present?
+echo "$as_me:$LINENO: checking utmpx.h presence" >&5
+echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <utmpx.h>
+_ACEOF
+if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null; then
+ if test -s conftest.err; then
+ ac_cpp_err=$ac_cxx_preproc_warn_flag
+ ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
+ else
+ ac_cpp_err=
+ fi
+else
+ ac_cpp_err=yes
+fi
+if test -z "$ac_cpp_err"; then
+ ac_header_preproc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_lo= ac_hi=
+ ac_header_preproc=no
fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+rm -f conftest.err conftest.$ac_ext
+echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+echo "${ECHO_T}$ac_header_preproc" >&6
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
+ yes:no: )
+ { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
+echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
+echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
+echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
+echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
+echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
+echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
+echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
+ { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
+echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+## ------------------------------------------ ##
+## Report this to the AC_PACKAGE_NAME lists. ##
+## ------------------------------------------ ##
+_ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+echo "$as_me:$LINENO: checking for utmpx.h" >&5
+echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
+if test "${ac_cv_header_utmpx_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_header_utmpx_h=$ac_header_preproc
fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-# Binary search between lo and hi bounds.
-while test "x$ac_lo" != "x$ac_hi"; do
- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
+echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
+
+fi
+if test $ac_cv_header_utmpx_h = yes; then
+ echo "$as_me:$LINENO: checking for struct utmpx" >&5
+echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
+if test "${rxvt_cv_struct_utmpx+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-$ac_includes_default
+#include <sys/types.h>
+#include <utmpx.h>
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
-test_array [0] = 0
-
+struct utmpx ut;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- ac_hi=$ac_mid
+ rxvt_cv_struct_utmpx=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_lo=`expr '(' $ac_mid ')' + 1`
+rxvt_cv_struct_utmpx=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-done
-case $ac_lo in
-?*) ac_cv_sizeof_int_p=$ac_lo;;
-'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (int *), 77
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; } ;;
-esac
-else
- if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
-echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-long longval () { return (long) (sizeof (int *)); }
-unsigned long ulongval () { return (long) (sizeof (int *)); }
-#include <stdio.h>
-#include <stdlib.h>
-int
-main ()
-{
-
- FILE *f = fopen ("conftest.val", "w");
- if (! f)
- exit (1);
- if (((long) (sizeof (int *))) < 0)
- {
- long i = longval ();
- if (i != ((long) (sizeof (int *))))
- exit (1);
- fprintf (f, "%ld\n", i);
- }
- else
- {
- unsigned long i = ulongval ();
- if (i != ((long) (sizeof (int *))))
- exit (1);
- fprintf (f, "%lu\n", i);
- }
- exit (ferror (f) || fclose (f) != 0);
+fi
+echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
+echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
+if test x$rxvt_cv_struct_utmpx = xyes; then
- ;
- return 0;
-}
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_STRUCT_UTMPX 1
_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_sizeof_int_p=`cat conftest.val`
-else
- echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-( exit $ac_status )
-{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (int *), 77
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-fi
-rm -f conftest.val
-else
- ac_cv_sizeof_int_p=0
fi
-fi
-echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
-echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
-cat >>confdefs.h <<_ACEOF
-#define SIZEOF_INT_P $ac_cv_sizeof_int_p
-_ACEOF
-
-
-echo "$as_me:$LINENO: checking for int16_t" >&5
-echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
-if test "${rxvt_cv_int16_t+set}" = set; then
+echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
+echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
+if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <stdint.h>
+#include <sys/types.h>
+#include <utmpx.h>
int
main ()
{
-int16_t dummy;
+struct utmpx utx; utx.ut_host;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- rxvt_cv_int16_t=yes
+ rxvt_cv_struct_utmpx_host=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-if test $ac_cv_sizeof_char -ge 2; then
- rxvt_cv_int16_t=" char"
-else
- if test $ac_cv_sizeof_short -ge 2; then
- rxvt_cv_int16_t=" short"
- else
- if test $ac_cv_sizeof_int -ge 2; then
- rxvt_cv_int16_t=" int"
- else
- if test $ac_cv_sizeof_long -ge 2; then
- rxvt_cv_int16_t=" long"
- else
- if test $ac_cv_sizeof_long_long -ge 2; then
- rxvt_cv_int16_t=" long long"
- else
- rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
- fi
- fi
- fi
- fi
-fi
+rxvt_cv_struct_utmpx_host=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
-echo "${ECHO_T}$rxvt_cv_int16_t" >&6
-if test x"$rxvt_cv_int16_t" != xyes; then
- rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
-else
- if test x"" = x; then
- rxvt_int16_typedef="/* typedef short int16_t; */"
- else
- rxvt_int16_typedef="/* typedef short int16_t; */"
- fi
+echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
+echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
+if test x$rxvt_cv_struct_utmpx_host = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_UTMPX_HOST 1
+_ACEOF
+
fi
-echo "$as_me:$LINENO: checking for uint16_t" >&5
-echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
-if test "${rxvt_cv_uint16_t+set}" = set; then
+fi
+
+
+
+echo "$as_me:$LINENO: checking for struct lastlog" >&5
+echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
+if test "${rxvt_cv_struct_lastlog+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <stdint.h>
+#include <sys/types.h>
+#include <utmp.h>
+#ifdef HAVE_LASTLOG_H
+#include <lastlog.h>
+#endif
+
int
main ()
{
-uint16_t dummy;
+struct lastlog ll;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- rxvt_cv_uint16_t=yes
+ rxvt_cv_struct_lastlog=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-if test $ac_cv_sizeof_char -ge 2; then
- rxvt_cv_uint16_t="unsigned char"
-else
- if test $ac_cv_sizeof_short -ge 2; then
- rxvt_cv_uint16_t="unsigned short"
- else
- if test $ac_cv_sizeof_int -ge 2; then
- rxvt_cv_uint16_t="unsigned int"
- else
- if test $ac_cv_sizeof_long -ge 2; then
- rxvt_cv_uint16_t="unsigned long"
- else
- if test $ac_cv_sizeof_long_long -ge 2; then
- rxvt_cv_uint16_t="unsigned long long"
- else
- rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
- fi
- fi
- fi
- fi
-fi
+rxvt_cv_struct_lastlog=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
-echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
-if test x"$rxvt_cv_uint16_t" != xyes; then
- rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
-else
- if test x"unsigned" = x; then
- rxvt_uint16_typedef="/* typedef short uint16_t; */"
- else
- rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
- fi
+echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
+echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
+if test x$rxvt_cv_struct_lastlog = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_STRUCT_LASTLOG 1
+_ACEOF
+
fi
-echo "$as_me:$LINENO: checking for int32_t" >&5
-echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
-if test "${rxvt_cv_int32_t+set}" = set; then
+echo "$as_me:$LINENO: checking for struct lastlogx" >&5
+echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
+if test "${rxvt_cv_struct_lastlogx+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <stdint.h>
+#include <sys/types.h>
+#include <utmpx.h>
+#ifdef HAVE_LASTLOG_H
+#include <lastlog.h>
+#endif
+
int
main ()
{
-int32_t dummy;
+struct lastlogx ll;
;
return 0;
}
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- rxvt_cv_int32_t=yes
+ rxvt_cv_struct_lastlogx=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-if test $ac_cv_sizeof_char -ge 4; then
- rxvt_cv_int32_t=" char"
-else
- if test $ac_cv_sizeof_short -ge 4; then
- rxvt_cv_int32_t=" short"
- else
- if test $ac_cv_sizeof_int -ge 4; then
- rxvt_cv_int32_t=" int"
- else
- if test $ac_cv_sizeof_long -ge 4; then
- rxvt_cv_int32_t=" long"
- else
- if test $ac_cv_sizeof_long_long -ge 4; then
- rxvt_cv_int32_t=" long long"
- else
- rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
- fi
- fi
- fi
- fi
-fi
+rxvt_cv_struct_lastlogx=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
-echo "${ECHO_T}$rxvt_cv_int32_t" >&6
-if test x"$rxvt_cv_int32_t" != xyes; then
- rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
-else
- if test x"" = x; then
- rxvt_int32_typedef="/* typedef int int32_t; */"
- else
- rxvt_int32_typedef="/* typedef int int32_t; */"
- fi
+echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
+echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
+if test x$rxvt_cv_struct_lastlogx = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_STRUCT_LASTLOGX 1
+_ACEOF
+
fi
-echo "$as_me:$LINENO: checking for uint32_t" >&5
-echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
-if test "${rxvt_cv_uint32_t+set}" = set; then
+
+echo "$as_me:$LINENO: checking where utmp is located" >&5
+echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
+if test "${rxvt_cv_path_utmp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
+ if test "$cross_compiling" = yes; then
+ { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
+echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
+else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
-#include <stdint.h>
-int
-main ()
-{
-uint32_t dummy;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- rxvt_cv_uint32_t=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-if test $ac_cv_sizeof_char -ge 4; then
- rxvt_cv_uint32_t="unsigned char"
-else
- if test $ac_cv_sizeof_short -ge 4; then
- rxvt_cv_uint32_t="unsigned short"
- else
- if test $ac_cv_sizeof_int -ge 4; then
- rxvt_cv_uint32_t="unsigned int"
- else
- if test $ac_cv_sizeof_long -ge 4; then
- rxvt_cv_uint32_t="unsigned long"
- else
- if test $ac_cv_sizeof_long_long -ge 4; then
- rxvt_cv_uint32_t="unsigned long long"
- else
- rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
- fi
- fi
- fi
- fi
-fi
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
-echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
-if test x"$rxvt_cv_uint32_t" != xyes; then
- rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
-else
- if test x"unsigned" = x; then
- rxvt_uint32_typedef="/* typedef int uint32_t; */"
- else
- rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
- fi
-fi
-
-if test $ac_cv_sizeof_int_p -eq 8; then
- rxvt_intp_define="#define intp_t int64_t"
- rxvt_u_intp_define="#define u_intp_t u_int64_t"
-else
- if test $ac_cv_sizeof_int_p -eq 4; then
- rxvt_intp_define="#define intp_t int32_t"
- rxvt_u_intp_define="#define u_intp_t u_int32_t"
- else
- if test $ac_cv_sizeof_int_p -eq 2; then
- rxvt_intp_define="#define intp_t int16_t"
- rxvt_u_intp_define="#define u_intp_t u_int16_t"
- else
- rxvt_intp_define="#error set intp_t"
- rxvt_u_intp_define="#error set u_intp_t"
- fi
- fi
-fi
-
-
-
-echo "$as_me:$LINENO: checking return type of signal handlers" >&5
-echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
-if test "${ac_cv_type_signal+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <signal.h>
-#ifdef signal
-# undef signal
-#endif
-#ifdef __cplusplus
-extern "C" void (*signal (int, void (*)(int)))(int);
-#else
-void (*signal ()) ();
-#endif
-
-int
-main ()
-{
-int i;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_type_signal=void
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_type_signal=int
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
-echo "${ECHO_T}$ac_cv_type_signal" >&6
-
-cat >>confdefs.h <<_ACEOF
-#define RETSIGTYPE $ac_cv_type_signal
-_ACEOF
-
-
-
-case "$host_alias" in
- *ultrix) ac_cv_func_setsid='no' ;;
- *) break;;
-esac
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-for ac_func in \
- atexit \
- revoke \
- unsetenv \
- setutent \
- seteuid \
- setreuid \
- setsid \
- setpgrp \
- setpgid \
- openpty \
- _getpty \
- grantpt \
- unlockpt \
- isastream \
- on_exit \
- nanosleep \
- updwtmp \
- ttyslot \
-
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
-if eval "test \"\${$as_ac_var+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
-#define $ac_func innocuous_$ac_func
-
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef $ac_func
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char $ac_func ();
-/* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
-#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
-choke me
-#else
-char (*f) () = $ac_func;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != $ac_func;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- eval "$as_ac_var=yes"
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-eval "$as_ac_var=no"
-fi
-rm -f conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
-if test `eval echo '${'$as_ac_var'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-
-
-if test "${ac_cv_header_utmp_h+set}" = set; then
- echo "$as_me:$LINENO: checking for utmp.h" >&5
-echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
-if test "${ac_cv_header_utmp_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
-echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
-else
- # Is the header compilable?
-echo "$as_me:$LINENO: checking utmp.h usability" >&5
-echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <utmp.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_header_compiler=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6
-
-# Is the header present?
-echo "$as_me:$LINENO: checking utmp.h presence" >&5
-echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <utmp.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_cxx_preproc_warn_flag
- ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-rm -f conftest.err conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------------ ##
-## Report this to the AC_PACKAGE_NAME lists. ##
-## ------------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-echo "$as_me:$LINENO: checking for utmp.h" >&5
-echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
-if test "${ac_cv_header_utmp_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_header_utmp_h=$ac_header_preproc
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
-echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
-
-fi
-if test $ac_cv_header_utmp_h = yes; then
- echo "$as_me:$LINENO: checking for struct utmp" >&5
-echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
-if test "${rxvt_cv_struct_utmp+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <stdint.h>
-#include <utmp.h>
-int
-main ()
-{
-struct utmp ut;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- rxvt_cv_struct_utmp=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-rxvt_cv_struct_utmp=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
-echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
-if test x$rxvt_cv_struct_utmp = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_STRUCT_UTMP 1
-_ACEOF
-
-fi
-
-
-echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
-echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
-if test "${rxvt_cv_struct_utmp_host+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <utmp.h>
-int
-main ()
-{
-struct utmp ut; ut.ut_host;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- rxvt_cv_struct_utmp_host=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-rxvt_cv_struct_utmp_host=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
-echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
-if test x$rxvt_cv_struct_utmp_host = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_UTMP_HOST 1
-_ACEOF
-
-fi
-
-echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
-echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
-if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <utmp.h>
-int
-main ()
-{
-struct utmp ut; ut.ut_pid;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- rxvt_cv_struct_utmp_pid=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-rxvt_cv_struct_utmp_pid=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
-echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
-if test x$rxvt_cv_struct_utmp_pid = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_UTMP_PID 1
-_ACEOF
-
-fi
-
-fi
-
-
-
-if test "${ac_cv_header_utmpx_h+set}" = set; then
- echo "$as_me:$LINENO: checking for utmpx.h" >&5
-echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
-if test "${ac_cv_header_utmpx_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
-echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
-else
- # Is the header compilable?
-echo "$as_me:$LINENO: checking utmpx.h usability" >&5
-echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <utmpx.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_header_compiler=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6
-
-# Is the header present?
-echo "$as_me:$LINENO: checking utmpx.h presence" >&5
-echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <utmpx.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } >/dev/null; then
- if test -s conftest.err; then
- ac_cpp_err=$ac_cxx_preproc_warn_flag
- ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
- else
- ac_cpp_err=
- fi
-else
- ac_cpp_err=yes
-fi
-if test -z "$ac_cpp_err"; then
- ac_header_preproc=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_header_preproc=no
-fi
-rm -f conftest.err conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6
-
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
- yes:no: )
- { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
- ac_header_preproc=yes
- ;;
- no:yes:* )
- { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
- { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------------ ##
-## Report this to the AC_PACKAGE_NAME lists. ##
-## ------------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
-esac
-echo "$as_me:$LINENO: checking for utmpx.h" >&5
-echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
-if test "${ac_cv_header_utmpx_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_header_utmpx_h=$ac_header_preproc
-fi
-echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
-echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
-
-fi
-if test $ac_cv_header_utmpx_h = yes; then
- echo "$as_me:$LINENO: checking for struct utmpx" >&5
-echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
-if test "${rxvt_cv_struct_utmpx+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <utmpx.h>
-int
-main ()
-{
-struct utmpx ut;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- rxvt_cv_struct_utmpx=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-rxvt_cv_struct_utmpx=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
-echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
-if test x$rxvt_cv_struct_utmpx = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_STRUCT_UTMPX 1
-_ACEOF
-
-fi
-
-
-echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
-echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
-if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <utmpx.h>
-int
-main ()
-{
-struct utmpx utx; utx.ut_host;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- rxvt_cv_struct_utmpx_host=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-rxvt_cv_struct_utmpx_host=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
-echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
-if test x$rxvt_cv_struct_utmpx_host = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_UTMPX_HOST 1
-_ACEOF
-
-fi
-
-fi
-
-
-
-echo "$as_me:$LINENO: checking for struct lastlog" >&5
-echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
-if test "${rxvt_cv_struct_lastlog+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <utmp.h>
-#ifdef HAVE_LASTLOG_H
-#include <lastlog.h>
-#endif
-
-int
-main ()
-{
-struct lastlog ll;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- rxvt_cv_struct_lastlog=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-rxvt_cv_struct_lastlog=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
-echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
-if test x$rxvt_cv_struct_lastlog = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_STRUCT_LASTLOG 1
-_ACEOF
-
-fi
-
-echo "$as_me:$LINENO: checking for struct lastlogx" >&5
-echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
-if test "${rxvt_cv_struct_lastlogx+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <sys/types.h>
-#include <utmpx.h>
-#ifdef HAVE_LASTLOG_H
-#include <lastlog.h>
-#endif
-
-int
-main ()
-{
-struct lastlogx ll;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- rxvt_cv_struct_lastlogx=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-rxvt_cv_struct_lastlogx=no
-fi
-rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
-echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
-if test x$rxvt_cv_struct_lastlogx = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_STRUCT_LASTLOGX 1
-_ACEOF
-
-fi
-
-
-echo "$as_me:$LINENO: checking where utmp is located" >&5
-echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
-if test "${rxvt_cv_path_utmp+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test "$cross_compiling" = yes; then
- { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
-echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdio.h>
-#include <sys/types.h>
-#include <utmp.h>
-#include <errno.h>
-main()
+#include <stdio.h>
+#include <sys/types.h>
+#include <utmp.h>
+#include <errno.h>
+main()
{
char **u, *utmplist[] = {
"/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
- rxvt_cv_func_getpt=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-rxvt_cv_func_getpt=no
-fi
-rm -f conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
-echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
-if test x$rxvt_cv_func_getpt = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_GETPT 1
-_ACEOF
-
-fi
-
-echo "$as_me:$LINENO: checking for pty/tty type" >&5
-echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
-if test "${rxvt_cv_ptys+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test x$ac_cv_func_openpty = xyes; then
- rxvt_cv_ptys=OPENPTY
- else if test x$ac_cv_func__getpty = xyes; then
- rxvt_cv_ptys=SGI4
- else if test -c /dev/ttyp20; then
- rxvt_cv_ptys=SCO
- else if test -c /dev/ptym/clone; then
- rxvt_cv_ptys=HPUX
- else if test x$rxvt_cv_func_getpt = xyes; then
- rxvt_cv_ptys=GLIBC
- else if test -c /dev/ptc -a -c /dev/pts; then
- rxvt_cv_ptys=PTC
- else if test -c /dev/ptc -a -d /dev/pts; then
- rxvt_cv_ptys=PTC
- else if test -c /dev/ptmx -a -c /dev/pts/0; then
- rxvt_cv_ptys=STREAMS
- else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
- rxvt_cv_ptys=STREAMS
- else
- rxvt_cv_ptys=BSD
-fi
-fi
-fi
-fi
-fi
-fi
-fi
-fi
-fi
-
-fi
-echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
-echo "${ECHO_T}$rxvt_cv_ptys" >&6
-
-if test x$rxvt_cv_ptys = xOPENPTY; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PTYS_ARE_OPENPTY 1
-_ACEOF
-
-fi
-if test x$rxvt_cv_ptys = xSCO; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PTYS_ARE_NUMERIC 1
-_ACEOF
-
-fi
-if test x$rxvt_cv_ptys = xSTREAMS; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PTYS_ARE_PTMX 1
-_ACEOF
-
-fi
-if test x$rxvt_cv_ptys = xPTC; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PTYS_ARE_PTC 1
-_ACEOF
-
-fi
-if test x$rxvt_cv_ptys = xSGI4; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PTYS_ARE__GETPTY 1
-_ACEOF
-
-fi
-if test x$rxvt_cv_ptys = xCONVEX; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PTYS_ARE_GETPTY 1
-_ACEOF
-
-fi
-if test x$rxvt_cv_ptys = xGLIBC; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PTYS_ARE_GETPT 1
-_ACEOF
-
-fi
-if test x$rxvt_cv_ptys = xHPUX; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PTYS_ARE_CLONE 1
-_ACEOF
-
-fi
-if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PTYS_ARE_SEARCHED 1
-_ACEOF
-
-fi
-
-
-{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
-echo "$as_me: checking for pty ranges..." >&6;}
-ptys=`echo /dev/pty??`
-pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
-pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
-if test x$pch1 != x; then
-
-cat >>confdefs.h <<_ACEOF
-#define PTYCHAR1 "$pch1"
-_ACEOF
-
-fi
-if test x$pch2 != x; then
-
-cat >>confdefs.h <<_ACEOF
-#define PTYCHAR2 "$pch2"
-_ACEOF
-
-fi
-
-if test x$support_8bitctrls = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define EIGHT_BIT_CONTROLS 1
-_ACEOF
-
-fi
-if test x$support_fading = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define OFF_FOCUS_FADING 1
-_ACEOF
-
-fi
-if test x$support_tinting = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define TINTING 1
-_ACEOF
-
-fi
-if test x$support_inheritpixmap = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define TRANSPARENT 1
-_ACEOF
-
-fi
-if test x$support_keepscrolling = xno; then
-
-cat >>confdefs.h <<\_ACEOF
-#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
-_ACEOF
-
-fi
-if test x$support_selectionscrolling = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define SELECTION_SCROLLING 1
-_ACEOF
-
-fi
-if test x$support_menubar = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define MENUBAR 1
-_ACEOF
-
-fi
-if test x$support_frills = xno; then
-
-cat >>confdefs.h <<\_ACEOF
-#define NO_FRILLS 1
-_ACEOF
-
-fi
-if test x$support_linespace = xno; then
-
-cat >>confdefs.h <<\_ACEOF
-#define NO_LINESPACE 1
-_ACEOF
-
-fi
-if test x$support_24bit = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define PREFER_24BIT 1
-_ACEOF
-
-fi
-if test x$support_mousewheel = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define MOUSE_WHEEL 1
-_ACEOF
-
-fi
-if test x$support_mouseslipwheel = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define MOUSE_SLIP_WHEELING 1
-_ACEOF
-
-fi
-if test x$support_utmp = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define UTMP_SUPPORT 1
-_ACEOF
-
-fi
-if test x$support_wtmp = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define WTMP_SUPPORT 1
-_ACEOF
+ rxvt_cv_func_getpt=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+rxvt_cv_func_getpt=no
fi
-if test x$support_lastlog = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define LASTLOG_SUPPORT 1
-_ACEOF
-
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
-if test x$support_xim = xyes -o x$multichar_set = xyes; then
- if test x$rxvt_cv_func_xlocale = xyes; then
+echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
+echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
+if test x$rxvt_cv_func_getpt = xyes; then
cat >>confdefs.h <<\_ACEOF
-#define USE_XIM 1
+#define HAVE_GETPT 1
_ACEOF
- fi
fi
-if test x$support_xpm = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define XPM_BACKGROUND 1
-_ACEOF
+echo "$as_me:$LINENO: checking for pty/tty type" >&5
+echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
+if test "${rxvt_cv_ptys+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ if test x$ac_cv_func_openpty = xyes; then
+ rxvt_cv_ptys=OPENPTY
+ else if test x$ac_cv_func__getpty = xyes; then
+ rxvt_cv_ptys=SGI4
+ else if test -c /dev/ttyp20; then
+ rxvt_cv_ptys=SCO
+ else if test -c /dev/ptym/clone; then
+ rxvt_cv_ptys=HPUX
+ else if test x$rxvt_cv_func_getpt = xyes; then
+ rxvt_cv_ptys=GLIBC
+ else if test -c /dev/ptc -a -c /dev/pts; then
+ rxvt_cv_ptys=PTC
+ else if test -c /dev/ptc -a -d /dev/pts; then
+ rxvt_cv_ptys=PTC
+ else if test -c /dev/ptmx -a -c /dev/pts/0; then
+ rxvt_cv_ptys=STREAMS
+ else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
+ rxvt_cv_ptys=STREAMS
+ else
+ rxvt_cv_ptys=BSD
+fi
+fi
+fi
+fi
+fi
+fi
fi
-if test x$support_scroll_rxvt = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define RXVT_SCROLLBAR 1
-_ACEOF
-
- scrolltypes="rxvt"
fi
-if test x$support_scroll_next = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define NEXT_SCROLLBAR 1
-_ACEOF
-
- scrolltypes="$scrolltypes next"
fi
-if test x$support_scroll_xterm = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define XTERM_SCROLLBAR 1
-_ACEOF
- scrolltypes="$scrolltypes xterm"
fi
-if test x$support_scroll_plain = xyes; then
+echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
+echo "${ECHO_T}$rxvt_cv_ptys" >&6
+
+if test x$rxvt_cv_ptys = xOPENPTY; then
cat >>confdefs.h <<\_ACEOF
-#define PLAIN_SCROLLBAR 1
+#define PTYS_ARE_OPENPTY 1
_ACEOF
- scrolltypes="$scrolltypes plain"
fi
-if test x$support_pointer_blank = xyes; then
+if test x$rxvt_cv_ptys = xSCO; then
cat >>confdefs.h <<\_ACEOF
-#define POINTER_BLANK 1
+#define PTYS_ARE_NUMERIC 1
_ACEOF
fi
-if test x$support_cursor_blink = xyes; then
+if test x$rxvt_cv_ptys = xSTREAMS; then
cat >>confdefs.h <<\_ACEOF
-#define CURSOR_BLINK 1
+#define PTYS_ARE_PTMX 1
_ACEOF
fi
-if test x$support_text_blink = xyes; then
+if test x$rxvt_cv_ptys = xPTC; then
cat >>confdefs.h <<\_ACEOF
-#define TEXT_BLINK 1
+#define PTYS_ARE_PTC 1
_ACEOF
fi
-if test x$support_unicode3 = xyes; then
+if test x$rxvt_cv_ptys = xSGI4; then
cat >>confdefs.h <<\_ACEOF
-#define UNICODE_3 1
+#define PTYS_ARE__GETPTY 1
_ACEOF
fi
-if test x$support_combining = xyes; then
+if test x$rxvt_cv_ptys = xCONVEX; then
cat >>confdefs.h <<\_ACEOF
-#define ENABLE_COMBINING 1
+#define PTYS_ARE_GETPTY 1
_ACEOF
fi
-if test x$codesets = xall; then
- codesets=jp,jp-ext,kr,cn,cn-ext
-fi
-for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
+if test x$rxvt_cv_ptys = xGLIBC; then
cat >>confdefs.h <<\_ACEOF
-#define ENCODING_EU 1
+#define PTYS_ARE_GETPT 1
_ACEOF
+fi
+if test x$rxvt_cv_ptys = xHPUX; then
cat >>confdefs.h <<\_ACEOF
-#define ENCODING_VN 1
-_ACEOF
-
- case "$codeset" in
- JP )
-cat >>confdefs.h <<\_ACEOF
-#define ENCODING_JP 1
-_ACEOF
- ;;
- JP_EXT )
-cat >>confdefs.h <<\_ACEOF
-#define ENCODING_JP_EXT 1
-_ACEOF
- ;;
- KR )
-cat >>confdefs.h <<\_ACEOF
-#define ENCODING_KR 1
-_ACEOF
- ;;
- CN )
-cat >>confdefs.h <<\_ACEOF
-#define ENCODING_CN 1
-_ACEOF
- ;;
- CN_EXT )
-cat >>confdefs.h <<\_ACEOF
-#define ENCODING_CN_EXT 1
+#define PTYS_ARE_CLONE 1
_ACEOF
- ;;
- esac
-done
-
-
-CFLAGS=${CFLAGS--O}
-LDFLAGS=${LDFLAGS--O}
-CPPFLAGS="$CPPFLAGS"
-
-
-
-
-
-
-
-if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
- DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
- LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
- X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
- X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
- XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
fi
-
-
-
-
-
-if test x$support_addstrings = xno; then
+if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
cat >>confdefs.h <<\_ACEOF
-#define NO_STRINGS 1
+#define PTYS_ARE_SEARCHED 1
_ACEOF
fi
-MCOMMON=./autoconf/Make.common
+{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
+echo "$as_me: checking for pty ranges..." >&6;}
+ptys=`echo /dev/pty??`
+pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
+pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
+if test x$pch1 != x; then
-test "$program_prefix" != NONE &&
- program_transform_name="s,^,$program_prefix,;$program_transform_name"
-# Use a double $ so make ignores it.
-test "$program_suffix" != NONE &&
- program_transform_name="s,\$,$program_suffix,;$program_transform_name"
-# Double any \ or $. echo might interpret backslashes.
-# By default was `s,x,x', remove it if useless.
-cat <<\_ACEOF >conftest.sed
-s/[\\$]/&&/g;s/;s,x,x,$//
+cat >>confdefs.h <<_ACEOF
+#define PTYCHAR1 "$pch1"
_ACEOF
-program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
-rm conftest.sed
-
-
-
-
-if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
- include_stdint_h="#include <stdint.h>"
-else
- include_stdint_h="/* #include <stdint.h> */"
-fi
-if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
- include_stdarg_h="#include <cstdarg>"
-else
- include_stdarg_h="/* #include <cstdarg> */"
-fi
-if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
- include_stdlib_h="#include <cstdlib>"
-else
- include_stdlib_h="/* #include <cstdlib> */"
-fi
-if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
- include_unistd_h="#include <unistd.h>"
-else
- include_unistd_h="/* #include <unistd.h> */"
-fi
-if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
- include_string_h="#include <cstring>"
-else
- include_string_h="/* #include <cstring> */"
-fi
-if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
- include_fcntl_h="#include <fcntl.h>"
-else
- include_fcntl_h="/* #include <fcntl.h> */"
-fi
-if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
- include_util_h="#include <util.h>"
-else
- include_util_h="/* #include <util.h> */"
-fi
-if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
- include_assert_h="#include <assert.h>"
-else
- include_assert_h="/* #include <assert.h> */"
-fi
-if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
- include_sys_ioctl_h="#include <sys/ioctl.h>"
-else
- include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
-fi
-if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
- include_sys_select_h="#include <sys/select.h>"
-else
- include_sys_select_h="/* #include <sys/select.h> */"
fi
-if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
- include_sys_strredir_h="#include <sys/strredir.h>"
-else
- include_sys_strredir_h="/* #include <sys/strredir.h> */"
-fi
-if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
- include_sys_time_h="#include <sys/time.h>"
-else
- include_sys_time_h="/* #include <sys/time.h> */"
-fi
-if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
- include_time_h="#include <time.h>"
-else
- include_time_h="/* #include <time.h> */"
+if test x$pch2 != x; then
+
+cat >>confdefs.h <<_ACEOF
+#define PTYCHAR2 "$pch2"
+_ACEOF
+
fi
if test x$support_xft = xyes; then
else
eval "$as_ac_Header=\$ac_header_preproc"
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+
+fi
+if test `eval echo '${'$as_ac_Header'}'` = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+else
+ support_xft=no
+fi
+
+done
+
+
+echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
+echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
+if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lXft $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any gcc2 internal prototype to avoid an error. */
+#ifdef __cplusplus
+extern "C"
+#endif
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char XftDrawString32 ();
+int
+main ()
+{
+XftDrawString32 ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest$ac_exeext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_lib_Xft_XftDrawString32=yes
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_lib_Xft_XftDrawString32=no
+fi
+rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
+echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
+if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBXFT 1
+_ACEOF
+
+ LIBS="-lXft $LIBS"
+
+else
+ support_xft=no
+fi
+
+
+ if test x$support_xft = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define XFT 1
+_ACEOF
+
+ fi
+fi
+if test x$support_styles = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define ENABLE_STYLES 1
+_ACEOF
+
+fi
+if test x$support_iso14755 = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define ISO_14755 1
+_ACEOF
+
+fi
+if test x$support_8bitctrls = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define EIGHT_BIT_CONTROLS 1
+_ACEOF
+
+fi
+if test x$support_fading = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define OFF_FOCUS_FADING 1
+_ACEOF
+
+fi
+if test x$support_tinting = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define TINTING 1
+_ACEOF
+
+fi
+if test x$support_inheritpixmap = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define TRANSPARENT 1
+_ACEOF
+
+fi
+if test x$support_keepscrolling = xno; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
+_ACEOF
+
+fi
+if test x$support_selectionscrolling = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define SELECTION_SCROLLING 1
+_ACEOF
+
+fi
+if test x$support_menubar = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define MENUBAR 1
+_ACEOF
+
+fi
+if test x$support_frills = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define ENABLE_FRILLS 1
+_ACEOF
+
+fi
+if test x$support_24bit = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define PREFER_24BIT 1
+_ACEOF
+
+fi
+if test x$support_mousewheel = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define MOUSE_WHEEL 1
+_ACEOF
+
+fi
+if test x$support_mouseslipwheel = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define MOUSE_SLIP_WHEELING 1
+_ACEOF
+
+fi
+if test x$support_utmp = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define UTMP_SUPPORT 1
+_ACEOF
+
+fi
+if test x$support_wtmp = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define WTMP_SUPPORT 1
+_ACEOF
+
+fi
+if test x$support_lastlog = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define LASTLOG_SUPPORT 1
+_ACEOF
+
+fi
+if test x$support_xim = xyes -o x$multichar_set = xyes; then
+ if test x$rxvt_cv_func_xlocale = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_XIM 1
+_ACEOF
+
+ fi
+fi
+if test x$support_xpm = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define XPM_BACKGROUND 1
+_ACEOF
+
+fi
+if test x$support_scroll_rxvt = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define RXVT_SCROLLBAR 1
+_ACEOF
+
+ scrolltypes="rxvt"
+fi
+if test x$support_scroll_next = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NEXT_SCROLLBAR 1
+_ACEOF
+
+ scrolltypes="$scrolltypes next"
+fi
+if test x$support_scroll_xterm = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define XTERM_SCROLLBAR 1
+_ACEOF
+
+ scrolltypes="$scrolltypes xterm"
+fi
+if test x$support_scroll_plain = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define PLAIN_SCROLLBAR 1
+_ACEOF
+
+ scrolltypes="$scrolltypes plain"
+fi
+if test x$support_pointer_blank = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define POINTER_BLANK 1
+_ACEOF
fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+if test x$support_cursor_blink = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define CURSOR_BLINK 1
_ACEOF
-else
- support_xft=no
fi
+if test x$support_text_blink = xyes; then
-done
+cat >>confdefs.h <<\_ACEOF
+#define TEXT_BLINK 1
+_ACEOF
+fi
+if test x$support_unicode3 = xyes; then
-echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
-echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
-if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lXft $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
+cat >>confdefs.h <<\_ACEOF
+#define UNICODE_3 1
_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char XftDrawString32 ();
-int
-main ()
-{
-XftDrawString32 ();
- ;
- return 0;
-}
+fi
+if test x$support_combining = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define ENABLE_COMBINING 1
_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_Xft_XftDrawString32=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_lib_Xft_XftDrawString32=no
fi
-rm -f conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
+if test x$codesets = xall; then
+ codesets=jp,jp-ext,kr,zh,zh-ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
-echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
-if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBXFT 1
+
+cat >>confdefs.h <<\_ACEOF
+#define ENCODING_EU 1
_ACEOF
- LIBS="-lXft $LIBS"
-else
- support_xft=no
+cat >>confdefs.h <<\_ACEOF
+#define ENCODING_VN 1
+_ACEOF
+
+for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
+ case "$codeset" in
+ JP )
+cat >>confdefs.h <<\_ACEOF
+#define ENCODING_JP 1
+_ACEOF
+ ;;
+ JP_EXT )
+cat >>confdefs.h <<\_ACEOF
+#define ENCODING_JP_EXT 1
+_ACEOF
+ ;;
+ KR )
+cat >>confdefs.h <<\_ACEOF
+#define ENCODING_KR 1
+_ACEOF
+ ;;
+ ZH )
+cat >>confdefs.h <<\_ACEOF
+#define ENCODING_ZH 1
+_ACEOF
+ ;;
+ ZH_EXT )
+cat >>confdefs.h <<\_ACEOF
+#define ENCODING_ZH_EXT 1
+_ACEOF
+ ;;
+ esac
+done
+
+
+CFLAGS=${CFLAGS--O}
+LDFLAGS=${LDFLAGS--O}
+
+CPPFLAGS="$CPPFLAGS"
+
+
+
+
+
+
+
+if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
+ DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
+ LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
+ X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
+ X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
+ XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
fi
- if test x$support_xft = xyes; then
+
+
+
+if test x$support_addstrings = xno; then
cat >>confdefs.h <<\_ACEOF
-#define XFT 1
+#define NO_STRINGS 1
_ACEOF
- fi
fi
- ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile"
+MCOMMON=./autoconf/Make.common
+
+
+test "$program_prefix" != NONE &&
+ program_transform_name="s,^,$program_prefix,;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+ program_transform_name="s,\$,$program_suffix,;$program_transform_name"
+# Double any \ or $. echo might interpret backslashes.
+# By default was `s,x,x', remove it if useless.
+cat <<\_ACEOF >conftest.sed
+s/[\\$]/&&/g;s/;s,x,x,$//
+_ACEOF
+program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
+rm conftest.sed
+
+
+
+
+
+if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_stdint_h="#include <stdint.h>"
+else
+ include_stdint_h="/* #include <stdint.h> */"
+fi
+if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_stdarg_h="#include <cstdarg>"
+else
+ include_stdarg_h="/* #include <cstdarg> */"
+fi
+if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_stdlib_h="#include <cstdlib>"
+else
+ include_stdlib_h="/* #include <cstdlib> */"
+fi
+if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_unistd_h="#include <unistd.h>"
+else
+ include_unistd_h="/* #include <unistd.h> */"
+fi
+if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_string_h="#include <cstring>"
+else
+ include_string_h="/* #include <cstring> */"
+fi
+if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_fcntl_h="#include <fcntl.h>"
+else
+ include_fcntl_h="/* #include <fcntl.h> */"
+fi
+if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_util_h="#include <util.h>"
+else
+ include_util_h="/* #include <util.h> */"
+fi
+if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_assert_h="#include <assert.h>"
+else
+ include_assert_h="/* #include <assert.h> */"
+fi
+if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
+ include_sys_ioctl_h="#include <sys/ioctl.h>"
+else
+ include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
+fi
+if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_sys_select_h="#include <sys/select.h>"
+else
+ include_sys_select_h="/* #include <sys/select.h> */"
+fi
+if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_sys_strredir_h="#include <sys/strredir.h>"
+else
+ include_sys_strredir_h="/* #include <sys/strredir.h> */"
+fi
+if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
+ include_sys_time_h="#include <sys/time.h>"
+else
+ include_sys_time_h="/* #include <sys/time.h> */"
+fi
+if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
+ include_time_h="#include <time.h>"
+else
+ include_time_h="/* #include <time.h> */"
+fi
+
+ ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
- "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
"src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
- "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
s,@ECHO_N@,$ECHO_N,;t t
s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
+s,@build@,$build,;t t
+s,@build_cpu@,$build_cpu,;t t
+s,@build_vendor@,$build_vendor,;t t
+s,@build_os@,$build_os,;t t
+s,@host@,$host,;t t
+s,@host_cpu@,$host_cpu,;t t
+s,@host_vendor@,$host_vendor,;t t
+s,@host_os@,$host_os,;t t
s,@VERSION@,$VERSION,;t t
s,@DATE@,$DATE,;t t
s,@LSMDATE@,$LSMDATE,;t t
s,@LINKER@,$LINKER,;t t
s,@CXXCPP@,$CXXCPP,;t t
s,@EGREP@,$EGREP,;t t
-s,@build@,$build,;t t
-s,@build_cpu@,$build_cpu,;t t
-s,@build_vendor@,$build_vendor,;t t
-s,@build_os@,$build_os,;t t
-s,@host@,$host,;t t
-s,@host_cpu@,$host_cpu,;t t
-s,@host_vendor@,$host_vendor,;t t
-s,@host_os@,$host_os,;t t
s,@LN_S@,$LN_S,;t t
s,@ECHO@,$ECHO,;t t
s,@RANLIB@,$RANLIB,;t t
s,@SED@,$SED,;t t
s,@CMP@,$CMP,;t t
s,@TBL@,$TBL,;t t
+s,@TIC@,$TIC,;t t
s,@X_CFLAGS@,$X_CFLAGS,;t t
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
s,@X_LIBS@,$X_LIBS,;t t