… | |
… | |
307 | #endif |
307 | #endif |
308 | #if HAVE_UNISTD_H |
308 | #if HAVE_UNISTD_H |
309 | # include <unistd.h> |
309 | # include <unistd.h> |
310 | #endif" |
310 | #endif" |
311 | |
311 | |
312 | 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 EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC CXXCPP 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 PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O 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' |
312 | 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 EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV CP LN SED ECHO CMP TIC CXXCPP 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 PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O 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' |
313 | ac_subst_files='' |
313 | ac_subst_files='' |
314 | |
314 | |
315 | # Initialize some variables set by options. |
315 | # Initialize some variables set by options. |
316 | ac_init_help= |
316 | ac_init_help= |
317 | ac_init_version=false |
317 | ac_init_version=false |
… | |
… | |
870 | NOTE: automatically enabled with --enable-shared |
870 | NOTE: automatically enabled with --enable-shared |
871 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
871 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
872 | --enable-combining enable composition of base and combining characters |
872 | --enable-combining enable composition of base and combining characters |
873 | --enable-xft enable xft support on systems that have it |
873 | --enable-xft enable xft support on systems that have it |
874 | --enable-font-styles enable bold and italic support |
874 | --enable-font-styles enable bold and italic support |
875 | --enable-utmp enable utmp (utmpx) support |
|
|
876 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
877 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
|
|
878 | --enable-xpm-background enable XPM background pixmaps |
875 | --enable-xpm-background enable XPM background pixmaps |
879 | --enable-transparency enable transparent backgrounds |
876 | --enable-transparency enable transparent backgrounds |
880 | --enable-tinting enable tinting of transparent bg |
877 | --enable-tinting enable tinting of transparent bg |
881 | --enable-fading enable colors fading when off focus |
878 | --enable-fading enable colors fading when off focus |
882 | --enable-rxvt-scroll enable rxvt style scrollbar |
879 | --enable-rxvt-scroll enable rxvt style scrollbar |
883 | --enable-next-scroll enable NeXT style scrollbar |
880 | --enable-next-scroll enable NeXT style scrollbar |
884 | --enable-xterm-scroll enable Xterm style scrollbar |
881 | --enable-xterm-scroll enable Xterm style scrollbar |
885 | --enable-perl enable embedded perl interpreter |
882 | --enable-perl enable embedded perl interpreter |
886 | --enable-plain-scroll enable plain style scrollbar |
883 | --enable-plain-scroll enable plain style scrollbar |
887 | --enable-xim XIM (X Input Method) protocol support |
884 | --enable-xim XIM (X Input Method) protocol support |
888 | --enable-ttygid enable tty setting to group named "tty" |
|
|
889 | --disable-backspace-key disable handling of the backspace key |
885 | --disable-backspace-key disable handling of the backspace key |
890 | --disable-delete-key disable handling of the delete key |
886 | --disable-delete-key disable handling of the delete key |
891 | --disable-resources disable all resource checking |
887 | --disable-resources disable all resource checking |
892 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
888 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
893 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
889 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
894 | --disable-swapscreen disable swap screen support |
890 | --disable-swapscreen disable swap screen support |
895 | --enable-iso14755 enable support for extended ISO 14755 modes |
891 | --enable-iso14755 enable support for extended ISO 14755 modes |
896 | --enable-frills enable support for rarely used features |
892 | --enable-frills enable support for rarely used features |
897 | --enable-24bit enable support for using 24bit visuals if available |
|
|
898 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
893 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
899 | --enable-selectionscrolling enable scrolling during selections |
894 | --enable-selectionscrolling enable scrolling during selections |
900 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
895 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
901 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
896 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
902 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
|
|
903 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
|
|
904 | NOTE: enable only one malloc package |
|
|
905 | --enable-smart-resize enable smart growth/shrink behaviour |
897 | --enable-smart-resize enable smart growth/shrink behaviour |
906 | --enable-text-blink enable blinking text |
898 | --enable-text-blink enable blinking text |
907 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
899 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
|
|
900 | --enable-utmp enable utmp (utmpx) support |
|
|
901 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
|
|
902 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
908 | |
903 | |
909 | Optional Packages: |
904 | Optional Packages: |
910 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
905 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
911 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
906 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
912 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
907 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
… | |
… | |
3302 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3297 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3303 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3298 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3304 | |
3299 | |
3305 | if test -z "$orig_CXXFLAGS"; then |
3300 | if test -z "$orig_CXXFLAGS"; then |
3306 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3301 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3307 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3302 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3308 | cat >conftest.$ac_ext <<_ACEOF |
3303 | cat >conftest.$ac_ext <<_ACEOF |
3309 | /* confdefs.h. */ |
3304 | /* confdefs.h. */ |
3310 | _ACEOF |
3305 | _ACEOF |
3311 | cat confdefs.h >>conftest.$ac_ext |
3306 | cat confdefs.h >>conftest.$ac_ext |
3312 | cat >>conftest.$ac_ext <<_ACEOF |
3307 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
4083 | fi |
4078 | fi |
4084 | rm -f conftest.err conftest.$ac_objext \ |
4079 | rm -f conftest.err conftest.$ac_objext \ |
4085 | conftest$ac_exeext conftest.$ac_ext |
4080 | conftest$ac_exeext conftest.$ac_ext |
4086 | |
4081 | |
4087 | |
4082 | |
4088 | MALLOC_TYPE=S |
|
|
4089 | |
|
|
4090 | support_frills=yes |
4083 | support_frills=yes |
4091 | support_inheritpixmap=yes |
4084 | support_inheritpixmap=yes |
4092 | support_tinting=yes |
4085 | support_tinting=yes |
4093 | support_fading=yes |
4086 | support_fading=yes |
4094 | support_keepscrolling=yes |
4087 | support_keepscrolling=yes |
4095 | support_selectionscrolling=yes |
4088 | support_selectionscrolling=yes |
4096 | support_mousewheel=yes |
4089 | support_mousewheel=yes |
4097 | support_mouseslipwheel=yes |
4090 | support_mouseslipwheel=yes |
4098 | support_utmp=yes |
|
|
4099 | support_wtmp=yes |
|
|
4100 | support_lastlog=yes |
|
|
4101 | support_text_blink=yes |
4091 | support_text_blink=yes |
4102 | support_pointer_blank=yes |
4092 | support_pointer_blank=yes |
4103 | support_scroll_rxvt=yes |
4093 | support_scroll_rxvt=yes |
4104 | support_scroll_next=yes |
4094 | support_scroll_next=yes |
4105 | support_scroll_xterm=yes |
4095 | support_scroll_xterm=yes |
… | |
… | |
4129 | # Check whether --enable-everything or --disable-everything was given. |
4119 | # Check whether --enable-everything or --disable-everything was given. |
4130 | if test "${enable_everything+set}" = set; then |
4120 | if test "${enable_everything+set}" = set; then |
4131 | enableval="$enable_everything" |
4121 | enableval="$enable_everything" |
4132 | |
4122 | |
4133 | if test x$enableval = xno; then |
4123 | if test x$enableval = xno; then |
4134 | support_24bit=no |
|
|
4135 | support_frills=no |
4124 | support_frills=no |
4136 | support_inheritpixmap=no |
4125 | support_inheritpixmap=no |
4137 | support_tinting=no |
4126 | support_tinting=no |
4138 | support_fading=no |
4127 | support_fading=no |
4139 | support_keepscrolling=no |
4128 | support_keepscrolling=no |
… | |
… | |
4159 | support_styles=no |
4148 | support_styles=no |
4160 | support_perl=no |
4149 | support_perl=no |
4161 | codesets= |
4150 | codesets= |
4162 | fi |
4151 | fi |
4163 | if test x$enableval = xyes; then |
4152 | if test x$enableval = xyes; then |
4164 | support_24bit=yes |
|
|
4165 | support_frills=yes |
4153 | support_frills=yes |
4166 | support_inheritpixmap=yes |
4154 | support_inheritpixmap=yes |
4167 | support_tinting=yes |
4155 | support_tinting=yes |
4168 | support_fading=yes |
4156 | support_fading=yes |
4169 | support_keepscrolling=yes |
4157 | support_keepscrolling=yes |
… | |
… | |
4223 | if test x$enableval = xyes -o x$enableval = xno; then |
4211 | if test x$enableval = xyes -o x$enableval = xno; then |
4224 | support_styles=$enableval |
4212 | support_styles=$enableval |
4225 | fi |
4213 | fi |
4226 | fi; |
4214 | fi; |
4227 | |
4215 | |
4228 | # Check whether --enable-utmp or --disable-utmp was given. |
|
|
4229 | if test "${enable_utmp+set}" = set; then |
|
|
4230 | enableval="$enable_utmp" |
|
|
4231 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4232 | support_utmp=$enableval |
|
|
4233 | fi |
|
|
4234 | fi; |
|
|
4235 | |
|
|
4236 | # Check whether --enable-wtmp or --disable-wtmp was given. |
|
|
4237 | if test "${enable_wtmp+set}" = set; then |
|
|
4238 | enableval="$enable_wtmp" |
|
|
4239 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4240 | support_wtmp=$enableval |
|
|
4241 | fi |
|
|
4242 | fi; |
|
|
4243 | |
|
|
4244 | # Check whether --enable-lastlog or --disable-lastlog was given. |
|
|
4245 | if test "${enable_lastlog+set}" = set; then |
|
|
4246 | enableval="$enable_lastlog" |
|
|
4247 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4248 | support_lastlog=$enableval |
|
|
4249 | fi |
|
|
4250 | fi; |
|
|
4251 | |
|
|
4252 | # Check whether --enable-xpm-background or --disable-xpm-background was given. |
4216 | # Check whether --enable-xpm-background or --disable-xpm-background was given. |
4253 | if test "${enable_xpm_background+set}" = set; then |
4217 | if test "${enable_xpm_background+set}" = set; then |
4254 | enableval="$enable_xpm_background" |
4218 | enableval="$enable_xpm_background" |
4255 | if test x$enableval = xyes -o x$enableval = xno; then |
4219 | if test x$enableval = xyes -o x$enableval = xno; then |
4256 | support_xpm=$enableval |
4220 | support_xpm=$enableval |
… | |
… | |
4335 | if test x$enableval = xyes -o x$enableval = xno; then |
4299 | if test x$enableval = xyes -o x$enableval = xno; then |
4336 | support_xim=$enableval |
4300 | support_xim=$enableval |
4337 | fi |
4301 | fi |
4338 | fi; |
4302 | fi; |
4339 | |
4303 | |
4340 | # Check whether --enable-ttygid or --disable-ttygid was given. |
|
|
4341 | if test "${enable_ttygid+set}" = set; then |
|
|
4342 | enableval="$enable_ttygid" |
|
|
4343 | if test x$enableval = xyes; then |
|
|
4344 | |
|
|
4345 | cat >>confdefs.h <<\_ACEOF |
|
|
4346 | #define TTY_GID_SUPPORT 1 |
|
|
4347 | _ACEOF |
|
|
4348 | |
|
|
4349 | fi |
|
|
4350 | fi; |
|
|
4351 | |
|
|
4352 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
4304 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
4353 | if test "${enable_backspace_key+set}" = set; then |
4305 | if test "${enable_backspace_key+set}" = set; then |
4354 | enableval="$enable_backspace_key" |
4306 | enableval="$enable_backspace_key" |
4355 | if test x$enableval = xno; then |
4307 | if test x$enableval = xno; then |
4356 | |
4308 | |
… | |
… | |
4480 | if test x$enableval = xyes -o x$enableval = xno; then |
4432 | if test x$enableval = xyes -o x$enableval = xno; then |
4481 | support_frills=$enableval |
4433 | support_frills=$enableval |
4482 | fi |
4434 | fi |
4483 | fi; |
4435 | fi; |
4484 | |
4436 | |
4485 | # Check whether --enable-24bit or --disable-24bit was given. |
|
|
4486 | if test "${enable_24bit+set}" = set; then |
|
|
4487 | enableval="$enable_24bit" |
|
|
4488 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4489 | support_24bit=$enableval |
|
|
4490 | fi |
|
|
4491 | fi; |
|
|
4492 | |
|
|
4493 | # Check whether --enable-keepscrolling or --disable-keepscrolling was given. |
4437 | # Check whether --enable-keepscrolling or --disable-keepscrolling was given. |
4494 | if test "${enable_keepscrolling+set}" = set; then |
4438 | if test "${enable_keepscrolling+set}" = set; then |
4495 | enableval="$enable_keepscrolling" |
4439 | enableval="$enable_keepscrolling" |
4496 | if test x$enableval = xyes -o x$enableval = xno; then |
4440 | if test x$enableval = xyes -o x$enableval = xno; then |
4497 | support_keepscrolling=$enableval |
4441 | support_keepscrolling=$enableval |
… | |
… | |
4517 | # Check whether --enable-slipwheeling or --disable-slipwheeling was given. |
4461 | # Check whether --enable-slipwheeling or --disable-slipwheeling was given. |
4518 | if test "${enable_slipwheeling+set}" = set; then |
4462 | if test "${enable_slipwheeling+set}" = set; then |
4519 | enableval="$enable_slipwheeling" |
4463 | enableval="$enable_slipwheeling" |
4520 | if test x$enableval = xyes -o x$enableval = xno; then |
4464 | if test x$enableval = xyes -o x$enableval = xno; then |
4521 | support_mouseslipwheel=$enableval |
4465 | support_mouseslipwheel=$enableval |
4522 | fi |
|
|
4523 | fi; |
|
|
4524 | |
|
|
4525 | # Check whether --enable-dmalloc or --disable-dmalloc was given. |
|
|
4526 | if test "${enable_dmalloc+set}" = set; then |
|
|
4527 | enableval="$enable_dmalloc" |
|
|
4528 | if test x$enableval = xyes; then |
|
|
4529 | MALLOC_TYPE=G |
|
|
4530 | DEBUG=-DDEBUG_MALLOC |
|
|
4531 | DLIB="-L/usr/local/lib -ldmalloc" |
|
|
4532 | DINCLUDE=-I/usr/local/include |
|
|
4533 | fi |
|
|
4534 | fi; |
|
|
4535 | |
|
|
4536 | # Check whether --enable-dlmalloc or --disable-dlmalloc was given. |
|
|
4537 | if test "${enable_dlmalloc+set}" = set; then |
|
|
4538 | enableval="$enable_dlmalloc" |
|
|
4539 | if test x$enableval = xyes; then |
|
|
4540 | MALLOC_TYPE=D |
|
|
4541 | DEBUG= |
|
|
4542 | DLIB="-L/usr/local/lib -ldlmalloc" |
|
|
4543 | DINCLUDE= |
|
|
4544 | fi |
4466 | fi |
4545 | fi; |
4467 | fi; |
4546 | |
4468 | |
4547 | # Check whether --enable-smart-resize or --disable-smart-resize was given. |
4469 | # Check whether --enable-smart-resize or --disable-smart-resize was given. |
4548 | if test "${enable_smart_resize+set}" = set; then |
4470 | if test "${enable_smart_resize+set}" = set; then |
… | |
… | |
4632 | MV=$ac_cv_path_MV |
4554 | MV=$ac_cv_path_MV |
4633 | |
4555 | |
4634 | if test -n "$MV"; then |
4556 | if test -n "$MV"; then |
4635 | echo "$as_me:$LINENO: result: $MV" >&5 |
4557 | echo "$as_me:$LINENO: result: $MV" >&5 |
4636 | echo "${ECHO_T}$MV" >&6 |
4558 | echo "${ECHO_T}$MV" >&6 |
4637 | else |
|
|
4638 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4639 | echo "${ECHO_T}no" >&6 |
|
|
4640 | fi |
|
|
4641 | |
|
|
4642 | # Extract the first word of "rm", so it can be a program name with args. |
|
|
4643 | set dummy rm; ac_word=$2 |
|
|
4644 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4646 | if test "${ac_cv_path_RM+set}" = set; then |
|
|
4647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4648 | else |
|
|
4649 | case $RM in |
|
|
4650 | [\\/]* | ?:[\\/]*) |
|
|
4651 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
|
|
4652 | ;; |
|
|
4653 | *) |
|
|
4654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4655 | for as_dir in $PATH |
|
|
4656 | do |
|
|
4657 | IFS=$as_save_IFS |
|
|
4658 | test -z "$as_dir" && as_dir=. |
|
|
4659 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4660 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4661 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
|
|
4662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4663 | break 2 |
|
|
4664 | fi |
|
|
4665 | done |
|
|
4666 | done |
|
|
4667 | |
|
|
4668 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
|
|
4669 | ;; |
|
|
4670 | esac |
|
|
4671 | fi |
|
|
4672 | RM=$ac_cv_path_RM |
|
|
4673 | |
|
|
4674 | if test -n "$RM"; then |
|
|
4675 | echo "$as_me:$LINENO: result: $RM" >&5 |
|
|
4676 | echo "${ECHO_T}$RM" >&6 |
|
|
4677 | else |
4559 | else |
4678 | echo "$as_me:$LINENO: result: no" >&5 |
4560 | echo "$as_me:$LINENO: result: no" >&5 |
4679 | echo "${ECHO_T}no" >&6 |
4561 | echo "${ECHO_T}no" >&6 |
4680 | fi |
4562 | fi |
4681 | |
4563 | |
… | |
… | |
10068 | |
9950 | |
10069 | |
9951 | |
10070 | |
9952 | |
10071 | |
9953 | |
10072 | |
9954 | |
10073 | |
|
|
10074 | |
|
|
10075 | |
|
|
10076 | |
|
|
10077 | for ac_func in \ |
9955 | for ac_func in \ |
10078 | unsetenv \ |
9956 | unsetenv \ |
10079 | setutent \ |
9957 | setutent \ |
10080 | seteuid \ |
|
|
10081 | setresuid \ |
|
|
10082 | setreuid \ |
|
|
10083 | on_exit \ |
9958 | on_exit \ |
10084 | nanosleep \ |
|
|
10085 | |
9959 | |
10086 | do |
9960 | do |
10087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9961 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9962 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9963 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
10181 | |
10055 | |
10182 | fi |
10056 | fi |
10183 | done |
10057 | done |
10184 | |
10058 | |
10185 | |
10059 | |
10186 | UTMP_CHECK |
|
|
10187 | |
10060 | |
|
|
10061 | support_utmp=yes |
|
|
10062 | support_wtmp=yes |
|
|
10063 | support_lastlog=yes |
10188 | |
10064 | |
10189 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
10065 | # Check whether --enable-utmp or --disable-utmp was given. |
10190 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
10066 | if test "${enable_utmp+set}" = set; then |
10191 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
10067 | enableval="$enable_utmp" |
|
|
10068 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
10069 | support_utmp=$enableval |
|
|
10070 | fi |
|
|
10071 | fi; |
|
|
10072 | |
|
|
10073 | # Check whether --enable-wtmp or --disable-wtmp was given. |
|
|
10074 | if test "${enable_wtmp+set}" = set; then |
|
|
10075 | enableval="$enable_wtmp" |
|
|
10076 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
10077 | support_wtmp=$enableval |
|
|
10078 | fi |
|
|
10079 | fi; |
|
|
10080 | |
|
|
10081 | # Check whether --enable-lastlog or --disable-lastlog was given. |
|
|
10082 | if test "${enable_lastlog+set}" = set; then |
|
|
10083 | enableval="$enable_lastlog" |
|
|
10084 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
10085 | support_lastlog=$enableval |
|
|
10086 | fi |
|
|
10087 | fi; |
|
|
10088 | |
|
|
10089 | if test x$support_utmp = xyes; then |
|
|
10090 | |
|
|
10091 | cat >>confdefs.h <<\_ACEOF |
|
|
10092 | #define UTMP_SUPPORT 1 |
|
|
10093 | _ACEOF |
|
|
10094 | |
|
|
10095 | fi |
|
|
10096 | if test x$support_wtmp = xyes; then |
|
|
10097 | |
|
|
10098 | cat >>confdefs.h <<\_ACEOF |
|
|
10099 | #define WTMP_SUPPORT 1 |
|
|
10100 | _ACEOF |
|
|
10101 | |
|
|
10102 | fi |
|
|
10103 | if test x$support_lastlog = xyes; then |
|
|
10104 | |
|
|
10105 | cat >>confdefs.h <<\_ACEOF |
|
|
10106 | #define LASTLOG_SUPPORT 1 |
|
|
10107 | _ACEOF |
|
|
10108 | |
|
|
10109 | fi |
|
|
10110 | |
|
|
10111 | |
|
|
10112 | |
|
|
10113 | |
|
|
10114 | for ac_func in \ |
|
|
10115 | ttyslot \ |
|
|
10116 | updwtmp \ |
|
|
10117 | updwtmpx \ |
|
|
10118 | |
|
|
10119 | do |
|
|
10120 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10121 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10122 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
10123 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
10192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10193 | else |
|
|
10194 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
10195 | do |
|
|
10196 | if test -f "$ttys_file" ; then |
|
|
10197 | rxvt_cv_path_ttytab=$ttys_file |
|
|
10198 | break |
|
|
10199 | fi |
|
|
10200 | done |
|
|
10201 | |
|
|
10202 | fi |
|
|
10203 | echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
10204 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6 |
|
|
10205 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
10206 | |
|
|
10207 | cat >>confdefs.h <<_ACEOF |
|
|
10208 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
10209 | _ACEOF |
|
|
10210 | |
|
|
10211 | fi |
|
|
10212 | |
|
|
10213 | |
|
|
10214 | ac_save_LIBS=$LIBS |
|
|
10215 | ac_save_CFLAGS=$CFLAGS |
|
|
10216 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
10217 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
10218 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
10219 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
10220 | fi |
|
|
10221 | echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
|
|
10222 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6 |
|
|
10223 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
|
|
10224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10225 | else |
|
|
10226 | if test "$cross_compiling" = yes; then |
|
|
10227 | { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 |
|
|
10228 | echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;} |
|
|
10229 | else |
10125 | else |
10230 | cat >conftest.$ac_ext <<_ACEOF |
10126 | cat >conftest.$ac_ext <<_ACEOF |
10231 | /* confdefs.h. */ |
10127 | /* confdefs.h. */ |
10232 | _ACEOF |
10128 | _ACEOF |
10233 | cat confdefs.h >>conftest.$ac_ext |
10129 | cat confdefs.h >>conftest.$ac_ext |
10234 | cat >>conftest.$ac_ext <<_ACEOF |
10130 | cat >>conftest.$ac_ext <<_ACEOF |
10235 | /* end confdefs.h. */ |
10131 | /* end confdefs.h. */ |
10236 | #include <X11/Xlib.h> |
10132 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10237 | main() { |
10133 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10238 | char *p; |
10134 | #define $ac_func innocuous_$ac_func |
10239 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
10135 | |
10240 | exit (XSupportsLocale() ? 0 : 1); |
10136 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10137 | which can conflict with char $ac_func (); below. |
|
|
10138 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10139 | <limits.h> exists even on freestanding compilers. */ |
|
|
10140 | |
|
|
10141 | #ifdef __STDC__ |
|
|
10142 | # include <limits.h> |
10241 | else |
10143 | #else |
10242 | exit (1);} |
10144 | # include <assert.h> |
10243 | _ACEOF |
10145 | #endif |
10244 | rm -f conftest$ac_exeext |
10146 | |
10245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10147 | #undef $ac_func |
10246 | (eval $ac_link) 2>&5 |
10148 | |
10247 | ac_status=$? |
10149 | /* Override any gcc2 internal prototype to avoid an error. */ |
10248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10150 | #ifdef __cplusplus |
10249 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10151 | extern "C" |
10250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10152 | { |
10251 | (eval $ac_try) 2>&5 |
10153 | #endif |
10252 | ac_status=$? |
10154 | /* We use char because int might match the return type of a gcc2 |
10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10155 | builtin and then its argument prototype would still apply. */ |
10254 | (exit $ac_status); }; }; then |
10156 | char $ac_func (); |
10255 | rxvt_cv_func_xlocale=yes |
10157 | /* The GNU C library defines this for functions which it implements |
|
|
10158 | to always fail with ENOSYS. Some functions are actually named |
|
|
10159 | something starting with __ and the normal name is an alias. */ |
|
|
10160 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
10161 | choke me |
10256 | else |
10162 | #else |
10257 | echo "$as_me: program exited with status $ac_status" >&5 |
10163 | char (*f) () = $ac_func; |
10258 | echo "$as_me: failed program was:" >&5 |
10164 | #endif |
10259 | sed 's/^/| /' conftest.$ac_ext >&5 |
10165 | #ifdef __cplusplus |
|
|
10166 | } |
|
|
10167 | #endif |
10260 | |
10168 | |
10261 | ( exit $ac_status ) |
|
|
10262 | rxvt_cv_func_xlocale=no |
|
|
10263 | fi |
|
|
10264 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
10265 | fi |
|
|
10266 | fi |
|
|
10267 | echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
|
|
10268 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6 |
|
|
10269 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
10270 | |
|
|
10271 | cat >>confdefs.h <<\_ACEOF |
|
|
10272 | #define HAVE_XLOCALE 1 |
|
|
10273 | _ACEOF |
|
|
10274 | |
|
|
10275 | fi |
|
|
10276 | |
|
|
10277 | echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
|
|
10278 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6 |
|
|
10279 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
|
|
10280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10281 | else |
|
|
10282 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10283 | /* confdefs.h. */ |
|
|
10284 | _ACEOF |
|
|
10285 | cat confdefs.h >>conftest.$ac_ext |
|
|
10286 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10287 | /* end confdefs.h. */ |
|
|
10288 | #define X_LOCALE 1 |
|
|
10289 | #include <X11/Xlocale.h> |
|
|
10290 | int |
10169 | int |
10291 | main () |
10170 | main () |
10292 | { |
10171 | { |
10293 | setlocale(LC_CTYPE, ""); |
10172 | return f != $ac_func; |
10294 | ; |
10173 | ; |
10295 | return 0; |
10174 | return 0; |
10296 | } |
10175 | } |
10297 | _ACEOF |
10176 | _ACEOF |
10298 | rm -f conftest.$ac_objext conftest$ac_exeext |
10177 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
10314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10315 | (eval $ac_try) 2>&5 |
10194 | (eval $ac_try) 2>&5 |
10316 | ac_status=$? |
10195 | ac_status=$? |
10317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10318 | (exit $ac_status); }; }; then |
10197 | (exit $ac_status); }; }; then |
10319 | rxvt_cv_func_xsetlocale=yes |
10198 | eval "$as_ac_var=yes" |
10320 | else |
10199 | else |
10321 | echo "$as_me: failed program was:" >&5 |
10200 | echo "$as_me: failed program was:" >&5 |
10322 | sed 's/^/| /' conftest.$ac_ext >&5 |
10201 | sed 's/^/| /' conftest.$ac_ext >&5 |
10323 | |
10202 | |
10324 | rxvt_cv_func_xsetlocale=no |
10203 | eval "$as_ac_var=no" |
10325 | fi |
10204 | fi |
10326 | rm -f conftest.err conftest.$ac_objext \ |
10205 | rm -f conftest.err conftest.$ac_objext \ |
10327 | conftest$ac_exeext conftest.$ac_ext |
10206 | conftest$ac_exeext conftest.$ac_ext |
10328 | fi |
10207 | fi |
10329 | echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 |
10208 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10330 | echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6 |
10209 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10331 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
10210 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10332 | |
|
|
10333 | cat >>confdefs.h <<\_ACEOF |
10211 | cat >>confdefs.h <<_ACEOF |
10334 | #define HAVE_XSETLOCALE 1 |
10212 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10335 | _ACEOF |
10213 | _ACEOF |
10336 | |
10214 | |
10337 | fi |
10215 | fi |
10338 | LIBS=$ac_save_LIBS |
|
|
10339 | CFLAGS=$ac_save_CFLAGS |
|
|
10340 | |
|
|
10341 | echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
|
|
10342 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6 |
|
|
10343 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
|
|
10344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10345 | else |
|
|
10346 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10347 | /* confdefs.h. */ |
|
|
10348 | _ACEOF |
|
|
10349 | cat confdefs.h >>conftest.$ac_ext |
|
|
10350 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10351 | /* end confdefs.h. */ |
|
|
10352 | #include <clocale> |
|
|
10353 | int |
|
|
10354 | main () |
|
|
10355 | { |
|
|
10356 | setlocale(LC_CTYPE, ""); |
|
|
10357 | ; |
|
|
10358 | return 0; |
|
|
10359 | } |
|
|
10360 | _ACEOF |
|
|
10361 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10363 | (eval $ac_link) 2>conftest.er1 |
|
|
10364 | ac_status=$? |
|
|
10365 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10366 | rm -f conftest.er1 |
|
|
10367 | cat conftest.err >&5 |
|
|
10368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10369 | (exit $ac_status); } && |
|
|
10370 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10372 | (eval $ac_try) 2>&5 |
|
|
10373 | ac_status=$? |
|
|
10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10375 | (exit $ac_status); }; } && |
|
|
10376 | { ac_try='test -s conftest$ac_exeext' |
|
|
10377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10378 | (eval $ac_try) 2>&5 |
|
|
10379 | ac_status=$? |
|
|
10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10381 | (exit $ac_status); }; }; then |
|
|
10382 | rxvt_cv_func_setlocale=yes |
|
|
10383 | else |
|
|
10384 | echo "$as_me: failed program was:" >&5 |
|
|
10385 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10386 | |
|
|
10387 | rxvt_cv_func_setlocale=no |
|
|
10388 | fi |
|
|
10389 | rm -f conftest.err conftest.$ac_objext \ |
|
|
10390 | conftest$ac_exeext conftest.$ac_ext |
|
|
10391 | fi |
|
|
10392 | echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 |
|
|
10393 | echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6 |
|
|
10394 | if test x$rxvt_cv_func_setlocale = xyes; then |
|
|
10395 | |
|
|
10396 | cat >>confdefs.h <<\_ACEOF |
|
|
10397 | #define HAVE_SETLOCALE 1 |
|
|
10398 | _ACEOF |
|
|
10399 | |
|
|
10400 | fi |
|
|
10401 | |
|
|
10402 | echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 |
|
|
10403 | echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6 |
|
|
10404 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then |
|
|
10405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10406 | else |
|
|
10407 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10408 | /* confdefs.h. */ |
|
|
10409 | _ACEOF |
|
|
10410 | cat confdefs.h >>conftest.$ac_ext |
|
|
10411 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10412 | /* end confdefs.h. */ |
|
|
10413 | #include <langinfo.h> |
|
|
10414 | int |
|
|
10415 | main () |
|
|
10416 | { |
|
|
10417 | nl_langinfo(CODESET); |
|
|
10418 | ; |
|
|
10419 | return 0; |
|
|
10420 | } |
|
|
10421 | _ACEOF |
|
|
10422 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10424 | (eval $ac_link) 2>conftest.er1 |
|
|
10425 | ac_status=$? |
|
|
10426 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10427 | rm -f conftest.er1 |
|
|
10428 | cat conftest.err >&5 |
|
|
10429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10430 | (exit $ac_status); } && |
|
|
10431 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10433 | (eval $ac_try) 2>&5 |
|
|
10434 | ac_status=$? |
|
|
10435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10436 | (exit $ac_status); }; } && |
|
|
10437 | { ac_try='test -s conftest$ac_exeext' |
|
|
10438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10439 | (eval $ac_try) 2>&5 |
|
|
10440 | ac_status=$? |
|
|
10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10442 | (exit $ac_status); }; }; then |
|
|
10443 | rxvt_cv_func_nl_langinfo=yes |
|
|
10444 | else |
|
|
10445 | echo "$as_me: failed program was:" >&5 |
|
|
10446 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10447 | |
|
|
10448 | rxvt_cv_func_nl_langinfo=no |
|
|
10449 | fi |
|
|
10450 | rm -f conftest.err conftest.$ac_objext \ |
|
|
10451 | conftest$ac_exeext conftest.$ac_ext |
|
|
10452 | fi |
|
|
10453 | echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
10454 | echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6 |
|
|
10455 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
10456 | |
|
|
10457 | cat >>confdefs.h <<\_ACEOF |
|
|
10458 | #define HAVE_NL_LANGINFO 1 |
|
|
10459 | _ACEOF |
|
|
10460 | |
|
|
10461 | fi |
|
|
10462 | |
|
|
10463 | SCM_RIGHTS_CHECK |
|
|
10464 | |
|
|
10465 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
10466 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
|
|
10467 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10469 | else |
|
|
10470 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10471 | |
|
|
10472 | #include <X11/Xlib.h> |
|
|
10473 | |
|
|
10474 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
10475 | |
|
|
10476 | void f() { |
|
|
10477 | XIMCallback cb; |
|
|
10478 | cb.callback = im_destroy_cb; |
|
|
10479 | } |
|
|
10480 | |
|
|
10481 | _ACEOF |
|
|
10482 | rm -f conftest.$ac_objext |
|
|
10483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10484 | (eval $ac_compile) 2>conftest.er1 |
|
|
10485 | ac_status=$? |
|
|
10486 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10487 | rm -f conftest.er1 |
|
|
10488 | cat conftest.err >&5 |
|
|
10489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10490 | (exit $ac_status); } && |
|
|
10491 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10493 | (eval $ac_try) 2>&5 |
|
|
10494 | ac_status=$? |
|
|
10495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10496 | (exit $ac_status); }; } && |
|
|
10497 | { ac_try='test -s conftest.$ac_objext' |
|
|
10498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10499 | (eval $ac_try) 2>&5 |
|
|
10500 | ac_status=$? |
|
|
10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10502 | (exit $ac_status); }; }; then |
|
|
10503 | rxvt_broken_ximcb=yes |
|
|
10504 | else |
|
|
10505 | echo "$as_me: failed program was:" >&5 |
|
|
10506 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10507 | |
|
|
10508 | rxvt_broken_ximcb=no |
|
|
10509 | fi |
|
|
10510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10511 | fi |
|
|
10512 | echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
10513 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6 |
|
|
10514 | |
|
|
10515 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
10516 | |
|
|
10517 | cat >>confdefs.h <<\_ACEOF |
|
|
10518 | #define XIMCB_PROTO_BROKEN 1 |
|
|
10519 | _ACEOF |
|
|
10520 | |
|
|
10521 | fi |
|
|
10522 | |
|
|
10523 | PTY_CHECK |
|
|
10524 | |
|
|
10525 | if test x$support_xft = xyes; then |
|
|
10526 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
10527 | set dummy pkg-config; ac_word=$2 |
|
|
10528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
10529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
10530 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
|
|
10531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10532 | else |
|
|
10533 | case $PKG_CONFIG in |
|
|
10534 | [\\/]* | ?:[\\/]*) |
|
|
10535 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
|
10536 | ;; |
|
|
10537 | *) |
|
|
10538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
10539 | for as_dir in $PATH |
|
|
10540 | do |
|
|
10541 | IFS=$as_save_IFS |
|
|
10542 | test -z "$as_dir" && as_dir=. |
|
|
10543 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
10544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
10545 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
10546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
10547 | break 2 |
|
|
10548 | fi |
|
|
10549 | done |
10216 | done |
10550 | done |
|
|
10551 | |
10217 | |
10552 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
10553 | ;; |
|
|
10554 | esac |
|
|
10555 | fi |
|
|
10556 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
10557 | |
10218 | |
10558 | if test -n "$PKG_CONFIG"; then |
|
|
10559 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
10560 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
|
|
10561 | else |
|
|
10562 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
10563 | echo "${ECHO_T}no" >&6 |
|
|
10564 | fi |
|
|
10565 | |
10219 | |
10566 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
10567 | set dummy xft-config; ac_word=$2 |
|
|
10568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
10569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
10570 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
|
|
10571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10572 | else |
|
|
10573 | case $XFT_CONFIG in |
|
|
10574 | [\\/]* | ?:[\\/]*) |
|
|
10575 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
10576 | ;; |
|
|
10577 | *) |
|
|
10578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
10579 | for as_dir in $PATH |
|
|
10580 | do |
|
|
10581 | IFS=$as_save_IFS |
|
|
10582 | test -z "$as_dir" && as_dir=. |
|
|
10583 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
10584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
10585 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
10586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
10587 | break 2 |
|
|
10588 | fi |
|
|
10589 | done |
|
|
10590 | done |
|
|
10591 | |
10220 | |
10592 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
10593 | ;; |
|
|
10594 | esac |
|
|
10595 | fi |
|
|
10596 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
10597 | |
10221 | |
10598 | if test -n "$XFT_CONFIG"; then |
10222 | for ac_header in \ |
10599 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
10223 | utmp.h \ |
10600 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
10224 | utmpx.h \ |
10601 | else |
10225 | lastlog.h \ |
10602 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
10603 | echo "${ECHO_T}no" >&6 |
|
|
10604 | fi |
|
|
10605 | |
10226 | |
10606 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
10607 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
|
|
10608 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
|
|
10609 | else |
|
|
10610 | if test $XFT_CONFIG != no; then |
|
|
10611 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
|
|
10612 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
10613 | fi |
|
|
10614 | fi |
|
|
10615 | |
|
|
10616 | |
|
|
10617 | for ac_header in X11/Xft/Xft.h |
|
|
10618 | do |
10227 | do |
10619 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10228 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10229 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10621 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10230 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10231 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
… | |
… | |
10756 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10365 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10757 | cat >>confdefs.h <<_ACEOF |
10366 | cat >>confdefs.h <<_ACEOF |
10758 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10367 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10759 | _ACEOF |
10368 | _ACEOF |
10760 | |
10369 | |
|
|
10370 | fi |
|
|
10371 | |
|
|
10372 | done |
|
|
10373 | |
|
|
10374 | |
|
|
10375 | |
|
|
10376 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10377 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10378 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10379 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10381 | fi |
|
|
10382 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10383 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10384 | else |
|
|
10385 | # Is the header compilable? |
|
|
10386 | echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10387 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
|
|
10388 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10389 | /* confdefs.h. */ |
|
|
10390 | _ACEOF |
|
|
10391 | cat confdefs.h >>conftest.$ac_ext |
|
|
10392 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10393 | /* end confdefs.h. */ |
|
|
10394 | $ac_includes_default |
|
|
10395 | #include <utmp.h> |
|
|
10396 | _ACEOF |
|
|
10397 | rm -f conftest.$ac_objext |
|
|
10398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10399 | (eval $ac_compile) 2>conftest.er1 |
|
|
10400 | ac_status=$? |
|
|
10401 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10402 | rm -f conftest.er1 |
|
|
10403 | cat conftest.err >&5 |
|
|
10404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10405 | (exit $ac_status); } && |
|
|
10406 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10408 | (eval $ac_try) 2>&5 |
|
|
10409 | ac_status=$? |
|
|
10410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10411 | (exit $ac_status); }; } && |
|
|
10412 | { ac_try='test -s conftest.$ac_objext' |
|
|
10413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10414 | (eval $ac_try) 2>&5 |
|
|
10415 | ac_status=$? |
|
|
10416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10417 | (exit $ac_status); }; }; then |
|
|
10418 | ac_header_compiler=yes |
|
|
10419 | else |
|
|
10420 | echo "$as_me: failed program was:" >&5 |
|
|
10421 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10422 | |
|
|
10423 | ac_header_compiler=no |
|
|
10424 | fi |
|
|
10425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10426 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10427 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10428 | |
|
|
10429 | # Is the header present? |
|
|
10430 | echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
10431 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
|
|
10432 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10433 | /* confdefs.h. */ |
|
|
10434 | _ACEOF |
|
|
10435 | cat confdefs.h >>conftest.$ac_ext |
|
|
10436 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10437 | /* end confdefs.h. */ |
|
|
10438 | #include <utmp.h> |
|
|
10439 | _ACEOF |
|
|
10440 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10441 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10442 | ac_status=$? |
|
|
10443 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10444 | rm -f conftest.er1 |
|
|
10445 | cat conftest.err >&5 |
|
|
10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10447 | (exit $ac_status); } >/dev/null; then |
|
|
10448 | if test -s conftest.err; then |
|
|
10449 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10450 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10451 | else |
|
|
10452 | ac_cpp_err= |
|
|
10453 | fi |
|
|
10454 | else |
|
|
10455 | ac_cpp_err=yes |
|
|
10456 | fi |
|
|
10457 | if test -z "$ac_cpp_err"; then |
|
|
10458 | ac_header_preproc=yes |
|
|
10459 | else |
|
|
10460 | echo "$as_me: failed program was:" >&5 |
|
|
10461 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10462 | |
|
|
10463 | ac_header_preproc=no |
|
|
10464 | fi |
|
|
10465 | rm -f conftest.err conftest.$ac_ext |
|
|
10466 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10467 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10468 | |
|
|
10469 | # So? What about this header? |
|
|
10470 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10471 | yes:no: ) |
|
|
10472 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10473 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10474 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
10475 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
10476 | ac_header_preproc=yes |
|
|
10477 | ;; |
|
|
10478 | no:yes:* ) |
|
|
10479 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
10480 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
10481 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
10482 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
10483 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
10484 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
10485 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10486 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10487 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
10488 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
10489 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
10490 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
10491 | ( |
|
|
10492 | cat <<\_ASBOX |
|
|
10493 | ## ------------------------------------------ ## |
|
|
10494 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10495 | ## ------------------------------------------ ## |
|
|
10496 | _ASBOX |
|
|
10497 | ) | |
|
|
10498 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10499 | ;; |
|
|
10500 | esac |
|
|
10501 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10502 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10503 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10505 | else |
|
|
10506 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
10507 | fi |
|
|
10508 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10509 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10510 | |
|
|
10511 | fi |
|
|
10512 | if test $ac_cv_header_utmp_h = yes; then |
|
|
10513 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
10514 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
|
|
10515 | if test "${struct_utmp+set}" = set; then |
|
|
10516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10517 | else |
|
|
10518 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10519 | /* confdefs.h. */ |
|
|
10520 | _ACEOF |
|
|
10521 | cat confdefs.h >>conftest.$ac_ext |
|
|
10522 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10523 | /* end confdefs.h. */ |
|
|
10524 | #include <sys/types.h> |
|
|
10525 | #include <utmp.h> |
|
|
10526 | int |
|
|
10527 | main () |
|
|
10528 | { |
|
|
10529 | struct utmp ut; |
|
|
10530 | ; |
|
|
10531 | return 0; |
|
|
10532 | } |
|
|
10533 | _ACEOF |
|
|
10534 | rm -f conftest.$ac_objext |
|
|
10535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10536 | (eval $ac_compile) 2>conftest.er1 |
|
|
10537 | ac_status=$? |
|
|
10538 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10539 | rm -f conftest.er1 |
|
|
10540 | cat conftest.err >&5 |
|
|
10541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10542 | (exit $ac_status); } && |
|
|
10543 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10545 | (eval $ac_try) 2>&5 |
|
|
10546 | ac_status=$? |
|
|
10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10548 | (exit $ac_status); }; } && |
|
|
10549 | { ac_try='test -s conftest.$ac_objext' |
|
|
10550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10551 | (eval $ac_try) 2>&5 |
|
|
10552 | ac_status=$? |
|
|
10553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10554 | (exit $ac_status); }; }; then |
|
|
10555 | struct_utmp=yes |
|
|
10556 | else |
|
|
10557 | echo "$as_me: failed program was:" >&5 |
|
|
10558 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10559 | |
|
|
10560 | struct_utmp=no |
|
|
10561 | fi |
|
|
10562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10563 | fi |
|
|
10564 | echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
|
|
10565 | echo "${ECHO_T}$struct_utmp" >&6 |
|
|
10566 | if test x$struct_utmp = xyes; then |
|
|
10567 | |
|
|
10568 | cat >>confdefs.h <<\_ACEOF |
|
|
10569 | #define HAVE_STRUCT_UTMP 1 |
|
|
10570 | _ACEOF |
|
|
10571 | |
|
|
10572 | fi |
|
|
10573 | |
|
|
10574 | |
|
|
10575 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
10576 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
|
|
10577 | if test "${struct_utmp_host+set}" = set; then |
|
|
10578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10579 | else |
|
|
10580 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10581 | /* confdefs.h. */ |
|
|
10582 | _ACEOF |
|
|
10583 | cat confdefs.h >>conftest.$ac_ext |
|
|
10584 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10585 | /* end confdefs.h. */ |
|
|
10586 | #include <sys/types.h> |
|
|
10587 | #include <utmp.h> |
|
|
10588 | int |
|
|
10589 | main () |
|
|
10590 | { |
|
|
10591 | struct utmp ut; ut.ut_host; |
|
|
10592 | ; |
|
|
10593 | return 0; |
|
|
10594 | } |
|
|
10595 | _ACEOF |
|
|
10596 | rm -f conftest.$ac_objext |
|
|
10597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10598 | (eval $ac_compile) 2>conftest.er1 |
|
|
10599 | ac_status=$? |
|
|
10600 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10601 | rm -f conftest.er1 |
|
|
10602 | cat conftest.err >&5 |
|
|
10603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10604 | (exit $ac_status); } && |
|
|
10605 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10607 | (eval $ac_try) 2>&5 |
|
|
10608 | ac_status=$? |
|
|
10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10610 | (exit $ac_status); }; } && |
|
|
10611 | { ac_try='test -s conftest.$ac_objext' |
|
|
10612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10613 | (eval $ac_try) 2>&5 |
|
|
10614 | ac_status=$? |
|
|
10615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10616 | (exit $ac_status); }; }; then |
|
|
10617 | struct_utmp_host=yes |
|
|
10618 | else |
|
|
10619 | echo "$as_me: failed program was:" >&5 |
|
|
10620 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10621 | |
|
|
10622 | struct_utmp_host=no |
|
|
10623 | fi |
|
|
10624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10625 | fi |
|
|
10626 | echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
|
|
10627 | echo "${ECHO_T}$struct_utmp_host" >&6 |
|
|
10628 | if test x$struct_utmp_host = xyes; then |
|
|
10629 | |
|
|
10630 | cat >>confdefs.h <<\_ACEOF |
|
|
10631 | #define HAVE_UTMP_HOST 1 |
|
|
10632 | _ACEOF |
|
|
10633 | |
|
|
10634 | fi |
|
|
10635 | |
|
|
10636 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
10637 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
|
|
10638 | if test "${struct_utmp_pid+set}" = set; then |
|
|
10639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10640 | else |
|
|
10641 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10642 | /* confdefs.h. */ |
|
|
10643 | _ACEOF |
|
|
10644 | cat confdefs.h >>conftest.$ac_ext |
|
|
10645 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10646 | /* end confdefs.h. */ |
|
|
10647 | #include <sys/types.h> |
|
|
10648 | #include <utmp.h> |
|
|
10649 | int |
|
|
10650 | main () |
|
|
10651 | { |
|
|
10652 | struct utmp ut; ut.ut_pid; |
|
|
10653 | ; |
|
|
10654 | return 0; |
|
|
10655 | } |
|
|
10656 | _ACEOF |
|
|
10657 | rm -f conftest.$ac_objext |
|
|
10658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10659 | (eval $ac_compile) 2>conftest.er1 |
|
|
10660 | ac_status=$? |
|
|
10661 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10662 | rm -f conftest.er1 |
|
|
10663 | cat conftest.err >&5 |
|
|
10664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10665 | (exit $ac_status); } && |
|
|
10666 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10668 | (eval $ac_try) 2>&5 |
|
|
10669 | ac_status=$? |
|
|
10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10671 | (exit $ac_status); }; } && |
|
|
10672 | { ac_try='test -s conftest.$ac_objext' |
|
|
10673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10674 | (eval $ac_try) 2>&5 |
|
|
10675 | ac_status=$? |
|
|
10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10677 | (exit $ac_status); }; }; then |
|
|
10678 | struct_utmp_pid=yes |
|
|
10679 | else |
|
|
10680 | echo "$as_me: failed program was:" >&5 |
|
|
10681 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10682 | |
|
|
10683 | struct_utmp_pid=no |
|
|
10684 | fi |
|
|
10685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10686 | fi |
|
|
10687 | echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
|
|
10688 | echo "${ECHO_T}$struct_utmp_pid" >&6 |
|
|
10689 | if test x$struct_utmp_pid = xyes; then |
|
|
10690 | |
|
|
10691 | cat >>confdefs.h <<\_ACEOF |
|
|
10692 | #define HAVE_UTMP_PID 1 |
|
|
10693 | _ACEOF |
|
|
10694 | |
|
|
10695 | fi |
|
|
10696 | |
|
|
10697 | fi |
|
|
10698 | |
|
|
10699 | |
|
|
10700 | |
|
|
10701 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10702 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10703 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10704 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10706 | fi |
|
|
10707 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10708 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10709 | else |
|
|
10710 | # Is the header compilable? |
|
|
10711 | echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
10712 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
|
|
10713 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10714 | /* confdefs.h. */ |
|
|
10715 | _ACEOF |
|
|
10716 | cat confdefs.h >>conftest.$ac_ext |
|
|
10717 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10718 | /* end confdefs.h. */ |
|
|
10719 | $ac_includes_default |
|
|
10720 | #include <utmpx.h> |
|
|
10721 | _ACEOF |
|
|
10722 | rm -f conftest.$ac_objext |
|
|
10723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10724 | (eval $ac_compile) 2>conftest.er1 |
|
|
10725 | ac_status=$? |
|
|
10726 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10727 | rm -f conftest.er1 |
|
|
10728 | cat conftest.err >&5 |
|
|
10729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10730 | (exit $ac_status); } && |
|
|
10731 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10733 | (eval $ac_try) 2>&5 |
|
|
10734 | ac_status=$? |
|
|
10735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10736 | (exit $ac_status); }; } && |
|
|
10737 | { ac_try='test -s conftest.$ac_objext' |
|
|
10738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10739 | (eval $ac_try) 2>&5 |
|
|
10740 | ac_status=$? |
|
|
10741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10742 | (exit $ac_status); }; }; then |
|
|
10743 | ac_header_compiler=yes |
|
|
10744 | else |
|
|
10745 | echo "$as_me: failed program was:" >&5 |
|
|
10746 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10747 | |
|
|
10748 | ac_header_compiler=no |
|
|
10749 | fi |
|
|
10750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10751 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10752 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10753 | |
|
|
10754 | # Is the header present? |
|
|
10755 | echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
10756 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
|
|
10757 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10758 | /* confdefs.h. */ |
|
|
10759 | _ACEOF |
|
|
10760 | cat confdefs.h >>conftest.$ac_ext |
|
|
10761 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10762 | /* end confdefs.h. */ |
|
|
10763 | #include <utmpx.h> |
|
|
10764 | _ACEOF |
|
|
10765 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10766 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10767 | ac_status=$? |
|
|
10768 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10769 | rm -f conftest.er1 |
|
|
10770 | cat conftest.err >&5 |
|
|
10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10772 | (exit $ac_status); } >/dev/null; then |
|
|
10773 | if test -s conftest.err; then |
|
|
10774 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10775 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10776 | else |
|
|
10777 | ac_cpp_err= |
|
|
10778 | fi |
|
|
10779 | else |
|
|
10780 | ac_cpp_err=yes |
|
|
10781 | fi |
|
|
10782 | if test -z "$ac_cpp_err"; then |
|
|
10783 | ac_header_preproc=yes |
|
|
10784 | else |
|
|
10785 | echo "$as_me: failed program was:" >&5 |
|
|
10786 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10787 | |
|
|
10788 | ac_header_preproc=no |
|
|
10789 | fi |
|
|
10790 | rm -f conftest.err conftest.$ac_ext |
|
|
10791 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10792 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10793 | |
|
|
10794 | # So? What about this header? |
|
|
10795 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10796 | yes:no: ) |
|
|
10797 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10798 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10799 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
10800 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
10801 | ac_header_preproc=yes |
|
|
10802 | ;; |
|
|
10803 | no:yes:* ) |
|
|
10804 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
10805 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
10806 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
10807 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
10808 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
10809 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
10810 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10811 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10812 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
10813 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
10814 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
10815 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
10816 | ( |
|
|
10817 | cat <<\_ASBOX |
|
|
10818 | ## ------------------------------------------ ## |
|
|
10819 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10820 | ## ------------------------------------------ ## |
|
|
10821 | _ASBOX |
|
|
10822 | ) | |
|
|
10823 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10824 | ;; |
|
|
10825 | esac |
|
|
10826 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10827 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10828 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10830 | else |
|
|
10831 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
10832 | fi |
|
|
10833 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10834 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10835 | |
|
|
10836 | fi |
|
|
10837 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
10838 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
10839 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
|
|
10840 | if test "${struct_utmpx+set}" = set; then |
|
|
10841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10842 | else |
|
|
10843 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10844 | /* confdefs.h. */ |
|
|
10845 | _ACEOF |
|
|
10846 | cat confdefs.h >>conftest.$ac_ext |
|
|
10847 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10848 | /* end confdefs.h. */ |
|
|
10849 | #include <sys/types.h> |
|
|
10850 | #include <utmpx.h> |
|
|
10851 | int |
|
|
10852 | main () |
|
|
10853 | { |
|
|
10854 | struct utmpx ut; |
|
|
10855 | ; |
|
|
10856 | return 0; |
|
|
10857 | } |
|
|
10858 | _ACEOF |
|
|
10859 | rm -f conftest.$ac_objext |
|
|
10860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10861 | (eval $ac_compile) 2>conftest.er1 |
|
|
10862 | ac_status=$? |
|
|
10863 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10864 | rm -f conftest.er1 |
|
|
10865 | cat conftest.err >&5 |
|
|
10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10867 | (exit $ac_status); } && |
|
|
10868 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10870 | (eval $ac_try) 2>&5 |
|
|
10871 | ac_status=$? |
|
|
10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10873 | (exit $ac_status); }; } && |
|
|
10874 | { ac_try='test -s conftest.$ac_objext' |
|
|
10875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10876 | (eval $ac_try) 2>&5 |
|
|
10877 | ac_status=$? |
|
|
10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10879 | (exit $ac_status); }; }; then |
|
|
10880 | struct_utmpx=yes |
|
|
10881 | else |
|
|
10882 | echo "$as_me: failed program was:" >&5 |
|
|
10883 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10884 | |
|
|
10885 | struct_utmpx=no |
|
|
10886 | fi |
|
|
10887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10888 | fi |
|
|
10889 | echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
|
|
10890 | echo "${ECHO_T}$struct_utmpx" >&6 |
|
|
10891 | if test x$struct_utmpx = xyes; then |
|
|
10892 | |
|
|
10893 | cat >>confdefs.h <<\_ACEOF |
|
|
10894 | #define HAVE_STRUCT_UTMPX 1 |
|
|
10895 | _ACEOF |
|
|
10896 | |
|
|
10897 | fi |
|
|
10898 | |
|
|
10899 | |
|
|
10900 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
10901 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
|
|
10902 | if test "${struct_utmpx_host+set}" = set; then |
|
|
10903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10904 | else |
|
|
10905 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10906 | /* confdefs.h. */ |
|
|
10907 | _ACEOF |
|
|
10908 | cat confdefs.h >>conftest.$ac_ext |
|
|
10909 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10910 | /* end confdefs.h. */ |
|
|
10911 | #include <sys/types.h> |
|
|
10912 | #include <utmpx.h> |
|
|
10913 | int |
|
|
10914 | main () |
|
|
10915 | { |
|
|
10916 | struct utmpx utx; utx.ut_host; |
|
|
10917 | ; |
|
|
10918 | return 0; |
|
|
10919 | } |
|
|
10920 | _ACEOF |
|
|
10921 | rm -f conftest.$ac_objext |
|
|
10922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10923 | (eval $ac_compile) 2>conftest.er1 |
|
|
10924 | ac_status=$? |
|
|
10925 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10926 | rm -f conftest.er1 |
|
|
10927 | cat conftest.err >&5 |
|
|
10928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10929 | (exit $ac_status); } && |
|
|
10930 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10932 | (eval $ac_try) 2>&5 |
|
|
10933 | ac_status=$? |
|
|
10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10935 | (exit $ac_status); }; } && |
|
|
10936 | { ac_try='test -s conftest.$ac_objext' |
|
|
10937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10938 | (eval $ac_try) 2>&5 |
|
|
10939 | ac_status=$? |
|
|
10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10941 | (exit $ac_status); }; }; then |
|
|
10942 | struct_utmpx_host=yes |
|
|
10943 | else |
|
|
10944 | echo "$as_me: failed program was:" >&5 |
|
|
10945 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10946 | |
|
|
10947 | struct_utmpx_host=no |
|
|
10948 | fi |
|
|
10949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10950 | fi |
|
|
10951 | echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
|
|
10952 | echo "${ECHO_T}$struct_utmpx_host" >&6 |
|
|
10953 | if test x$struct_utmpx_host = xyes; then |
|
|
10954 | |
|
|
10955 | cat >>confdefs.h <<\_ACEOF |
|
|
10956 | #define HAVE_UTMPX_HOST 1 |
|
|
10957 | _ACEOF |
|
|
10958 | |
|
|
10959 | fi |
|
|
10960 | |
|
|
10961 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
10962 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
10963 | if test "${struct_utmpx_session+set}" = set; then |
|
|
10964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10965 | else |
|
|
10966 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10967 | /* confdefs.h. */ |
|
|
10968 | _ACEOF |
|
|
10969 | cat confdefs.h >>conftest.$ac_ext |
|
|
10970 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10971 | /* end confdefs.h. */ |
|
|
10972 | #include <sys/types.h> |
|
|
10973 | #include <utmpx.h> |
|
|
10974 | int |
|
|
10975 | main () |
|
|
10976 | { |
|
|
10977 | struct utmpx utx; utx.ut_session; |
|
|
10978 | ; |
|
|
10979 | return 0; |
|
|
10980 | } |
|
|
10981 | _ACEOF |
|
|
10982 | rm -f conftest.$ac_objext |
|
|
10983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10984 | (eval $ac_compile) 2>conftest.er1 |
|
|
10985 | ac_status=$? |
|
|
10986 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10987 | rm -f conftest.er1 |
|
|
10988 | cat conftest.err >&5 |
|
|
10989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10990 | (exit $ac_status); } && |
|
|
10991 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10993 | (eval $ac_try) 2>&5 |
|
|
10994 | ac_status=$? |
|
|
10995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10996 | (exit $ac_status); }; } && |
|
|
10997 | { ac_try='test -s conftest.$ac_objext' |
|
|
10998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10999 | (eval $ac_try) 2>&5 |
|
|
11000 | ac_status=$? |
|
|
11001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11002 | (exit $ac_status); }; }; then |
|
|
11003 | struct_utmpx_session=yes |
|
|
11004 | else |
|
|
11005 | echo "$as_me: failed program was:" >&5 |
|
|
11006 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11007 | |
|
|
11008 | struct_utmpx_session=no |
|
|
11009 | fi |
|
|
11010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11011 | fi |
|
|
11012 | echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
|
|
11013 | echo "${ECHO_T}$struct_utmpx_session" >&6 |
|
|
11014 | if test x$struct_utmpx_session = xyes; then |
|
|
11015 | |
|
|
11016 | cat >>confdefs.h <<\_ACEOF |
|
|
11017 | #define HAVE_UTMPX_SESSION 1 |
|
|
11018 | _ACEOF |
|
|
11019 | |
|
|
11020 | fi |
|
|
11021 | |
|
|
11022 | fi |
|
|
11023 | |
|
|
11024 | |
|
|
11025 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
11026 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
|
|
11027 | if test "${struct_lastlog+set}" = set; then |
|
|
11028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11029 | else |
|
|
11030 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11031 | /* confdefs.h. */ |
|
|
11032 | _ACEOF |
|
|
11033 | cat confdefs.h >>conftest.$ac_ext |
|
|
11034 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11035 | /* end confdefs.h. */ |
|
|
11036 | #include <sys/types.h> |
|
|
11037 | #include <utmp.h> |
|
|
11038 | #ifdef HAVE_LASTLOG_H |
|
|
11039 | #include <lastlog.h> |
|
|
11040 | #endif |
|
|
11041 | |
|
|
11042 | int |
|
|
11043 | main () |
|
|
11044 | { |
|
|
11045 | struct lastlog ll; |
|
|
11046 | ; |
|
|
11047 | return 0; |
|
|
11048 | } |
|
|
11049 | _ACEOF |
|
|
11050 | rm -f conftest.$ac_objext |
|
|
11051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11052 | (eval $ac_compile) 2>conftest.er1 |
|
|
11053 | ac_status=$? |
|
|
11054 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11055 | rm -f conftest.er1 |
|
|
11056 | cat conftest.err >&5 |
|
|
11057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11058 | (exit $ac_status); } && |
|
|
11059 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11061 | (eval $ac_try) 2>&5 |
|
|
11062 | ac_status=$? |
|
|
11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11064 | (exit $ac_status); }; } && |
|
|
11065 | { ac_try='test -s conftest.$ac_objext' |
|
|
11066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11067 | (eval $ac_try) 2>&5 |
|
|
11068 | ac_status=$? |
|
|
11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11070 | (exit $ac_status); }; }; then |
|
|
11071 | struct_lastlog=yes |
|
|
11072 | else |
|
|
11073 | echo "$as_me: failed program was:" >&5 |
|
|
11074 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11075 | |
|
|
11076 | struct_lastlog=no |
|
|
11077 | fi |
|
|
11078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11079 | fi |
|
|
11080 | echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
|
|
11081 | echo "${ECHO_T}$struct_lastlog" >&6 |
|
|
11082 | if test x$struct_lastlog = xyes; then |
|
|
11083 | |
|
|
11084 | cat >>confdefs.h <<\_ACEOF |
|
|
11085 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
11086 | _ACEOF |
|
|
11087 | |
|
|
11088 | fi |
|
|
11089 | |
|
|
11090 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
11091 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
|
|
11092 | if test "${struct_lastlogx+set}" = set; then |
|
|
11093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11094 | else |
|
|
11095 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11096 | /* confdefs.h. */ |
|
|
11097 | _ACEOF |
|
|
11098 | cat confdefs.h >>conftest.$ac_ext |
|
|
11099 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11100 | /* end confdefs.h. */ |
|
|
11101 | #include <sys/types.h> |
|
|
11102 | #include <utmpx.h> |
|
|
11103 | #ifdef HAVE_LASTLOG_H |
|
|
11104 | #include <lastlog.h> |
|
|
11105 | #endif |
|
|
11106 | |
|
|
11107 | int |
|
|
11108 | main () |
|
|
11109 | { |
|
|
11110 | struct lastlogx ll; |
|
|
11111 | ; |
|
|
11112 | return 0; |
|
|
11113 | } |
|
|
11114 | _ACEOF |
|
|
11115 | rm -f conftest.$ac_objext |
|
|
11116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11117 | (eval $ac_compile) 2>conftest.er1 |
|
|
11118 | ac_status=$? |
|
|
11119 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11120 | rm -f conftest.er1 |
|
|
11121 | cat conftest.err >&5 |
|
|
11122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11123 | (exit $ac_status); } && |
|
|
11124 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11126 | (eval $ac_try) 2>&5 |
|
|
11127 | ac_status=$? |
|
|
11128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11129 | (exit $ac_status); }; } && |
|
|
11130 | { ac_try='test -s conftest.$ac_objext' |
|
|
11131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11132 | (eval $ac_try) 2>&5 |
|
|
11133 | ac_status=$? |
|
|
11134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11135 | (exit $ac_status); }; }; then |
|
|
11136 | struct_lastlogx=yes |
|
|
11137 | else |
|
|
11138 | echo "$as_me: failed program was:" >&5 |
|
|
11139 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11140 | |
|
|
11141 | struct_lastlogx=no |
|
|
11142 | fi |
|
|
11143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11144 | fi |
|
|
11145 | echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
|
|
11146 | echo "${ECHO_T}$struct_lastlogx" >&6 |
|
|
11147 | if test x$struct_lastlogx = xyes; then |
|
|
11148 | |
|
|
11149 | cat >>confdefs.h <<\_ACEOF |
|
|
11150 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
11151 | _ACEOF |
|
|
11152 | |
|
|
11153 | fi |
|
|
11154 | |
|
|
11155 | |
|
|
11156 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
11157 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
|
|
11158 | if test "${path_utmp+set}" = set; then |
|
|
11159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11160 | else |
|
|
11161 | if test "$cross_compiling" = yes; then |
|
|
11162 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
11163 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
11164 | else |
|
|
11165 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11166 | /* confdefs.h. */ |
|
|
11167 | _ACEOF |
|
|
11168 | cat confdefs.h >>conftest.$ac_ext |
|
|
11169 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11170 | /* end confdefs.h. */ |
|
|
11171 | #include <stdio.h> |
|
|
11172 | #include <sys/types.h> |
|
|
11173 | #include <utmp.h> |
|
|
11174 | #include <errno.h> |
|
|
11175 | main() |
|
|
11176 | { |
|
|
11177 | char **u, *utmplist[] = { |
|
|
11178 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
11179 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11180 | if (!f) exit(1); |
|
|
11181 | #ifdef UTMP_FILE |
|
|
11182 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
11183 | exit(0); |
|
|
11184 | #endif |
|
|
11185 | #ifdef _PATH_UTMP |
|
|
11186 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
11187 | exit(0); |
|
|
11188 | #endif |
|
|
11189 | for (u = utmplist; *u; u++) { |
|
|
11190 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11191 | fprintf(f, "%s\n", *u); |
|
|
11192 | exit(0); |
|
|
11193 | } |
|
|
11194 | } |
|
|
11195 | exit(0); |
|
|
11196 | } |
|
|
11197 | _ACEOF |
|
|
11198 | rm -f conftest$ac_exeext |
|
|
11199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11200 | (eval $ac_link) 2>&5 |
|
|
11201 | ac_status=$? |
|
|
11202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11203 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11205 | (eval $ac_try) 2>&5 |
|
|
11206 | ac_status=$? |
|
|
11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11208 | (exit $ac_status); }; }; then |
|
|
11209 | path_utmp=`cat conftestval` |
|
|
11210 | else |
|
|
11211 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11212 | echo "$as_me: failed program was:" >&5 |
|
|
11213 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11214 | |
|
|
11215 | ( exit $ac_status ) |
|
|
11216 | path_utmp= |
|
|
11217 | fi |
|
|
11218 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11219 | fi |
|
|
11220 | fi |
|
|
11221 | echo "$as_me:$LINENO: result: $path_utmp" >&5 |
|
|
11222 | echo "${ECHO_T}$path_utmp" >&6 |
|
|
11223 | if test x$path_utmp != x; then |
|
|
11224 | |
|
|
11225 | cat >>confdefs.h <<_ACEOF |
|
|
11226 | #define UTMP_FILE "$path_utmp" |
|
|
11227 | _ACEOF |
|
|
11228 | |
|
|
11229 | fi |
|
|
11230 | |
|
|
11231 | |
|
|
11232 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
11233 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
|
|
11234 | if test "${path_utmpx+set}" = set; then |
|
|
11235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11236 | else |
|
|
11237 | if test "$cross_compiling" = yes; then |
|
|
11238 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
|
|
11239 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
|
|
11240 | else |
|
|
11241 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11242 | /* confdefs.h. */ |
|
|
11243 | _ACEOF |
|
|
11244 | cat confdefs.h >>conftest.$ac_ext |
|
|
11245 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11246 | /* end confdefs.h. */ |
|
|
11247 | #include <stdio.h> |
|
|
11248 | #include <sys/types.h> |
|
|
11249 | #include <utmpx.h> |
|
|
11250 | #include <errno.h> |
|
|
11251 | #include <sys/stat.h> |
|
|
11252 | #ifdef HAVE_STRING_H |
|
|
11253 | #include <string.h> |
|
|
11254 | #endif |
|
|
11255 | main() |
|
|
11256 | { |
|
|
11257 | char **u, *p, *utmplist[] = { |
|
|
11258 | #ifdef UTMPX_FILE |
|
|
11259 | UTMPX_FILE, |
|
|
11260 | #endif |
|
|
11261 | #ifdef _PATH_UTMPX |
|
|
11262 | _PATH_UTMPX, |
|
|
11263 | #endif |
|
|
11264 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
11265 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11266 | struct stat statu, statux; |
|
|
11267 | if (!f) exit(1); |
|
|
11268 | for (u = utmplist; *u; u++) { |
|
|
11269 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11270 | if (stat(*u, &statux) < 0) |
|
|
11271 | continue; |
|
|
11272 | p = strdup(*u); |
|
|
11273 | p[strlen(p) - 1] = '\0'; |
|
|
11274 | if (stat(p, &statu) >= 0 |
|
|
11275 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
11276 | continue; |
|
|
11277 | fprintf(f, "%s\n", *u); |
|
|
11278 | exit(0); |
|
|
11279 | } |
|
|
11280 | } |
|
|
11281 | exit(0); |
|
|
11282 | } |
|
|
11283 | _ACEOF |
|
|
11284 | rm -f conftest$ac_exeext |
|
|
11285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11286 | (eval $ac_link) 2>&5 |
|
|
11287 | ac_status=$? |
|
|
11288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11289 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11291 | (eval $ac_try) 2>&5 |
|
|
11292 | ac_status=$? |
|
|
11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11294 | (exit $ac_status); }; }; then |
|
|
11295 | path_utmpx=`cat conftestval` |
|
|
11296 | else |
|
|
11297 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11298 | echo "$as_me: failed program was:" >&5 |
|
|
11299 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11300 | |
|
|
11301 | ( exit $ac_status ) |
|
|
11302 | path_utmpx= |
|
|
11303 | fi |
|
|
11304 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11305 | fi |
|
|
11306 | fi |
|
|
11307 | echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
|
|
11308 | echo "${ECHO_T}$path_utmpx" >&6 |
|
|
11309 | if test x$path_utmpx != x; then |
|
|
11310 | |
|
|
11311 | cat >>confdefs.h <<_ACEOF |
|
|
11312 | #define UTMPX_FILE "$path_utmpx" |
|
|
11313 | _ACEOF |
|
|
11314 | |
|
|
11315 | fi |
|
|
11316 | |
|
|
11317 | |
|
|
11318 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
11319 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
|
|
11320 | if test "${path_wtmp+set}" = set; then |
|
|
11321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11322 | else |
|
|
11323 | if test "$cross_compiling" = yes; then |
|
|
11324 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
11325 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
11326 | else |
|
|
11327 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11328 | /* confdefs.h. */ |
|
|
11329 | _ACEOF |
|
|
11330 | cat confdefs.h >>conftest.$ac_ext |
|
|
11331 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11332 | /* end confdefs.h. */ |
|
|
11333 | #include <stdio.h> |
|
|
11334 | #include <sys/types.h> |
|
|
11335 | #ifdef HAVE_UTMP_H |
|
|
11336 | #include <utmp.h> |
|
|
11337 | #endif |
|
|
11338 | #include <errno.h> |
|
|
11339 | main() |
|
|
11340 | { |
|
|
11341 | char **w, *wtmplist[] = { |
|
|
11342 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
11343 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11344 | if (!f) exit(1); |
|
|
11345 | #ifdef WTMP_FILE |
|
|
11346 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
11347 | exit(0); |
|
|
11348 | #endif |
|
|
11349 | #ifdef _PATH_WTMP |
|
|
11350 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
11351 | exit(0); |
|
|
11352 | #endif |
|
|
11353 | for (w = wtmplist; *w; w++) { |
|
|
11354 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11355 | fprintf(f, "%s\n", *w); |
|
|
11356 | exit(0); |
|
|
11357 | } |
|
|
11358 | } |
|
|
11359 | exit(0); |
|
|
11360 | } |
|
|
11361 | _ACEOF |
|
|
11362 | rm -f conftest$ac_exeext |
|
|
11363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11364 | (eval $ac_link) 2>&5 |
|
|
11365 | ac_status=$? |
|
|
11366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11367 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11369 | (eval $ac_try) 2>&5 |
|
|
11370 | ac_status=$? |
|
|
11371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11372 | (exit $ac_status); }; }; then |
|
|
11373 | path_wtmp=`cat conftestval` |
|
|
11374 | else |
|
|
11375 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11376 | echo "$as_me: failed program was:" >&5 |
|
|
11377 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11378 | |
|
|
11379 | ( exit $ac_status ) |
|
|
11380 | path_wtmp= |
|
|
11381 | fi |
|
|
11382 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11383 | fi |
|
|
11384 | fi |
|
|
11385 | echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
|
|
11386 | echo "${ECHO_T}$path_wtmp" >&6 |
|
|
11387 | if test x$path_wtmp != x; then |
|
|
11388 | |
|
|
11389 | cat >>confdefs.h <<_ACEOF |
|
|
11390 | #define WTMP_FILE "$path_wtmp" |
|
|
11391 | _ACEOF |
|
|
11392 | |
|
|
11393 | fi |
|
|
11394 | |
|
|
11395 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
11396 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
|
|
11397 | if test "${path_wtmpx+set}" = set; then |
|
|
11398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11399 | else |
|
|
11400 | if test "$cross_compiling" = yes; then |
|
|
11401 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
|
|
11402 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
|
|
11403 | else |
|
|
11404 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11405 | /* confdefs.h. */ |
|
|
11406 | _ACEOF |
|
|
11407 | cat confdefs.h >>conftest.$ac_ext |
|
|
11408 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11409 | /* end confdefs.h. */ |
|
|
11410 | #include <stdio.h> |
|
|
11411 | #ifdef HAVE_UTMPX_H |
|
|
11412 | #include <utmpx.h> |
|
|
11413 | #endif |
|
|
11414 | #include <errno.h> |
|
|
11415 | main() |
|
|
11416 | { |
|
|
11417 | char **w, *wtmplist[] = { |
|
|
11418 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
11419 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11420 | if (!f) exit(1); |
|
|
11421 | #ifdef WTMPX_FILE |
|
|
11422 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
11423 | exit(0); |
|
|
11424 | #endif |
|
|
11425 | #ifdef _PATH_WTMPX |
|
|
11426 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
11427 | exit(0); |
|
|
11428 | #endif |
|
|
11429 | for (w = wtmplist; *w; w++) { |
|
|
11430 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11431 | fprintf(f, "%s\n", *w); |
|
|
11432 | exit(0); |
|
|
11433 | } |
|
|
11434 | } |
|
|
11435 | exit(0); |
|
|
11436 | } |
|
|
11437 | _ACEOF |
|
|
11438 | rm -f conftest$ac_exeext |
|
|
11439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11440 | (eval $ac_link) 2>&5 |
|
|
11441 | ac_status=$? |
|
|
11442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11443 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11445 | (eval $ac_try) 2>&5 |
|
|
11446 | ac_status=$? |
|
|
11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11448 | (exit $ac_status); }; }; then |
|
|
11449 | path_wtmpx=`cat conftestval` |
|
|
11450 | else |
|
|
11451 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11452 | echo "$as_me: failed program was:" >&5 |
|
|
11453 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11454 | |
|
|
11455 | ( exit $ac_status ) |
|
|
11456 | path_wtmpx= |
|
|
11457 | fi |
|
|
11458 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11459 | fi |
|
|
11460 | fi |
|
|
11461 | echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
|
|
11462 | echo "${ECHO_T}$path_wtmpx" >&6 |
|
|
11463 | if test x$path_wtmpx != x; then |
|
|
11464 | |
|
|
11465 | cat >>confdefs.h <<_ACEOF |
|
|
11466 | #define WTMPX_FILE "$path_wtmpx" |
|
|
11467 | _ACEOF |
|
|
11468 | |
|
|
11469 | fi |
|
|
11470 | |
|
|
11471 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
11472 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
|
|
11473 | if test "${path_lastlog+set}" = set; then |
|
|
11474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11475 | else |
|
|
11476 | if test "$cross_compiling" = yes; then |
|
|
11477 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
|
|
11478 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
|
|
11479 | else |
|
|
11480 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11481 | /* confdefs.h. */ |
|
|
11482 | _ACEOF |
|
|
11483 | cat confdefs.h >>conftest.$ac_ext |
|
|
11484 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11485 | /* end confdefs.h. */ |
|
|
11486 | #include <stdio.h> |
|
|
11487 | #include <sys/types.h> |
|
|
11488 | #ifdef HAVE_UTMPX_H |
|
|
11489 | #include <utmpx.h> |
|
|
11490 | #elif defined(HAVE_UTMP_H) |
|
|
11491 | #include <utmp.h> |
|
|
11492 | #endif |
|
|
11493 | #ifdef HAVE_LASTLOG_H |
|
|
11494 | #include <lastlog.h> |
|
|
11495 | #endif |
|
|
11496 | #include <errno.h> |
|
|
11497 | main() |
|
|
11498 | { |
|
|
11499 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
11500 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11501 | if (!f) exit(1); |
|
|
11502 | #ifdef LASTLOG_FILE |
|
|
11503 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
11504 | exit(0); |
|
|
11505 | #endif |
|
|
11506 | #ifdef _PATH_LASTLOG |
|
|
11507 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
11508 | exit(0); |
|
|
11509 | #endif |
|
|
11510 | for (w = lastloglist; *w; w++) { |
|
|
11511 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11512 | fprintf(f, "%s\n", *w); |
|
|
11513 | exit(0); |
|
|
11514 | } |
|
|
11515 | } |
|
|
11516 | exit(0); |
|
|
11517 | } |
|
|
11518 | _ACEOF |
|
|
11519 | rm -f conftest$ac_exeext |
|
|
11520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11521 | (eval $ac_link) 2>&5 |
|
|
11522 | ac_status=$? |
|
|
11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11524 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11526 | (eval $ac_try) 2>&5 |
|
|
11527 | ac_status=$? |
|
|
11528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11529 | (exit $ac_status); }; }; then |
|
|
11530 | path_lastlog=`cat conftestval` |
|
|
11531 | else |
|
|
11532 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11533 | echo "$as_me: failed program was:" >&5 |
|
|
11534 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11535 | |
|
|
11536 | ( exit $ac_status ) |
|
|
11537 | path_lastlog= |
|
|
11538 | fi |
|
|
11539 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11540 | fi |
|
|
11541 | fi |
|
|
11542 | echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
|
|
11543 | echo "${ECHO_T}$path_lastlog" >&6 |
|
|
11544 | if test x$path_lastlog != x; then |
|
|
11545 | |
|
|
11546 | cat >>confdefs.h <<_ACEOF |
|
|
11547 | #define LASTLOG_FILE "$path_lastlog" |
|
|
11548 | _ACEOF |
|
|
11549 | |
|
|
11550 | if test -d "$path_lastlog"; then |
|
|
11551 | |
|
|
11552 | cat >>confdefs.h <<\_ACEOF |
|
|
11553 | #define LASTLOG_IS_DIR 1 |
|
|
11554 | _ACEOF |
|
|
11555 | |
|
|
11556 | fi |
|
|
11557 | fi |
|
|
11558 | |
|
|
11559 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
11560 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
|
|
11561 | if test "${path_lastlogx+set}" = set; then |
|
|
11562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11563 | else |
|
|
11564 | if test "$cross_compiling" = yes; then |
|
|
11565 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
|
|
11566 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
|
|
11567 | else |
|
|
11568 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11569 | /* confdefs.h. */ |
|
|
11570 | _ACEOF |
|
|
11571 | cat confdefs.h >>conftest.$ac_ext |
|
|
11572 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11573 | /* end confdefs.h. */ |
|
|
11574 | #include <stdio.h> |
|
|
11575 | #ifdef HAVE_UTMPX_H |
|
|
11576 | #include <utmpx.h> |
|
|
11577 | #endif |
|
|
11578 | #include <errno.h> |
|
|
11579 | main() |
|
|
11580 | { |
|
|
11581 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
11582 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11583 | if (!f) exit(1); |
|
|
11584 | #ifdef LASTLOGX_FILE |
|
|
11585 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
11586 | exit(0); |
|
|
11587 | #endif |
|
|
11588 | #ifdef _PATH_LASTLOGX |
|
|
11589 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
11590 | exit(0); |
|
|
11591 | #endif |
|
|
11592 | for (w = wtmplist; *w; w++) { |
|
|
11593 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11594 | fprintf(f, "%s\n", *w); |
|
|
11595 | exit(0); |
|
|
11596 | } |
|
|
11597 | } |
|
|
11598 | exit(0); |
|
|
11599 | } |
|
|
11600 | _ACEOF |
|
|
11601 | rm -f conftest$ac_exeext |
|
|
11602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11603 | (eval $ac_link) 2>&5 |
|
|
11604 | ac_status=$? |
|
|
11605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11608 | (eval $ac_try) 2>&5 |
|
|
11609 | ac_status=$? |
|
|
11610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11611 | (exit $ac_status); }; }; then |
|
|
11612 | path_lastlogx=`cat conftestval` |
|
|
11613 | else |
|
|
11614 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11615 | echo "$as_me: failed program was:" >&5 |
|
|
11616 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11617 | |
|
|
11618 | ( exit $ac_status ) |
|
|
11619 | path_lastlogx= |
|
|
11620 | fi |
|
|
11621 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11622 | fi |
|
|
11623 | fi |
|
|
11624 | echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
|
|
11625 | echo "${ECHO_T}$path_lastlogx" >&6 |
|
|
11626 | if test x$path_lastlogx != x; then |
|
|
11627 | |
|
|
11628 | cat >>confdefs.h <<_ACEOF |
|
|
11629 | #define LASTLOGX_FILE "$path_lastlogx" |
|
|
11630 | _ACEOF |
|
|
11631 | |
|
|
11632 | fi |
|
|
11633 | |
|
|
11634 | if test x$support_utmp != xyes; then |
|
|
11635 | echo " utmp support: disabled" |
|
|
11636 | echo |
|
|
11637 | else |
|
|
11638 | echo " utmp support: enabled |
|
|
11639 | utmp file: $path_utmp |
|
|
11640 | utmpx file: $path_utmpx |
|
|
11641 | wtmp file: $path_wtmp |
|
|
11642 | wtmpx file: $path_wtmpx |
|
|
11643 | lastlog file: $path_lastlog |
|
|
11644 | lastlogx file: $path_lastlogx" |
|
|
11645 | fi |
|
|
11646 | |
|
|
11647 | |
|
|
11648 | |
|
|
11649 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11650 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
|
|
11651 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11653 | else |
|
|
11654 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11655 | do |
|
|
11656 | if test -f "$ttys_file" ; then |
|
|
11657 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11658 | break |
|
|
11659 | fi |
|
|
11660 | done |
|
|
11661 | |
|
|
11662 | fi |
|
|
11663 | echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11664 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6 |
|
|
11665 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11666 | |
|
|
11667 | cat >>confdefs.h <<_ACEOF |
|
|
11668 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11669 | _ACEOF |
|
|
11670 | |
|
|
11671 | fi |
|
|
11672 | |
|
|
11673 | |
|
|
11674 | ac_save_LIBS=$LIBS |
|
|
11675 | ac_save_CFLAGS=$CFLAGS |
|
|
11676 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
11677 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
11678 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
11679 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
11680 | fi |
|
|
11681 | echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
|
|
11682 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6 |
|
|
11683 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
|
|
11684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11685 | else |
|
|
11686 | if test "$cross_compiling" = yes; then |
|
|
11687 | { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 |
|
|
11688 | echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;} |
|
|
11689 | else |
|
|
11690 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11691 | /* confdefs.h. */ |
|
|
11692 | _ACEOF |
|
|
11693 | cat confdefs.h >>conftest.$ac_ext |
|
|
11694 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11695 | /* end confdefs.h. */ |
|
|
11696 | #include <X11/Xlib.h> |
|
|
11697 | main() { |
|
|
11698 | char *p; |
|
|
11699 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
11700 | exit (XSupportsLocale() ? 0 : 1); |
|
|
11701 | else |
|
|
11702 | exit (1);} |
|
|
11703 | _ACEOF |
|
|
11704 | rm -f conftest$ac_exeext |
|
|
11705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11706 | (eval $ac_link) 2>&5 |
|
|
11707 | ac_status=$? |
|
|
11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11709 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11711 | (eval $ac_try) 2>&5 |
|
|
11712 | ac_status=$? |
|
|
11713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11714 | (exit $ac_status); }; }; then |
|
|
11715 | rxvt_cv_func_xlocale=yes |
|
|
11716 | else |
|
|
11717 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11718 | echo "$as_me: failed program was:" >&5 |
|
|
11719 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11720 | |
|
|
11721 | ( exit $ac_status ) |
|
|
11722 | rxvt_cv_func_xlocale=no |
|
|
11723 | fi |
|
|
11724 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11725 | fi |
|
|
11726 | fi |
|
|
11727 | echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
|
|
11728 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6 |
|
|
11729 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
11730 | |
|
|
11731 | cat >>confdefs.h <<\_ACEOF |
|
|
11732 | #define HAVE_XLOCALE 1 |
|
|
11733 | _ACEOF |
|
|
11734 | |
|
|
11735 | fi |
|
|
11736 | |
|
|
11737 | echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
|
|
11738 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6 |
|
|
11739 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
|
|
11740 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11741 | else |
|
|
11742 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11743 | /* confdefs.h. */ |
|
|
11744 | _ACEOF |
|
|
11745 | cat confdefs.h >>conftest.$ac_ext |
|
|
11746 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11747 | /* end confdefs.h. */ |
|
|
11748 | #define X_LOCALE 1 |
|
|
11749 | #include <X11/Xlocale.h> |
|
|
11750 | int |
|
|
11751 | main () |
|
|
11752 | { |
|
|
11753 | setlocale(LC_CTYPE, ""); |
|
|
11754 | ; |
|
|
11755 | return 0; |
|
|
11756 | } |
|
|
11757 | _ACEOF |
|
|
11758 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11760 | (eval $ac_link) 2>conftest.er1 |
|
|
11761 | ac_status=$? |
|
|
11762 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11763 | rm -f conftest.er1 |
|
|
11764 | cat conftest.err >&5 |
|
|
11765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11766 | (exit $ac_status); } && |
|
|
11767 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11769 | (eval $ac_try) 2>&5 |
|
|
11770 | ac_status=$? |
|
|
11771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11772 | (exit $ac_status); }; } && |
|
|
11773 | { ac_try='test -s conftest$ac_exeext' |
|
|
11774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11775 | (eval $ac_try) 2>&5 |
|
|
11776 | ac_status=$? |
|
|
11777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11778 | (exit $ac_status); }; }; then |
|
|
11779 | rxvt_cv_func_xsetlocale=yes |
|
|
11780 | else |
|
|
11781 | echo "$as_me: failed program was:" >&5 |
|
|
11782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11783 | |
|
|
11784 | rxvt_cv_func_xsetlocale=no |
|
|
11785 | fi |
|
|
11786 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11787 | conftest$ac_exeext conftest.$ac_ext |
|
|
11788 | fi |
|
|
11789 | echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
11790 | echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6 |
|
|
11791 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
11792 | |
|
|
11793 | cat >>confdefs.h <<\_ACEOF |
|
|
11794 | #define HAVE_XSETLOCALE 1 |
|
|
11795 | _ACEOF |
|
|
11796 | |
|
|
11797 | fi |
|
|
11798 | LIBS=$ac_save_LIBS |
|
|
11799 | CFLAGS=$ac_save_CFLAGS |
|
|
11800 | |
|
|
11801 | echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
|
|
11802 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6 |
|
|
11803 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
|
|
11804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11805 | else |
|
|
11806 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11807 | /* confdefs.h. */ |
|
|
11808 | _ACEOF |
|
|
11809 | cat confdefs.h >>conftest.$ac_ext |
|
|
11810 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11811 | /* end confdefs.h. */ |
|
|
11812 | #include <clocale> |
|
|
11813 | int |
|
|
11814 | main () |
|
|
11815 | { |
|
|
11816 | setlocale(LC_CTYPE, ""); |
|
|
11817 | ; |
|
|
11818 | return 0; |
|
|
11819 | } |
|
|
11820 | _ACEOF |
|
|
11821 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11823 | (eval $ac_link) 2>conftest.er1 |
|
|
11824 | ac_status=$? |
|
|
11825 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11826 | rm -f conftest.er1 |
|
|
11827 | cat conftest.err >&5 |
|
|
11828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11829 | (exit $ac_status); } && |
|
|
11830 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11832 | (eval $ac_try) 2>&5 |
|
|
11833 | ac_status=$? |
|
|
11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11835 | (exit $ac_status); }; } && |
|
|
11836 | { ac_try='test -s conftest$ac_exeext' |
|
|
11837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11838 | (eval $ac_try) 2>&5 |
|
|
11839 | ac_status=$? |
|
|
11840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11841 | (exit $ac_status); }; }; then |
|
|
11842 | rxvt_cv_func_setlocale=yes |
|
|
11843 | else |
|
|
11844 | echo "$as_me: failed program was:" >&5 |
|
|
11845 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11846 | |
|
|
11847 | rxvt_cv_func_setlocale=no |
|
|
11848 | fi |
|
|
11849 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11850 | conftest$ac_exeext conftest.$ac_ext |
|
|
11851 | fi |
|
|
11852 | echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 |
|
|
11853 | echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6 |
|
|
11854 | if test x$rxvt_cv_func_setlocale = xyes; then |
|
|
11855 | |
|
|
11856 | cat >>confdefs.h <<\_ACEOF |
|
|
11857 | #define HAVE_SETLOCALE 1 |
|
|
11858 | _ACEOF |
|
|
11859 | |
|
|
11860 | fi |
|
|
11861 | |
|
|
11862 | echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 |
|
|
11863 | echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6 |
|
|
11864 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then |
|
|
11865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11866 | else |
|
|
11867 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11868 | /* confdefs.h. */ |
|
|
11869 | _ACEOF |
|
|
11870 | cat confdefs.h >>conftest.$ac_ext |
|
|
11871 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11872 | /* end confdefs.h. */ |
|
|
11873 | #include <langinfo.h> |
|
|
11874 | int |
|
|
11875 | main () |
|
|
11876 | { |
|
|
11877 | nl_langinfo(CODESET); |
|
|
11878 | ; |
|
|
11879 | return 0; |
|
|
11880 | } |
|
|
11881 | _ACEOF |
|
|
11882 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11884 | (eval $ac_link) 2>conftest.er1 |
|
|
11885 | ac_status=$? |
|
|
11886 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11887 | rm -f conftest.er1 |
|
|
11888 | cat conftest.err >&5 |
|
|
11889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11890 | (exit $ac_status); } && |
|
|
11891 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11893 | (eval $ac_try) 2>&5 |
|
|
11894 | ac_status=$? |
|
|
11895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11896 | (exit $ac_status); }; } && |
|
|
11897 | { ac_try='test -s conftest$ac_exeext' |
|
|
11898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11899 | (eval $ac_try) 2>&5 |
|
|
11900 | ac_status=$? |
|
|
11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11902 | (exit $ac_status); }; }; then |
|
|
11903 | rxvt_cv_func_nl_langinfo=yes |
|
|
11904 | else |
|
|
11905 | echo "$as_me: failed program was:" >&5 |
|
|
11906 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11907 | |
|
|
11908 | rxvt_cv_func_nl_langinfo=no |
|
|
11909 | fi |
|
|
11910 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11911 | conftest$ac_exeext conftest.$ac_ext |
|
|
11912 | fi |
|
|
11913 | echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
11914 | echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6 |
|
|
11915 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
11916 | |
|
|
11917 | cat >>confdefs.h <<\_ACEOF |
|
|
11918 | #define HAVE_NL_LANGINFO 1 |
|
|
11919 | _ACEOF |
|
|
11920 | |
|
|
11921 | fi |
|
|
11922 | |
|
|
11923 | |
|
|
11924 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
11925 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11926 | if test "${can_pass_fds+set}" = set; then |
|
|
11927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11928 | else |
|
|
11929 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11930 | /* confdefs.h. */ |
|
|
11931 | _ACEOF |
|
|
11932 | cat confdefs.h >>conftest.$ac_ext |
|
|
11933 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11934 | /* end confdefs.h. */ |
|
|
11935 | |
|
|
11936 | #include <cstddef> // broken bsds (is that redundant?) need this |
|
|
11937 | #include <sys/types.h> |
|
|
11938 | #include <sys/socket.h> |
|
|
11939 | #include <sys/uio.h> |
|
|
11940 | |
|
|
11941 | int |
|
|
11942 | main () |
|
|
11943 | { |
|
|
11944 | |
|
|
11945 | { |
|
|
11946 | msghdr msg; |
|
|
11947 | iovec iov; |
|
|
11948 | char buf [100]; |
|
|
11949 | char data = 0; |
|
|
11950 | |
|
|
11951 | iov.iov_base = &data; |
|
|
11952 | iov.iov_len = 1; |
|
|
11953 | |
|
|
11954 | msg.msg_iov = &iov; |
|
|
11955 | msg.msg_iovlen = 1; |
|
|
11956 | msg.msg_control = buf; |
|
|
11957 | msg.msg_controllen = sizeof buf; |
|
|
11958 | |
|
|
11959 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11960 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11961 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11962 | cmsg->cmsg_len = 100; |
|
|
11963 | |
|
|
11964 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11965 | |
|
|
11966 | return sendmsg (3, &msg, 0); |
|
|
11967 | } |
|
|
11968 | |
|
|
11969 | ; |
|
|
11970 | return 0; |
|
|
11971 | } |
|
|
11972 | _ACEOF |
|
|
11973 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11975 | (eval $ac_link) 2>conftest.er1 |
|
|
11976 | ac_status=$? |
|
|
11977 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11978 | rm -f conftest.er1 |
|
|
11979 | cat conftest.err >&5 |
|
|
11980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11981 | (exit $ac_status); } && |
|
|
11982 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11984 | (eval $ac_try) 2>&5 |
|
|
11985 | ac_status=$? |
|
|
11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11987 | (exit $ac_status); }; } && |
|
|
11988 | { ac_try='test -s conftest$ac_exeext' |
|
|
11989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11990 | (eval $ac_try) 2>&5 |
|
|
11991 | ac_status=$? |
|
|
11992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11993 | (exit $ac_status); }; }; then |
|
|
11994 | can_pass_fds=yes |
|
|
11995 | else |
|
|
11996 | echo "$as_me: failed program was:" >&5 |
|
|
11997 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11998 | |
|
|
11999 | can_pass_fds=no |
|
|
12000 | fi |
|
|
12001 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12002 | conftest$ac_exeext conftest.$ac_ext |
|
|
12003 | fi |
|
|
12004 | echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
|
|
12005 | echo "${ECHO_T}$can_pass_fds" >&6 |
|
|
12006 | if test x$can_pass_fds = xyes; then |
|
|
12007 | |
|
|
12008 | cat >>confdefs.h <<\_ACEOF |
|
|
12009 | #define HAVE_UNIX_FDPASS 1 |
|
|
12010 | _ACEOF |
|
|
12011 | |
|
|
12012 | else |
|
|
12013 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
12014 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
12015 | { (exit 1); exit 1; }; } |
|
|
12016 | fi |
|
|
12017 | |
|
|
12018 | |
|
|
12019 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
12020 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
|
|
12021 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
12022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12023 | else |
|
|
12024 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12025 | |
|
|
12026 | #include <X11/Xlib.h> |
|
|
12027 | |
|
|
12028 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
12029 | |
|
|
12030 | void f() { |
|
|
12031 | XIMCallback cb; |
|
|
12032 | cb.callback = im_destroy_cb; |
|
|
12033 | } |
|
|
12034 | |
|
|
12035 | _ACEOF |
|
|
12036 | rm -f conftest.$ac_objext |
|
|
12037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12038 | (eval $ac_compile) 2>conftest.er1 |
|
|
12039 | ac_status=$? |
|
|
12040 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12041 | rm -f conftest.er1 |
|
|
12042 | cat conftest.err >&5 |
|
|
12043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12044 | (exit $ac_status); } && |
|
|
12045 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12047 | (eval $ac_try) 2>&5 |
|
|
12048 | ac_status=$? |
|
|
12049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12050 | (exit $ac_status); }; } && |
|
|
12051 | { ac_try='test -s conftest.$ac_objext' |
|
|
12052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12053 | (eval $ac_try) 2>&5 |
|
|
12054 | ac_status=$? |
|
|
12055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12056 | (exit $ac_status); }; }; then |
|
|
12057 | rxvt_broken_ximcb=yes |
|
|
12058 | else |
|
|
12059 | echo "$as_me: failed program was:" >&5 |
|
|
12060 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12061 | |
|
|
12062 | rxvt_broken_ximcb=no |
|
|
12063 | fi |
|
|
12064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12065 | fi |
|
|
12066 | echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
12067 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6 |
|
|
12068 | |
|
|
12069 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
12070 | |
|
|
12071 | cat >>confdefs.h <<\_ACEOF |
|
|
12072 | #define XIMCB_PROTO_BROKEN 1 |
|
|
12073 | _ACEOF |
|
|
12074 | |
|
|
12075 | fi |
|
|
12076 | |
|
|
12077 | |
|
|
12078 | |
|
|
12079 | |
|
|
12080 | |
|
|
12081 | |
|
|
12082 | |
|
|
12083 | for ac_header in \ |
|
|
12084 | pty.h \ |
|
|
12085 | util.h \ |
|
|
12086 | libutil.h \ |
|
|
12087 | sys/ioctl.h \ |
|
|
12088 | sys/stropts.h \ |
|
|
12089 | |
|
|
12090 | do |
|
|
12091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12093 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12095 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12097 | fi |
|
|
12098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12100 | else |
|
|
12101 | # Is the header compilable? |
|
|
12102 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12103 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12104 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12105 | /* confdefs.h. */ |
|
|
12106 | _ACEOF |
|
|
12107 | cat confdefs.h >>conftest.$ac_ext |
|
|
12108 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12109 | /* end confdefs.h. */ |
|
|
12110 | $ac_includes_default |
|
|
12111 | #include <$ac_header> |
|
|
12112 | _ACEOF |
|
|
12113 | rm -f conftest.$ac_objext |
|
|
12114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12115 | (eval $ac_compile) 2>conftest.er1 |
|
|
12116 | ac_status=$? |
|
|
12117 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12118 | rm -f conftest.er1 |
|
|
12119 | cat conftest.err >&5 |
|
|
12120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12121 | (exit $ac_status); } && |
|
|
12122 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12124 | (eval $ac_try) 2>&5 |
|
|
12125 | ac_status=$? |
|
|
12126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12127 | (exit $ac_status); }; } && |
|
|
12128 | { ac_try='test -s conftest.$ac_objext' |
|
|
12129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12130 | (eval $ac_try) 2>&5 |
|
|
12131 | ac_status=$? |
|
|
12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12133 | (exit $ac_status); }; }; then |
|
|
12134 | ac_header_compiler=yes |
|
|
12135 | else |
|
|
12136 | echo "$as_me: failed program was:" >&5 |
|
|
12137 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12138 | |
|
|
12139 | ac_header_compiler=no |
|
|
12140 | fi |
|
|
12141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12142 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12143 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12144 | |
|
|
12145 | # Is the header present? |
|
|
12146 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12147 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12148 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12149 | /* confdefs.h. */ |
|
|
12150 | _ACEOF |
|
|
12151 | cat confdefs.h >>conftest.$ac_ext |
|
|
12152 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12153 | /* end confdefs.h. */ |
|
|
12154 | #include <$ac_header> |
|
|
12155 | _ACEOF |
|
|
12156 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12157 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12158 | ac_status=$? |
|
|
12159 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12160 | rm -f conftest.er1 |
|
|
12161 | cat conftest.err >&5 |
|
|
12162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12163 | (exit $ac_status); } >/dev/null; then |
|
|
12164 | if test -s conftest.err; then |
|
|
12165 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12166 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12167 | else |
|
|
12168 | ac_cpp_err= |
|
|
12169 | fi |
|
|
12170 | else |
|
|
12171 | ac_cpp_err=yes |
|
|
12172 | fi |
|
|
12173 | if test -z "$ac_cpp_err"; then |
|
|
12174 | ac_header_preproc=yes |
|
|
12175 | else |
|
|
12176 | echo "$as_me: failed program was:" >&5 |
|
|
12177 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12178 | |
|
|
12179 | ac_header_preproc=no |
|
|
12180 | fi |
|
|
12181 | rm -f conftest.err conftest.$ac_ext |
|
|
12182 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12183 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12184 | |
|
|
12185 | # So? What about this header? |
|
|
12186 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12187 | yes:no: ) |
|
|
12188 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12189 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12191 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12192 | ac_header_preproc=yes |
|
|
12193 | ;; |
|
|
12194 | no:yes:* ) |
|
|
12195 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12196 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12197 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12198 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12199 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12200 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12201 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12202 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12203 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12204 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12205 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12206 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12207 | ( |
|
|
12208 | cat <<\_ASBOX |
|
|
12209 | ## ------------------------------------------ ## |
|
|
12210 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12211 | ## ------------------------------------------ ## |
|
|
12212 | _ASBOX |
|
|
12213 | ) | |
|
|
12214 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12215 | ;; |
|
|
12216 | esac |
|
|
12217 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12218 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12219 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12221 | else |
|
|
12222 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12223 | fi |
|
|
12224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12225 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12226 | |
|
|
12227 | fi |
|
|
12228 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12229 | cat >>confdefs.h <<_ACEOF |
|
|
12230 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12231 | _ACEOF |
|
|
12232 | |
|
|
12233 | fi |
|
|
12234 | |
|
|
12235 | done |
|
|
12236 | |
|
|
12237 | |
|
|
12238 | |
|
|
12239 | |
|
|
12240 | |
|
|
12241 | |
|
|
12242 | |
|
|
12243 | |
|
|
12244 | |
|
|
12245 | |
|
|
12246 | |
|
|
12247 | for ac_func in \ |
|
|
12248 | revoke \ |
|
|
12249 | _getpty \ |
|
|
12250 | getpt \ |
|
|
12251 | posix_openpt \ |
|
|
12252 | isastream \ |
|
|
12253 | setuid \ |
|
|
12254 | seteuid \ |
|
|
12255 | setreuid \ |
|
|
12256 | setresuid \ |
|
|
12257 | |
|
|
12258 | do |
|
|
12259 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12260 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12261 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12262 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12264 | else |
|
|
12265 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12266 | /* confdefs.h. */ |
|
|
12267 | _ACEOF |
|
|
12268 | cat confdefs.h >>conftest.$ac_ext |
|
|
12269 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12270 | /* end confdefs.h. */ |
|
|
12271 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12272 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12273 | #define $ac_func innocuous_$ac_func |
|
|
12274 | |
|
|
12275 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12276 | which can conflict with char $ac_func (); below. |
|
|
12277 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12278 | <limits.h> exists even on freestanding compilers. */ |
|
|
12279 | |
|
|
12280 | #ifdef __STDC__ |
|
|
12281 | # include <limits.h> |
|
|
12282 | #else |
|
|
12283 | # include <assert.h> |
|
|
12284 | #endif |
|
|
12285 | |
|
|
12286 | #undef $ac_func |
|
|
12287 | |
|
|
12288 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12289 | #ifdef __cplusplus |
|
|
12290 | extern "C" |
|
|
12291 | { |
|
|
12292 | #endif |
|
|
12293 | /* We use char because int might match the return type of a gcc2 |
|
|
12294 | builtin and then its argument prototype would still apply. */ |
|
|
12295 | char $ac_func (); |
|
|
12296 | /* The GNU C library defines this for functions which it implements |
|
|
12297 | to always fail with ENOSYS. Some functions are actually named |
|
|
12298 | something starting with __ and the normal name is an alias. */ |
|
|
12299 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12300 | choke me |
|
|
12301 | #else |
|
|
12302 | char (*f) () = $ac_func; |
|
|
12303 | #endif |
|
|
12304 | #ifdef __cplusplus |
|
|
12305 | } |
|
|
12306 | #endif |
|
|
12307 | |
|
|
12308 | int |
|
|
12309 | main () |
|
|
12310 | { |
|
|
12311 | return f != $ac_func; |
|
|
12312 | ; |
|
|
12313 | return 0; |
|
|
12314 | } |
|
|
12315 | _ACEOF |
|
|
12316 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12318 | (eval $ac_link) 2>conftest.er1 |
|
|
12319 | ac_status=$? |
|
|
12320 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12321 | rm -f conftest.er1 |
|
|
12322 | cat conftest.err >&5 |
|
|
12323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12324 | (exit $ac_status); } && |
|
|
12325 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12327 | (eval $ac_try) 2>&5 |
|
|
12328 | ac_status=$? |
|
|
12329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12330 | (exit $ac_status); }; } && |
|
|
12331 | { ac_try='test -s conftest$ac_exeext' |
|
|
12332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12333 | (eval $ac_try) 2>&5 |
|
|
12334 | ac_status=$? |
|
|
12335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12336 | (exit $ac_status); }; }; then |
|
|
12337 | eval "$as_ac_var=yes" |
|
|
12338 | else |
|
|
12339 | echo "$as_me: failed program was:" >&5 |
|
|
12340 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12341 | |
|
|
12342 | eval "$as_ac_var=no" |
|
|
12343 | fi |
|
|
12344 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12345 | conftest$ac_exeext conftest.$ac_ext |
|
|
12346 | fi |
|
|
12347 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12348 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12349 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12350 | cat >>confdefs.h <<_ACEOF |
|
|
12351 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12352 | _ACEOF |
|
|
12353 | |
|
|
12354 | fi |
|
|
12355 | done |
|
|
12356 | |
|
|
12357 | |
|
|
12358 | have_clone=no |
|
|
12359 | |
|
|
12360 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12361 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12362 | if test -e /dev/ptym/clone; then |
|
|
12363 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12364 | echo "${ECHO_T}yes" >&6 |
|
|
12365 | |
|
|
12366 | cat >>confdefs.h <<\_ACEOF |
|
|
12367 | #define HAVE_DEV_CLONE 1 |
|
|
12368 | _ACEOF |
|
|
12369 | |
|
|
12370 | |
|
|
12371 | cat >>confdefs.h <<\_ACEOF |
|
|
12372 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12373 | _ACEOF |
|
|
12374 | |
|
|
12375 | have_clone=yes |
|
|
12376 | else |
|
|
12377 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12378 | echo "${ECHO_T}no" >&6 |
|
|
12379 | fi |
|
|
12380 | |
|
|
12381 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12382 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12383 | if test -e /dev/ptc; then |
|
|
12384 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12385 | echo "${ECHO_T}yes" >&6 |
|
|
12386 | |
|
|
12387 | cat >>confdefs.h <<\_ACEOF |
|
|
12388 | #define HAVE_DEV_PTC 1 |
|
|
12389 | _ACEOF |
|
|
12390 | |
|
|
12391 | |
|
|
12392 | cat >>confdefs.h <<\_ACEOF |
|
|
12393 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12394 | _ACEOF |
|
|
12395 | |
|
|
12396 | have_clone=yes |
|
|
12397 | else |
|
|
12398 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12399 | echo "${ECHO_T}no" >&6 |
|
|
12400 | fi |
|
|
12401 | |
|
|
12402 | case $host in |
|
|
12403 | *-*-cygwin*) |
|
|
12404 | have_clone=yes |
|
|
12405 | |
|
|
12406 | cat >>confdefs.h <<\_ACEOF |
|
|
12407 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12408 | _ACEOF |
|
|
12409 | |
|
|
12410 | ;; |
|
|
12411 | *) |
|
|
12412 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12413 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12414 | if test -e /dev/ptmx; then |
|
|
12415 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12416 | echo "${ECHO_T}yes" >&6 |
|
|
12417 | |
|
|
12418 | cat >>confdefs.h <<\_ACEOF |
|
|
12419 | #define HAVE_DEV_PTMX 1 |
|
|
12420 | _ACEOF |
|
|
12421 | |
|
|
12422 | |
|
|
12423 | cat >>confdefs.h <<\_ACEOF |
|
|
12424 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12425 | _ACEOF |
|
|
12426 | |
|
|
12427 | have_clone=yes |
|
|
12428 | else |
|
|
12429 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12430 | echo "${ECHO_T}no" >&6 |
|
|
12431 | fi |
|
|
12432 | ;; |
|
|
12433 | esac |
|
|
12434 | |
|
|
12435 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12436 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12437 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12438 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12439 | /* confdefs.h. */ |
|
|
12440 | _ACEOF |
|
|
12441 | cat confdefs.h >>conftest.$ac_ext |
|
|
12442 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12443 | /* end confdefs.h. */ |
|
|
12444 | #include <stdlib.h> |
|
|
12445 | int |
|
|
12446 | main () |
|
|
12447 | { |
|
|
12448 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12449 | ; |
|
|
12450 | return 0; |
|
|
12451 | } |
|
|
12452 | _ACEOF |
|
|
12453 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12455 | (eval $ac_link) 2>conftest.er1 |
|
|
12456 | ac_status=$? |
|
|
12457 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12458 | rm -f conftest.er1 |
|
|
12459 | cat conftest.err >&5 |
|
|
12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12461 | (exit $ac_status); } && |
|
|
12462 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12464 | (eval $ac_try) 2>&5 |
|
|
12465 | ac_status=$? |
|
|
12466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12467 | (exit $ac_status); }; } && |
|
|
12468 | { ac_try='test -s conftest$ac_exeext' |
|
|
12469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12470 | (eval $ac_try) 2>&5 |
|
|
12471 | ac_status=$? |
|
|
12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12473 | (exit $ac_status); }; }; then |
|
|
12474 | unix98_pty=yes |
|
|
12475 | |
|
|
12476 | cat >>confdefs.h <<\_ACEOF |
|
|
12477 | #define UNIX98_PTY 1 |
|
|
12478 | _ACEOF |
|
|
12479 | |
|
|
12480 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12481 | echo "${ECHO_T}yes" >&6 |
|
|
12482 | else |
|
|
12483 | echo "$as_me: failed program was:" >&5 |
|
|
12484 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12485 | |
|
|
12486 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12487 | echo "${ECHO_T}no" >&6 |
|
|
12488 | fi |
|
|
12489 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12490 | conftest$ac_exeext conftest.$ac_ext |
|
|
12491 | fi |
|
|
12492 | |
|
|
12493 | if test -z "$unix98_pty"; then |
|
|
12494 | |
|
|
12495 | for ac_func in openpty |
|
|
12496 | do |
|
|
12497 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12498 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12499 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12500 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12502 | else |
|
|
12503 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12504 | /* confdefs.h. */ |
|
|
12505 | _ACEOF |
|
|
12506 | cat confdefs.h >>conftest.$ac_ext |
|
|
12507 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12508 | /* end confdefs.h. */ |
|
|
12509 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12510 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12511 | #define $ac_func innocuous_$ac_func |
|
|
12512 | |
|
|
12513 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12514 | which can conflict with char $ac_func (); below. |
|
|
12515 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12516 | <limits.h> exists even on freestanding compilers. */ |
|
|
12517 | |
|
|
12518 | #ifdef __STDC__ |
|
|
12519 | # include <limits.h> |
|
|
12520 | #else |
|
|
12521 | # include <assert.h> |
|
|
12522 | #endif |
|
|
12523 | |
|
|
12524 | #undef $ac_func |
|
|
12525 | |
|
|
12526 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12527 | #ifdef __cplusplus |
|
|
12528 | extern "C" |
|
|
12529 | { |
|
|
12530 | #endif |
|
|
12531 | /* We use char because int might match the return type of a gcc2 |
|
|
12532 | builtin and then its argument prototype would still apply. */ |
|
|
12533 | char $ac_func (); |
|
|
12534 | /* The GNU C library defines this for functions which it implements |
|
|
12535 | to always fail with ENOSYS. Some functions are actually named |
|
|
12536 | something starting with __ and the normal name is an alias. */ |
|
|
12537 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12538 | choke me |
|
|
12539 | #else |
|
|
12540 | char (*f) () = $ac_func; |
|
|
12541 | #endif |
|
|
12542 | #ifdef __cplusplus |
|
|
12543 | } |
|
|
12544 | #endif |
|
|
12545 | |
|
|
12546 | int |
|
|
12547 | main () |
|
|
12548 | { |
|
|
12549 | return f != $ac_func; |
|
|
12550 | ; |
|
|
12551 | return 0; |
|
|
12552 | } |
|
|
12553 | _ACEOF |
|
|
12554 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12556 | (eval $ac_link) 2>conftest.er1 |
|
|
12557 | ac_status=$? |
|
|
12558 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12559 | rm -f conftest.er1 |
|
|
12560 | cat conftest.err >&5 |
|
|
12561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12562 | (exit $ac_status); } && |
|
|
12563 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12565 | (eval $ac_try) 2>&5 |
|
|
12566 | ac_status=$? |
|
|
12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12568 | (exit $ac_status); }; } && |
|
|
12569 | { ac_try='test -s conftest$ac_exeext' |
|
|
12570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12571 | (eval $ac_try) 2>&5 |
|
|
12572 | ac_status=$? |
|
|
12573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12574 | (exit $ac_status); }; }; then |
|
|
12575 | eval "$as_ac_var=yes" |
|
|
12576 | else |
|
|
12577 | echo "$as_me: failed program was:" >&5 |
|
|
12578 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12579 | |
|
|
12580 | eval "$as_ac_var=no" |
|
|
12581 | fi |
|
|
12582 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12583 | conftest$ac_exeext conftest.$ac_ext |
|
|
12584 | fi |
|
|
12585 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12586 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12587 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12588 | cat >>confdefs.h <<_ACEOF |
|
|
12589 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12590 | _ACEOF |
|
|
12591 | |
|
|
12592 | else |
|
|
12593 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12594 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12595 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12597 | else |
|
|
12598 | ac_check_lib_save_LIBS=$LIBS |
|
|
12599 | LIBS="-lutil $LIBS" |
|
|
12600 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12601 | /* confdefs.h. */ |
|
|
12602 | _ACEOF |
|
|
12603 | cat confdefs.h >>conftest.$ac_ext |
|
|
12604 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12605 | /* end confdefs.h. */ |
|
|
12606 | |
|
|
12607 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12608 | #ifdef __cplusplus |
|
|
12609 | extern "C" |
|
|
12610 | #endif |
|
|
12611 | /* We use char because int might match the return type of a gcc2 |
|
|
12612 | builtin and then its argument prototype would still apply. */ |
|
|
12613 | char openpty (); |
|
|
12614 | int |
|
|
12615 | main () |
|
|
12616 | { |
|
|
12617 | openpty (); |
|
|
12618 | ; |
|
|
12619 | return 0; |
|
|
12620 | } |
|
|
12621 | _ACEOF |
|
|
12622 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12624 | (eval $ac_link) 2>conftest.er1 |
|
|
12625 | ac_status=$? |
|
|
12626 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12627 | rm -f conftest.er1 |
|
|
12628 | cat conftest.err >&5 |
|
|
12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12630 | (exit $ac_status); } && |
|
|
12631 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12633 | (eval $ac_try) 2>&5 |
|
|
12634 | ac_status=$? |
|
|
12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12636 | (exit $ac_status); }; } && |
|
|
12637 | { ac_try='test -s conftest$ac_exeext' |
|
|
12638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12639 | (eval $ac_try) 2>&5 |
|
|
12640 | ac_status=$? |
|
|
12641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12642 | (exit $ac_status); }; }; then |
|
|
12643 | ac_cv_lib_util_openpty=yes |
|
|
12644 | else |
|
|
12645 | echo "$as_me: failed program was:" >&5 |
|
|
12646 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12647 | |
|
|
12648 | ac_cv_lib_util_openpty=no |
|
|
12649 | fi |
|
|
12650 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12651 | conftest$ac_exeext conftest.$ac_ext |
|
|
12652 | LIBS=$ac_check_lib_save_LIBS |
|
|
12653 | fi |
|
|
12654 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12655 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12656 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12657 | cat >>confdefs.h <<\_ACEOF |
|
|
12658 | #define HAVE_OPENPTY 1 |
|
|
12659 | _ACEOF |
|
|
12660 | LIBS="$LIBS -lutil" |
|
|
12661 | fi |
|
|
12662 | |
|
|
12663 | fi |
|
|
12664 | done |
|
|
12665 | |
|
|
12666 | fi |
|
|
12667 | |
|
|
12668 | |
|
|
12669 | |
|
|
12670 | echo "$as_me:$LINENO: checking for tty group" >&5 |
|
|
12671 | echo $ECHO_N "checking for tty group... $ECHO_C" >&6 |
|
|
12672 | if test "${tty_group+set}" = set; then |
|
|
12673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12674 | else |
|
|
12675 | if test "$cross_compiling" = yes; then |
|
|
12676 | tty_group=no |
|
|
12677 | else |
|
|
12678 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12679 | /* confdefs.h. */ |
|
|
12680 | _ACEOF |
|
|
12681 | cat confdefs.h >>conftest.$ac_ext |
|
|
12682 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12683 | /* end confdefs.h. */ |
|
|
12684 | |
|
|
12685 | #include <sys/types.h> |
|
|
12686 | #include <sys/stat.h> |
|
|
12687 | #include <unistd.h> |
|
|
12688 | #include <grp.h> |
|
|
12689 | |
|
|
12690 | main() |
|
|
12691 | { |
|
|
12692 | struct stat st; |
|
|
12693 | struct group *gr; |
|
|
12694 | char *tty; |
|
|
12695 | gr = getgrnam("tty"); |
|
|
12696 | tty = ttyname(0); |
|
|
12697 | if (gr != 0 |
|
|
12698 | && tty != 0 |
|
|
12699 | && (stat(tty, &st)) == 0 |
|
|
12700 | && st.st_gid == gr->gr_gid) |
|
|
12701 | return 0; |
|
|
12702 | else |
|
|
12703 | return 1; |
|
|
12704 | } |
|
|
12705 | _ACEOF |
|
|
12706 | rm -f conftest$ac_exeext |
|
|
12707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12708 | (eval $ac_link) 2>&5 |
|
|
12709 | ac_status=$? |
|
|
12710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12713 | (eval $ac_try) 2>&5 |
|
|
12714 | ac_status=$? |
|
|
12715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12716 | (exit $ac_status); }; }; then |
|
|
12717 | tty_group=yes |
|
|
12718 | else |
|
|
12719 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12720 | echo "$as_me: failed program was:" >&5 |
|
|
12721 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12722 | |
|
|
12723 | ( exit $ac_status ) |
|
|
12724 | tty_group=no |
|
|
12725 | fi |
|
|
12726 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12727 | fi |
|
|
12728 | fi |
|
|
12729 | echo "$as_me:$LINENO: result: $tty_group" >&5 |
|
|
12730 | echo "${ECHO_T}$tty_group" >&6 |
|
|
12731 | if test x$tty_group = xyes; then |
|
|
12732 | |
|
|
12733 | cat >>confdefs.h <<\_ACEOF |
|
|
12734 | #define TTY_GID_SUPPORT 1 |
|
|
12735 | _ACEOF |
|
|
12736 | |
|
|
12737 | fi |
|
|
12738 | |
|
|
12739 | if test x$support_xft = xyes; then |
|
|
12740 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
12741 | set dummy pkg-config; ac_word=$2 |
|
|
12742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12744 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
|
|
12745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12746 | else |
|
|
12747 | case $PKG_CONFIG in |
|
|
12748 | [\\/]* | ?:[\\/]*) |
|
|
12749 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
|
12750 | ;; |
|
|
12751 | *) |
|
|
12752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12753 | for as_dir in $PATH |
|
|
12754 | do |
|
|
12755 | IFS=$as_save_IFS |
|
|
12756 | test -z "$as_dir" && as_dir=. |
|
|
12757 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12758 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12759 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12761 | break 2 |
|
|
12762 | fi |
|
|
12763 | done |
|
|
12764 | done |
|
|
12765 | |
|
|
12766 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
12767 | ;; |
|
|
12768 | esac |
|
|
12769 | fi |
|
|
12770 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
12771 | |
|
|
12772 | if test -n "$PKG_CONFIG"; then |
|
|
12773 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
12774 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
|
|
12775 | else |
|
|
12776 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12777 | echo "${ECHO_T}no" >&6 |
|
|
12778 | fi |
|
|
12779 | |
|
|
12780 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
12781 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
|
|
12782 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
|
|
12783 | else |
|
|
12784 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
12785 | set dummy xft-config; ac_word=$2 |
|
|
12786 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12788 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
|
|
12789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12790 | else |
|
|
12791 | case $XFT_CONFIG in |
|
|
12792 | [\\/]* | ?:[\\/]*) |
|
|
12793 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
12794 | ;; |
|
|
12795 | *) |
|
|
12796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12797 | for as_dir in $PATH |
|
|
12798 | do |
|
|
12799 | IFS=$as_save_IFS |
|
|
12800 | test -z "$as_dir" && as_dir=. |
|
|
12801 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12802 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12803 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12805 | break 2 |
|
|
12806 | fi |
|
|
12807 | done |
|
|
12808 | done |
|
|
12809 | |
|
|
12810 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
12811 | ;; |
|
|
12812 | esac |
|
|
12813 | fi |
|
|
12814 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
12815 | |
|
|
12816 | if test -n "$XFT_CONFIG"; then |
|
|
12817 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
|
|
12818 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
|
|
12819 | else |
|
|
12820 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12821 | echo "${ECHO_T}no" >&6 |
|
|
12822 | fi |
|
|
12823 | |
|
|
12824 | if test $XFT_CONFIG != no; then |
|
|
12825 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
|
|
12826 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
12827 | fi |
|
|
12828 | fi |
|
|
12829 | |
|
|
12830 | |
|
|
12831 | for ac_header in X11/Xft/Xft.h |
|
|
12832 | do |
|
|
12833 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12834 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12835 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12837 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12839 | fi |
|
|
12840 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12841 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12842 | else |
|
|
12843 | # Is the header compilable? |
|
|
12844 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12845 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12846 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12847 | /* confdefs.h. */ |
|
|
12848 | _ACEOF |
|
|
12849 | cat confdefs.h >>conftest.$ac_ext |
|
|
12850 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12851 | /* end confdefs.h. */ |
|
|
12852 | $ac_includes_default |
|
|
12853 | #include <$ac_header> |
|
|
12854 | _ACEOF |
|
|
12855 | rm -f conftest.$ac_objext |
|
|
12856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12857 | (eval $ac_compile) 2>conftest.er1 |
|
|
12858 | ac_status=$? |
|
|
12859 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12860 | rm -f conftest.er1 |
|
|
12861 | cat conftest.err >&5 |
|
|
12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12863 | (exit $ac_status); } && |
|
|
12864 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12866 | (eval $ac_try) 2>&5 |
|
|
12867 | ac_status=$? |
|
|
12868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12869 | (exit $ac_status); }; } && |
|
|
12870 | { ac_try='test -s conftest.$ac_objext' |
|
|
12871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12872 | (eval $ac_try) 2>&5 |
|
|
12873 | ac_status=$? |
|
|
12874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12875 | (exit $ac_status); }; }; then |
|
|
12876 | ac_header_compiler=yes |
|
|
12877 | else |
|
|
12878 | echo "$as_me: failed program was:" >&5 |
|
|
12879 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12880 | |
|
|
12881 | ac_header_compiler=no |
|
|
12882 | fi |
|
|
12883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12884 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12885 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12886 | |
|
|
12887 | # Is the header present? |
|
|
12888 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12889 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12890 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12891 | /* confdefs.h. */ |
|
|
12892 | _ACEOF |
|
|
12893 | cat confdefs.h >>conftest.$ac_ext |
|
|
12894 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12895 | /* end confdefs.h. */ |
|
|
12896 | #include <$ac_header> |
|
|
12897 | _ACEOF |
|
|
12898 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12899 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12900 | ac_status=$? |
|
|
12901 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12902 | rm -f conftest.er1 |
|
|
12903 | cat conftest.err >&5 |
|
|
12904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12905 | (exit $ac_status); } >/dev/null; then |
|
|
12906 | if test -s conftest.err; then |
|
|
12907 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12908 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12909 | else |
|
|
12910 | ac_cpp_err= |
|
|
12911 | fi |
|
|
12912 | else |
|
|
12913 | ac_cpp_err=yes |
|
|
12914 | fi |
|
|
12915 | if test -z "$ac_cpp_err"; then |
|
|
12916 | ac_header_preproc=yes |
|
|
12917 | else |
|
|
12918 | echo "$as_me: failed program was:" >&5 |
|
|
12919 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12920 | |
|
|
12921 | ac_header_preproc=no |
|
|
12922 | fi |
|
|
12923 | rm -f conftest.err conftest.$ac_ext |
|
|
12924 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12925 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12926 | |
|
|
12927 | # So? What about this header? |
|
|
12928 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12929 | yes:no: ) |
|
|
12930 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12931 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12932 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12933 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12934 | ac_header_preproc=yes |
|
|
12935 | ;; |
|
|
12936 | no:yes:* ) |
|
|
12937 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12938 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12939 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12940 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12941 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12942 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12943 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12944 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12946 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12947 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12948 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12949 | ( |
|
|
12950 | cat <<\_ASBOX |
|
|
12951 | ## ------------------------------------------ ## |
|
|
12952 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12953 | ## ------------------------------------------ ## |
|
|
12954 | _ASBOX |
|
|
12955 | ) | |
|
|
12956 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12957 | ;; |
|
|
12958 | esac |
|
|
12959 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12960 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12963 | else |
|
|
12964 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12965 | fi |
|
|
12966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12967 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12968 | |
|
|
12969 | fi |
|
|
12970 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12971 | cat >>confdefs.h <<_ACEOF |
|
|
12972 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12973 | _ACEOF |
|
|
12974 | |
10761 | else |
12975 | else |
10762 | support_xft=no |
12976 | support_xft=no |
10763 | fi |
12977 | fi |
10764 | |
12978 | |
10765 | done |
12979 | done |
… | |
… | |
10909 | cat >>confdefs.h <<\_ACEOF |
13123 | cat >>confdefs.h <<\_ACEOF |
10910 | #define ENABLE_FRILLS 1 |
13124 | #define ENABLE_FRILLS 1 |
10911 | _ACEOF |
13125 | _ACEOF |
10912 | |
13126 | |
10913 | fi |
13127 | fi |
10914 | if test x$support_24bit = xyes; then |
|
|
10915 | |
|
|
10916 | cat >>confdefs.h <<\_ACEOF |
|
|
10917 | #define PREFER_24BIT 1 |
|
|
10918 | _ACEOF |
|
|
10919 | |
|
|
10920 | fi |
|
|
10921 | if test x$support_mousewheel = xyes; then |
13128 | if test x$support_mousewheel = xyes; then |
10922 | |
13129 | |
10923 | cat >>confdefs.h <<\_ACEOF |
13130 | cat >>confdefs.h <<\_ACEOF |
10924 | #define MOUSE_WHEEL 1 |
13131 | #define MOUSE_WHEEL 1 |
10925 | _ACEOF |
13132 | _ACEOF |
… | |
… | |
10927 | fi |
13134 | fi |
10928 | if test x$support_mouseslipwheel = xyes; then |
13135 | if test x$support_mouseslipwheel = xyes; then |
10929 | |
13136 | |
10930 | cat >>confdefs.h <<\_ACEOF |
13137 | cat >>confdefs.h <<\_ACEOF |
10931 | #define MOUSE_SLIP_WHEELING 1 |
13138 | #define MOUSE_SLIP_WHEELING 1 |
10932 | _ACEOF |
|
|
10933 | |
|
|
10934 | fi |
|
|
10935 | if test x$support_utmp = xyes; then |
|
|
10936 | |
|
|
10937 | cat >>confdefs.h <<\_ACEOF |
|
|
10938 | #define UTMP_SUPPORT 1 |
|
|
10939 | _ACEOF |
|
|
10940 | |
|
|
10941 | fi |
|
|
10942 | if test x$support_wtmp = xyes; then |
|
|
10943 | |
|
|
10944 | cat >>confdefs.h <<\_ACEOF |
|
|
10945 | #define WTMP_SUPPORT 1 |
|
|
10946 | _ACEOF |
|
|
10947 | |
|
|
10948 | fi |
|
|
10949 | if test x$support_lastlog = xyes; then |
|
|
10950 | |
|
|
10951 | cat >>confdefs.h <<\_ACEOF |
|
|
10952 | #define LASTLOG_SUPPORT 1 |
|
|
10953 | _ACEOF |
13139 | _ACEOF |
10954 | |
13140 | |
10955 | fi |
13141 | fi |
10956 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
13142 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
10957 | if test x$rxvt_cv_func_xlocale = xyes; then |
13143 | if test x$rxvt_cv_func_xlocale = xyes; then |
… | |
… | |
12002 | s,@EGREP@,$EGREP,;t t |
14188 | s,@EGREP@,$EGREP,;t t |
12003 | s,@LINKER@,$LINKER,;t t |
14189 | s,@LINKER@,$LINKER,;t t |
12004 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
14190 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
12005 | s,@RXVTNAME@,$RXVTNAME,;t t |
14191 | s,@RXVTNAME@,$RXVTNAME,;t t |
12006 | s,@MV@,$MV,;t t |
14192 | s,@MV@,$MV,;t t |
12007 | s,@RM@,$RM,;t t |
|
|
12008 | s,@CP@,$CP,;t t |
14193 | s,@CP@,$CP,;t t |
12009 | s,@LN@,$LN,;t t |
14194 | s,@LN@,$LN,;t t |
12010 | s,@SED@,$SED,;t t |
14195 | s,@SED@,$SED,;t t |
12011 | s,@ECHO@,$ECHO,;t t |
14196 | s,@ECHO@,$ECHO,;t t |
12012 | s,@CMP@,$CMP,;t t |
14197 | s,@CMP@,$CMP,;t t |
… | |
… | |
12551 | Install path: ${prefix}/bin |
14736 | Install path: ${prefix}/bin |
12552 | Compiler: $CXX |
14737 | Compiler: $CXX |
12553 | Compiler flags: $CFLAGS |
14738 | Compiler flags: $CFLAGS |
12554 | Linker: $LINKER" |
14739 | Linker: $LINKER" |
12555 | |
14740 | |
12556 | if test "$MALLOC_TYPE" = S; then |
|
|
12557 | echo " malloc support: system default" |
|
|
12558 | fi |
|
|
12559 | if test "$MALLOC_TYPE" = G; then |
|
|
12560 | echo " malloc support: Gray Watson's dmalloc" |
|
|
12561 | fi |
|
|
12562 | if test "$MALLOC_TYPE" = D; then |
|
|
12563 | echo " malloc support: Doug Lea's malloc" |
|
|
12564 | fi |
|
|
12565 | |
|
|
12566 | if test x$support_xpm = xyes; then |
14741 | if test x$support_xpm = xyes; then |
12567 | echo " Xpm library: $XPM_LIBS" |
14742 | echo " Xpm library: $XPM_LIBS" |
12568 | fi |
14743 | fi |
12569 | |
14744 | |
12570 | echo " |
|
|
12571 | The following are set in config.h |
|
|
12572 | " |
|
|
12573 | if test x$support_utmp != xyes; then |
|
|
12574 | echo " utmp support: disabled" |
|
|
12575 | echo |
|
|
12576 | else |
|
|
12577 | echo " utmp support: enabled |
|
|
12578 | utmp file: $rxvt_cv_path_utmp |
|
|
12579 | utmpx file: $rxvt_cv_path_utmpx |
|
|
12580 | wtmp file: $rxvt_cv_path_wtmp |
|
|
12581 | wtmpx file: $rxvt_cv_path_wtmpx |
|
|
12582 | lastlog file: $rxvt_cv_path_lastlog |
|
|
12583 | ttys/ttytab file: $rxvt_cv_path_ttytab |
|
|
12584 | embedded perl: $support_perl" |
|
|
12585 | echo |
|
|
12586 | fi |
|
|
12587 | if test x$term != x; then |
14745 | if test x$term != x; then |
12588 | echo " set TERM to: $term" |
14746 | echo " set TERM to: $term" |
12589 | fi |
14747 | fi |
12590 | if test x$terminfo != x; then |
14748 | if test x$terminfo != x; then |
12591 | echo " set TERMINFO to: $terminfo" |
14749 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
12593 | echo " default resource name: $RESNAME" |
14751 | echo " default resource name: $RESNAME" |
12594 | echo " resource class: $RESCLASS" |
14752 | echo " resource class: $RESCLASS" |
12595 | if test x$RESFALLBACK != x; then |
14753 | if test x$RESFALLBACK != x; then |
12596 | echo " resource class fallback: $RESFALLBACK" |
14754 | echo " resource class fallback: $RESFALLBACK" |
12597 | fi |
14755 | fi |
|
|
14756 | echo |
|
|
14757 | echo " embedded perl: $support_perl" |
12598 | echo |
14758 | echo |
12599 | if test x$support_xpm = xneedsmanualspecification; then |
14759 | if test x$support_xpm = xneedsmanualspecification; then |
12600 | echo ".----------------------------------------------------------------." |
14760 | echo ".----------------------------------------------------------------." |
12601 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14761 | echo ". WARNING: --enable-xpm-background was specified however the ." |
12602 | echo ". XPM includes files and libraries could not be found. ." |
14762 | echo ". XPM includes files and libraries could not be found. ." |