… | |
… | |
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 |
… | |
… | |
3865 | fi |
3860 | fi |
3866 | |
3861 | |
3867 | fi |
3862 | fi |
3868 | |
3863 | |
3869 | |
3864 | |
3870 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
|
|
3871 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 |
|
|
3872 | if test "${ac_cv_func_sched_yield+set}" = set; then |
|
|
3873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3874 | else |
|
|
3875 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3876 | /* confdefs.h. */ |
|
|
3877 | _ACEOF |
|
|
3878 | cat confdefs.h >>conftest.$ac_ext |
|
|
3879 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3880 | /* end confdefs.h. */ |
|
|
3881 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
|
|
3882 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3883 | #define sched_yield innocuous_sched_yield |
|
|
3884 | |
|
|
3885 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3886 | which can conflict with char sched_yield (); below. |
|
|
3887 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3888 | <limits.h> exists even on freestanding compilers. */ |
|
|
3889 | |
|
|
3890 | #ifdef __STDC__ |
|
|
3891 | # include <limits.h> |
|
|
3892 | #else |
|
|
3893 | # include <assert.h> |
|
|
3894 | #endif |
|
|
3895 | |
|
|
3896 | #undef sched_yield |
|
|
3897 | |
|
|
3898 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3899 | #ifdef __cplusplus |
|
|
3900 | extern "C" |
|
|
3901 | { |
|
|
3902 | #endif |
|
|
3903 | /* We use char because int might match the return type of a gcc2 |
|
|
3904 | builtin and then its argument prototype would still apply. */ |
|
|
3905 | char sched_yield (); |
|
|
3906 | /* The GNU C library defines this for functions which it implements |
|
|
3907 | to always fail with ENOSYS. Some functions are actually named |
|
|
3908 | something starting with __ and the normal name is an alias. */ |
|
|
3909 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) |
|
|
3910 | choke me |
|
|
3911 | #else |
|
|
3912 | char (*f) () = sched_yield; |
|
|
3913 | #endif |
|
|
3914 | #ifdef __cplusplus |
|
|
3915 | } |
|
|
3916 | #endif |
|
|
3917 | |
|
|
3918 | int |
|
|
3919 | main () |
|
|
3920 | { |
|
|
3921 | return f != sched_yield; |
|
|
3922 | ; |
|
|
3923 | return 0; |
|
|
3924 | } |
|
|
3925 | _ACEOF |
|
|
3926 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3928 | (eval $ac_link) 2>conftest.er1 |
|
|
3929 | ac_status=$? |
|
|
3930 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3931 | rm -f conftest.er1 |
|
|
3932 | cat conftest.err >&5 |
|
|
3933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3934 | (exit $ac_status); } && |
|
|
3935 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3937 | (eval $ac_try) 2>&5 |
|
|
3938 | ac_status=$? |
|
|
3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3940 | (exit $ac_status); }; } && |
|
|
3941 | { ac_try='test -s conftest$ac_exeext' |
|
|
3942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3943 | (eval $ac_try) 2>&5 |
|
|
3944 | ac_status=$? |
|
|
3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3946 | (exit $ac_status); }; }; then |
|
|
3947 | ac_cv_func_sched_yield=yes |
|
|
3948 | else |
|
|
3949 | echo "$as_me: failed program was:" >&5 |
|
|
3950 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3951 | |
|
|
3952 | ac_cv_func_sched_yield=no |
|
|
3953 | fi |
|
|
3954 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3955 | conftest$ac_exeext conftest.$ac_ext |
|
|
3956 | fi |
|
|
3957 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
|
|
3958 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 |
|
|
3959 | if test $ac_cv_func_sched_yield = yes; then |
|
|
3960 | : |
|
|
3961 | else |
|
|
3962 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
|
|
3963 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 |
|
|
3964 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
|
|
3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3966 | else |
|
|
3967 | ac_check_lib_save_LIBS=$LIBS |
|
|
3968 | LIBS="-lrt $LIBS" |
|
|
3969 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3970 | /* confdefs.h. */ |
|
|
3971 | _ACEOF |
|
|
3972 | cat confdefs.h >>conftest.$ac_ext |
|
|
3973 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3974 | /* end confdefs.h. */ |
|
|
3975 | |
|
|
3976 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3977 | #ifdef __cplusplus |
|
|
3978 | extern "C" |
|
|
3979 | #endif |
|
|
3980 | /* We use char because int might match the return type of a gcc2 |
|
|
3981 | builtin and then its argument prototype would still apply. */ |
|
|
3982 | char sched_yield (); |
|
|
3983 | int |
|
|
3984 | main () |
|
|
3985 | { |
|
|
3986 | sched_yield (); |
|
|
3987 | ; |
|
|
3988 | return 0; |
|
|
3989 | } |
|
|
3990 | _ACEOF |
|
|
3991 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3993 | (eval $ac_link) 2>conftest.er1 |
|
|
3994 | ac_status=$? |
|
|
3995 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3996 | rm -f conftest.er1 |
|
|
3997 | cat conftest.err >&5 |
|
|
3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3999 | (exit $ac_status); } && |
|
|
4000 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4002 | (eval $ac_try) 2>&5 |
|
|
4003 | ac_status=$? |
|
|
4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4005 | (exit $ac_status); }; } && |
|
|
4006 | { ac_try='test -s conftest$ac_exeext' |
|
|
4007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4008 | (eval $ac_try) 2>&5 |
|
|
4009 | ac_status=$? |
|
|
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4011 | (exit $ac_status); }; }; then |
|
|
4012 | ac_cv_lib_rt_sched_yield=yes |
|
|
4013 | else |
|
|
4014 | echo "$as_me: failed program was:" >&5 |
|
|
4015 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4016 | |
|
|
4017 | ac_cv_lib_rt_sched_yield=no |
|
|
4018 | fi |
|
|
4019 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4020 | conftest$ac_exeext conftest.$ac_ext |
|
|
4021 | LIBS=$ac_check_lib_save_LIBS |
|
|
4022 | fi |
|
|
4023 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
|
|
4024 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 |
|
|
4025 | if test $ac_cv_lib_rt_sched_yield = yes; then |
|
|
4026 | LIBS="$LIBS -lrt" |
|
|
4027 | fi |
|
|
4028 | |
|
|
4029 | fi |
|
|
4030 | |
|
|
4031 | |
|
|
4032 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
|
|
4033 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
|
|
4034 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4035 | /* confdefs.h. */ |
|
|
4036 | _ACEOF |
|
|
4037 | cat confdefs.h >>conftest.$ac_ext |
|
|
4038 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4039 | /* end confdefs.h. */ |
|
|
4040 | #include <sched.h> |
|
|
4041 | int |
|
|
4042 | main () |
|
|
4043 | { |
|
|
4044 | sched_yield () |
|
|
4045 | ; |
|
|
4046 | return 0; |
|
|
4047 | } |
|
|
4048 | _ACEOF |
|
|
4049 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
4050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4051 | (eval $ac_link) 2>conftest.er1 |
|
|
4052 | ac_status=$? |
|
|
4053 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4054 | rm -f conftest.er1 |
|
|
4055 | cat conftest.err >&5 |
|
|
4056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4057 | (exit $ac_status); } && |
|
|
4058 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4060 | (eval $ac_try) 2>&5 |
|
|
4061 | ac_status=$? |
|
|
4062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4063 | (exit $ac_status); }; } && |
|
|
4064 | { ac_try='test -s conftest$ac_exeext' |
|
|
4065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4066 | (eval $ac_try) 2>&5 |
|
|
4067 | ac_status=$? |
|
|
4068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4069 | (exit $ac_status); }; }; then |
|
|
4070 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4071 | echo "${ECHO_T}yes" >&6 |
|
|
4072 | |
|
|
4073 | cat >>confdefs.h <<\_ACEOF |
|
|
4074 | #define HAVE_SCHED_YIELD 1 |
|
|
4075 | _ACEOF |
|
|
4076 | |
|
|
4077 | else |
|
|
4078 | echo "$as_me: failed program was:" >&5 |
|
|
4079 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4080 | |
|
|
4081 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4082 | echo "${ECHO_T}no" >&6 |
|
|
4083 | fi |
|
|
4084 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4085 | conftest$ac_exeext conftest.$ac_ext |
|
|
4086 | |
|
|
4087 | |
|
|
4088 | MALLOC_TYPE=S |
|
|
4089 | |
3865 | |
4090 | support_frills=yes |
3866 | support_frills=yes |
4091 | support_inheritpixmap=yes |
3867 | support_inheritpixmap=yes |
4092 | support_tinting=yes |
3868 | support_tinting=yes |
4093 | support_fading=yes |
3869 | support_fading=yes |
4094 | support_keepscrolling=yes |
3870 | support_keepscrolling=yes |
4095 | support_selectionscrolling=yes |
3871 | support_selectionscrolling=yes |
4096 | support_mousewheel=yes |
3872 | support_mousewheel=yes |
4097 | support_mouseslipwheel=yes |
3873 | support_mouseslipwheel=yes |
4098 | support_utmp=yes |
|
|
4099 | support_wtmp=yes |
|
|
4100 | support_lastlog=yes |
|
|
4101 | support_text_blink=yes |
3874 | support_text_blink=yes |
4102 | support_pointer_blank=yes |
3875 | support_pointer_blank=yes |
4103 | support_scroll_rxvt=yes |
3876 | support_scroll_rxvt=yes |
4104 | support_scroll_next=yes |
3877 | support_scroll_next=yes |
4105 | support_scroll_xterm=yes |
3878 | support_scroll_xterm=yes |
… | |
… | |
4129 | # Check whether --enable-everything or --disable-everything was given. |
3902 | # Check whether --enable-everything or --disable-everything was given. |
4130 | if test "${enable_everything+set}" = set; then |
3903 | if test "${enable_everything+set}" = set; then |
4131 | enableval="$enable_everything" |
3904 | enableval="$enable_everything" |
4132 | |
3905 | |
4133 | if test x$enableval = xno; then |
3906 | if test x$enableval = xno; then |
4134 | support_24bit=no |
|
|
4135 | support_frills=no |
3907 | support_frills=no |
4136 | support_inheritpixmap=no |
3908 | support_inheritpixmap=no |
4137 | support_tinting=no |
3909 | support_tinting=no |
4138 | support_fading=no |
3910 | support_fading=no |
4139 | support_keepscrolling=no |
3911 | support_keepscrolling=no |
… | |
… | |
4159 | support_styles=no |
3931 | support_styles=no |
4160 | support_perl=no |
3932 | support_perl=no |
4161 | codesets= |
3933 | codesets= |
4162 | fi |
3934 | fi |
4163 | if test x$enableval = xyes; then |
3935 | if test x$enableval = xyes; then |
4164 | support_24bit=yes |
|
|
4165 | support_frills=yes |
3936 | support_frills=yes |
4166 | support_inheritpixmap=yes |
3937 | support_inheritpixmap=yes |
4167 | support_tinting=yes |
3938 | support_tinting=yes |
4168 | support_fading=yes |
3939 | support_fading=yes |
4169 | support_keepscrolling=yes |
3940 | support_keepscrolling=yes |
… | |
… | |
4223 | if test x$enableval = xyes -o x$enableval = xno; then |
3994 | if test x$enableval = xyes -o x$enableval = xno; then |
4224 | support_styles=$enableval |
3995 | support_styles=$enableval |
4225 | fi |
3996 | fi |
4226 | fi; |
3997 | fi; |
4227 | |
3998 | |
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. |
3999 | # Check whether --enable-xpm-background or --disable-xpm-background was given. |
4253 | if test "${enable_xpm_background+set}" = set; then |
4000 | if test "${enable_xpm_background+set}" = set; then |
4254 | enableval="$enable_xpm_background" |
4001 | enableval="$enable_xpm_background" |
4255 | if test x$enableval = xyes -o x$enableval = xno; then |
4002 | if test x$enableval = xyes -o x$enableval = xno; then |
4256 | support_xpm=$enableval |
4003 | support_xpm=$enableval |
… | |
… | |
4320 | support_scroll_plain=$enableval |
4067 | support_scroll_plain=$enableval |
4321 | fi |
4068 | fi |
4322 | fi; |
4069 | fi; |
4323 | |
4070 | |
4324 | |
4071 | |
4325 | |
|
|
4326 | # Check whether --with-codesets or --without-codesets was given. |
4072 | # Check whether --with-codesets or --without-codesets was given. |
4327 | if test "${with_codesets+set}" = set; then |
4073 | if test "${with_codesets+set}" = set; then |
4328 | withval="$with_codesets" |
4074 | withval="$with_codesets" |
4329 | codesets="$withval" |
4075 | codesets="$withval" |
4330 | fi; |
4076 | fi; |
… | |
… | |
4335 | if test x$enableval = xyes -o x$enableval = xno; then |
4081 | if test x$enableval = xyes -o x$enableval = xno; then |
4336 | support_xim=$enableval |
4082 | support_xim=$enableval |
4337 | fi |
4083 | fi |
4338 | fi; |
4084 | fi; |
4339 | |
4085 | |
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. |
4086 | # Check whether --enable-backspace-key or --disable-backspace-key was given. |
4353 | if test "${enable_backspace_key+set}" = set; then |
4087 | if test "${enable_backspace_key+set}" = set; then |
4354 | enableval="$enable_backspace_key" |
4088 | enableval="$enable_backspace_key" |
4355 | if test x$enableval = xno; then |
4089 | if test x$enableval = xno; then |
4356 | |
4090 | |
… | |
… | |
4480 | if test x$enableval = xyes -o x$enableval = xno; then |
4214 | if test x$enableval = xyes -o x$enableval = xno; then |
4481 | support_frills=$enableval |
4215 | support_frills=$enableval |
4482 | fi |
4216 | fi |
4483 | fi; |
4217 | fi; |
4484 | |
4218 | |
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. |
4219 | # Check whether --enable-keepscrolling or --disable-keepscrolling was given. |
4494 | if test "${enable_keepscrolling+set}" = set; then |
4220 | if test "${enable_keepscrolling+set}" = set; then |
4495 | enableval="$enable_keepscrolling" |
4221 | enableval="$enable_keepscrolling" |
4496 | if test x$enableval = xyes -o x$enableval = xno; then |
4222 | if test x$enableval = xyes -o x$enableval = xno; then |
4497 | support_keepscrolling=$enableval |
4223 | support_keepscrolling=$enableval |
… | |
… | |
4517 | # Check whether --enable-slipwheeling or --disable-slipwheeling was given. |
4243 | # Check whether --enable-slipwheeling or --disable-slipwheeling was given. |
4518 | if test "${enable_slipwheeling+set}" = set; then |
4244 | if test "${enable_slipwheeling+set}" = set; then |
4519 | enableval="$enable_slipwheeling" |
4245 | enableval="$enable_slipwheeling" |
4520 | if test x$enableval = xyes -o x$enableval = xno; then |
4246 | if test x$enableval = xyes -o x$enableval = xno; then |
4521 | support_mouseslipwheel=$enableval |
4247 | 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 |
4248 | fi |
4545 | fi; |
4249 | fi; |
4546 | |
4250 | |
4547 | # Check whether --enable-smart-resize or --disable-smart-resize was given. |
4251 | # Check whether --enable-smart-resize or --disable-smart-resize was given. |
4548 | if test "${enable_smart_resize+set}" = set; then |
4252 | if test "${enable_smart_resize+set}" = set; then |
… | |
… | |
4632 | MV=$ac_cv_path_MV |
4336 | MV=$ac_cv_path_MV |
4633 | |
4337 | |
4634 | if test -n "$MV"; then |
4338 | if test -n "$MV"; then |
4635 | echo "$as_me:$LINENO: result: $MV" >&5 |
4339 | echo "$as_me:$LINENO: result: $MV" >&5 |
4636 | echo "${ECHO_T}$MV" >&6 |
4340 | 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 |
4341 | else |
4678 | echo "$as_me:$LINENO: result: no" >&5 |
4342 | echo "$as_me:$LINENO: result: no" >&5 |
4679 | echo "${ECHO_T}no" >&6 |
4343 | echo "${ECHO_T}no" >&6 |
4680 | fi |
4344 | fi |
4681 | |
4345 | |
… | |
… | |
10068 | |
9732 | |
10069 | |
9733 | |
10070 | |
9734 | |
10071 | |
9735 | |
10072 | |
9736 | |
10073 | |
|
|
10074 | |
|
|
10075 | |
|
|
10076 | |
|
|
10077 | for ac_func in \ |
9737 | for ac_func in \ |
10078 | unsetenv \ |
9738 | unsetenv \ |
10079 | setutent \ |
9739 | setutent \ |
10080 | seteuid \ |
|
|
10081 | setresuid \ |
|
|
10082 | setreuid \ |
|
|
10083 | on_exit \ |
9740 | on_exit \ |
10084 | nanosleep \ |
|
|
10085 | |
9741 | |
10086 | do |
9742 | do |
10087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9743 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9744 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
9745 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
10181 | |
9837 | |
10182 | fi |
9838 | fi |
10183 | done |
9839 | done |
10184 | |
9840 | |
10185 | |
9841 | |
10186 | UTMP_CHECK |
|
|
10187 | |
9842 | |
|
|
9843 | support_utmp=yes |
|
|
9844 | support_wtmp=yes |
|
|
9845 | support_lastlog=yes |
10188 | |
9846 | |
10189 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
9847 | # Check whether --enable-utmp or --disable-utmp was given. |
10190 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
9848 | if test "${enable_utmp+set}" = set; then |
10191 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
9849 | enableval="$enable_utmp" |
|
|
9850 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
9851 | support_utmp=$enableval |
|
|
9852 | fi |
|
|
9853 | fi; |
|
|
9854 | |
|
|
9855 | # Check whether --enable-wtmp or --disable-wtmp was given. |
|
|
9856 | if test "${enable_wtmp+set}" = set; then |
|
|
9857 | enableval="$enable_wtmp" |
|
|
9858 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
9859 | support_wtmp=$enableval |
|
|
9860 | fi |
|
|
9861 | fi; |
|
|
9862 | |
|
|
9863 | # Check whether --enable-lastlog or --disable-lastlog was given. |
|
|
9864 | if test "${enable_lastlog+set}" = set; then |
|
|
9865 | enableval="$enable_lastlog" |
|
|
9866 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
9867 | support_lastlog=$enableval |
|
|
9868 | fi |
|
|
9869 | fi; |
|
|
9870 | |
|
|
9871 | if test x$support_utmp = xyes; then |
|
|
9872 | |
|
|
9873 | cat >>confdefs.h <<\_ACEOF |
|
|
9874 | #define UTMP_SUPPORT 1 |
|
|
9875 | _ACEOF |
|
|
9876 | |
|
|
9877 | fi |
|
|
9878 | if test x$support_wtmp = xyes; then |
|
|
9879 | |
|
|
9880 | cat >>confdefs.h <<\_ACEOF |
|
|
9881 | #define WTMP_SUPPORT 1 |
|
|
9882 | _ACEOF |
|
|
9883 | |
|
|
9884 | fi |
|
|
9885 | if test x$support_lastlog = xyes; then |
|
|
9886 | |
|
|
9887 | cat >>confdefs.h <<\_ACEOF |
|
|
9888 | #define LASTLOG_SUPPORT 1 |
|
|
9889 | _ACEOF |
|
|
9890 | |
|
|
9891 | fi |
|
|
9892 | |
|
|
9893 | |
|
|
9894 | |
|
|
9895 | |
|
|
9896 | for ac_func in \ |
|
|
9897 | ttyslot \ |
|
|
9898 | updwtmp \ |
|
|
9899 | updwtmpx \ |
|
|
9900 | |
|
|
9901 | do |
|
|
9902 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
9903 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
9904 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
9905 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
10192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9906 | 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 |
9907 | else |
10230 | cat >conftest.$ac_ext <<_ACEOF |
9908 | cat >conftest.$ac_ext <<_ACEOF |
10231 | /* confdefs.h. */ |
9909 | /* confdefs.h. */ |
10232 | _ACEOF |
9910 | _ACEOF |
10233 | cat confdefs.h >>conftest.$ac_ext |
9911 | cat confdefs.h >>conftest.$ac_ext |
10234 | cat >>conftest.$ac_ext <<_ACEOF |
9912 | cat >>conftest.$ac_ext <<_ACEOF |
10235 | /* end confdefs.h. */ |
9913 | /* end confdefs.h. */ |
10236 | #include <X11/Xlib.h> |
9914 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10237 | main() { |
9915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10238 | char *p; |
9916 | #define $ac_func innocuous_$ac_func |
10239 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
9917 | |
10240 | exit (XSupportsLocale() ? 0 : 1); |
9918 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
9919 | which can conflict with char $ac_func (); below. |
|
|
9920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
9921 | <limits.h> exists even on freestanding compilers. */ |
|
|
9922 | |
|
|
9923 | #ifdef __STDC__ |
|
|
9924 | # include <limits.h> |
10241 | else |
9925 | #else |
10242 | exit (1);} |
9926 | # include <assert.h> |
10243 | _ACEOF |
9927 | #endif |
10244 | rm -f conftest$ac_exeext |
9928 | |
10245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9929 | #undef $ac_func |
10246 | (eval $ac_link) 2>&5 |
9930 | |
10247 | ac_status=$? |
9931 | /* Override any gcc2 internal prototype to avoid an error. */ |
10248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9932 | #ifdef __cplusplus |
10249 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
9933 | extern "C" |
10250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9934 | { |
10251 | (eval $ac_try) 2>&5 |
9935 | #endif |
10252 | ac_status=$? |
9936 | /* We use char because int might match the return type of a gcc2 |
10253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9937 | builtin and then its argument prototype would still apply. */ |
10254 | (exit $ac_status); }; }; then |
9938 | char $ac_func (); |
10255 | rxvt_cv_func_xlocale=yes |
9939 | /* The GNU C library defines this for functions which it implements |
|
|
9940 | to always fail with ENOSYS. Some functions are actually named |
|
|
9941 | something starting with __ and the normal name is an alias. */ |
|
|
9942 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
9943 | choke me |
10256 | else |
9944 | #else |
10257 | echo "$as_me: program exited with status $ac_status" >&5 |
9945 | char (*f) () = $ac_func; |
10258 | echo "$as_me: failed program was:" >&5 |
9946 | #endif |
10259 | sed 's/^/| /' conftest.$ac_ext >&5 |
9947 | #ifdef __cplusplus |
|
|
9948 | } |
|
|
9949 | #endif |
10260 | |
9950 | |
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 |
9951 | int |
10291 | main () |
9952 | main () |
10292 | { |
9953 | { |
10293 | setlocale(LC_CTYPE, ""); |
9954 | return f != $ac_func; |
10294 | ; |
9955 | ; |
10295 | return 0; |
9956 | return 0; |
10296 | } |
9957 | } |
10297 | _ACEOF |
9958 | _ACEOF |
10298 | rm -f conftest.$ac_objext conftest$ac_exeext |
9959 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
10314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10315 | (eval $ac_try) 2>&5 |
9976 | (eval $ac_try) 2>&5 |
10316 | ac_status=$? |
9977 | ac_status=$? |
10317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10318 | (exit $ac_status); }; }; then |
9979 | (exit $ac_status); }; }; then |
10319 | rxvt_cv_func_xsetlocale=yes |
9980 | eval "$as_ac_var=yes" |
10320 | else |
9981 | else |
10321 | echo "$as_me: failed program was:" >&5 |
9982 | echo "$as_me: failed program was:" >&5 |
10322 | sed 's/^/| /' conftest.$ac_ext >&5 |
9983 | sed 's/^/| /' conftest.$ac_ext >&5 |
10323 | |
9984 | |
10324 | rxvt_cv_func_xsetlocale=no |
9985 | eval "$as_ac_var=no" |
10325 | fi |
9986 | fi |
10326 | rm -f conftest.err conftest.$ac_objext \ |
9987 | rm -f conftest.err conftest.$ac_objext \ |
10327 | conftest$ac_exeext conftest.$ac_ext |
9988 | conftest$ac_exeext conftest.$ac_ext |
10328 | fi |
9989 | fi |
10329 | echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 |
9990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10330 | echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6 |
9991 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10331 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
9992 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
10332 | |
|
|
10333 | cat >>confdefs.h <<\_ACEOF |
9993 | cat >>confdefs.h <<_ACEOF |
10334 | #define HAVE_XSETLOCALE 1 |
9994 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10335 | _ACEOF |
9995 | _ACEOF |
10336 | |
9996 | |
10337 | fi |
9997 | 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 |
9998 | done |
10550 | done |
|
|
10551 | |
9999 | |
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 | |
10000 | |
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 | |
10001 | |
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 | |
10002 | |
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 | |
10003 | |
10598 | if test -n "$XFT_CONFIG"; then |
10004 | for ac_header in \ |
10599 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
10005 | utmp.h \ |
10600 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
10006 | utmpx.h \ |
10601 | else |
10007 | lastlog.h \ |
10602 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
10603 | echo "${ECHO_T}no" >&6 |
|
|
10604 | fi |
|
|
10605 | |
10008 | |
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 |
10009 | do |
10619 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10010 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10621 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10012 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
… | |
… | |
10756 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10147 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10757 | cat >>confdefs.h <<_ACEOF |
10148 | cat >>confdefs.h <<_ACEOF |
10758 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10149 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
10759 | _ACEOF |
10150 | _ACEOF |
10760 | |
10151 | |
|
|
10152 | fi |
|
|
10153 | |
|
|
10154 | done |
|
|
10155 | |
|
|
10156 | |
|
|
10157 | |
|
|
10158 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10159 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10160 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10161 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10163 | fi |
|
|
10164 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10165 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10166 | else |
|
|
10167 | # Is the header compilable? |
|
|
10168 | echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10169 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
|
|
10170 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10171 | /* confdefs.h. */ |
|
|
10172 | _ACEOF |
|
|
10173 | cat confdefs.h >>conftest.$ac_ext |
|
|
10174 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10175 | /* end confdefs.h. */ |
|
|
10176 | $ac_includes_default |
|
|
10177 | #include <utmp.h> |
|
|
10178 | _ACEOF |
|
|
10179 | rm -f conftest.$ac_objext |
|
|
10180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10181 | (eval $ac_compile) 2>conftest.er1 |
|
|
10182 | ac_status=$? |
|
|
10183 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10184 | rm -f conftest.er1 |
|
|
10185 | cat conftest.err >&5 |
|
|
10186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10187 | (exit $ac_status); } && |
|
|
10188 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10190 | (eval $ac_try) 2>&5 |
|
|
10191 | ac_status=$? |
|
|
10192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10193 | (exit $ac_status); }; } && |
|
|
10194 | { ac_try='test -s conftest.$ac_objext' |
|
|
10195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10196 | (eval $ac_try) 2>&5 |
|
|
10197 | ac_status=$? |
|
|
10198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10199 | (exit $ac_status); }; }; then |
|
|
10200 | ac_header_compiler=yes |
|
|
10201 | else |
|
|
10202 | echo "$as_me: failed program was:" >&5 |
|
|
10203 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10204 | |
|
|
10205 | ac_header_compiler=no |
|
|
10206 | fi |
|
|
10207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10208 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10209 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10210 | |
|
|
10211 | # Is the header present? |
|
|
10212 | echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
10213 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
|
|
10214 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10215 | /* confdefs.h. */ |
|
|
10216 | _ACEOF |
|
|
10217 | cat confdefs.h >>conftest.$ac_ext |
|
|
10218 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10219 | /* end confdefs.h. */ |
|
|
10220 | #include <utmp.h> |
|
|
10221 | _ACEOF |
|
|
10222 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10223 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10224 | ac_status=$? |
|
|
10225 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10226 | rm -f conftest.er1 |
|
|
10227 | cat conftest.err >&5 |
|
|
10228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10229 | (exit $ac_status); } >/dev/null; then |
|
|
10230 | if test -s conftest.err; then |
|
|
10231 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10232 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10233 | else |
|
|
10234 | ac_cpp_err= |
|
|
10235 | fi |
|
|
10236 | else |
|
|
10237 | ac_cpp_err=yes |
|
|
10238 | fi |
|
|
10239 | if test -z "$ac_cpp_err"; then |
|
|
10240 | ac_header_preproc=yes |
|
|
10241 | else |
|
|
10242 | echo "$as_me: failed program was:" >&5 |
|
|
10243 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10244 | |
|
|
10245 | ac_header_preproc=no |
|
|
10246 | fi |
|
|
10247 | rm -f conftest.err conftest.$ac_ext |
|
|
10248 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10249 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10250 | |
|
|
10251 | # So? What about this header? |
|
|
10252 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10253 | yes:no: ) |
|
|
10254 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10255 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10256 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
10257 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
10258 | ac_header_preproc=yes |
|
|
10259 | ;; |
|
|
10260 | no:yes:* ) |
|
|
10261 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
10262 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
10263 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
10264 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
10265 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
10266 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
10267 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10268 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10269 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
10270 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
10271 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
10272 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
10273 | ( |
|
|
10274 | cat <<\_ASBOX |
|
|
10275 | ## ------------------------------------------ ## |
|
|
10276 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10277 | ## ------------------------------------------ ## |
|
|
10278 | _ASBOX |
|
|
10279 | ) | |
|
|
10280 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10281 | ;; |
|
|
10282 | esac |
|
|
10283 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10284 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10285 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10287 | else |
|
|
10288 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
10289 | fi |
|
|
10290 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10291 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10292 | |
|
|
10293 | fi |
|
|
10294 | if test $ac_cv_header_utmp_h = yes; then |
|
|
10295 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
10296 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
|
|
10297 | if test "${struct_utmp+set}" = set; then |
|
|
10298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10299 | else |
|
|
10300 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10301 | /* confdefs.h. */ |
|
|
10302 | _ACEOF |
|
|
10303 | cat confdefs.h >>conftest.$ac_ext |
|
|
10304 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10305 | /* end confdefs.h. */ |
|
|
10306 | #include <sys/types.h> |
|
|
10307 | #include <utmp.h> |
|
|
10308 | int |
|
|
10309 | main () |
|
|
10310 | { |
|
|
10311 | struct utmp ut; |
|
|
10312 | ; |
|
|
10313 | return 0; |
|
|
10314 | } |
|
|
10315 | _ACEOF |
|
|
10316 | rm -f conftest.$ac_objext |
|
|
10317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10318 | (eval $ac_compile) 2>conftest.er1 |
|
|
10319 | ac_status=$? |
|
|
10320 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10321 | rm -f conftest.er1 |
|
|
10322 | cat conftest.err >&5 |
|
|
10323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10324 | (exit $ac_status); } && |
|
|
10325 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10327 | (eval $ac_try) 2>&5 |
|
|
10328 | ac_status=$? |
|
|
10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10330 | (exit $ac_status); }; } && |
|
|
10331 | { ac_try='test -s conftest.$ac_objext' |
|
|
10332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10333 | (eval $ac_try) 2>&5 |
|
|
10334 | ac_status=$? |
|
|
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10336 | (exit $ac_status); }; }; then |
|
|
10337 | struct_utmp=yes |
|
|
10338 | else |
|
|
10339 | echo "$as_me: failed program was:" >&5 |
|
|
10340 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10341 | |
|
|
10342 | struct_utmp=no |
|
|
10343 | fi |
|
|
10344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10345 | fi |
|
|
10346 | echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
|
|
10347 | echo "${ECHO_T}$struct_utmp" >&6 |
|
|
10348 | if test x$struct_utmp = xyes; then |
|
|
10349 | |
|
|
10350 | cat >>confdefs.h <<\_ACEOF |
|
|
10351 | #define HAVE_STRUCT_UTMP 1 |
|
|
10352 | _ACEOF |
|
|
10353 | |
|
|
10354 | fi |
|
|
10355 | |
|
|
10356 | |
|
|
10357 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
10358 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
|
|
10359 | if test "${struct_utmp_host+set}" = set; then |
|
|
10360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10361 | else |
|
|
10362 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10363 | /* confdefs.h. */ |
|
|
10364 | _ACEOF |
|
|
10365 | cat confdefs.h >>conftest.$ac_ext |
|
|
10366 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10367 | /* end confdefs.h. */ |
|
|
10368 | #include <sys/types.h> |
|
|
10369 | #include <utmp.h> |
|
|
10370 | int |
|
|
10371 | main () |
|
|
10372 | { |
|
|
10373 | struct utmp ut; ut.ut_host; |
|
|
10374 | ; |
|
|
10375 | return 0; |
|
|
10376 | } |
|
|
10377 | _ACEOF |
|
|
10378 | rm -f conftest.$ac_objext |
|
|
10379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10380 | (eval $ac_compile) 2>conftest.er1 |
|
|
10381 | ac_status=$? |
|
|
10382 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10383 | rm -f conftest.er1 |
|
|
10384 | cat conftest.err >&5 |
|
|
10385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10386 | (exit $ac_status); } && |
|
|
10387 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10389 | (eval $ac_try) 2>&5 |
|
|
10390 | ac_status=$? |
|
|
10391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10392 | (exit $ac_status); }; } && |
|
|
10393 | { ac_try='test -s conftest.$ac_objext' |
|
|
10394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10395 | (eval $ac_try) 2>&5 |
|
|
10396 | ac_status=$? |
|
|
10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10398 | (exit $ac_status); }; }; then |
|
|
10399 | struct_utmp_host=yes |
|
|
10400 | else |
|
|
10401 | echo "$as_me: failed program was:" >&5 |
|
|
10402 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10403 | |
|
|
10404 | struct_utmp_host=no |
|
|
10405 | fi |
|
|
10406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10407 | fi |
|
|
10408 | echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
|
|
10409 | echo "${ECHO_T}$struct_utmp_host" >&6 |
|
|
10410 | if test x$struct_utmp_host = xyes; then |
|
|
10411 | |
|
|
10412 | cat >>confdefs.h <<\_ACEOF |
|
|
10413 | #define HAVE_UTMP_HOST 1 |
|
|
10414 | _ACEOF |
|
|
10415 | |
|
|
10416 | fi |
|
|
10417 | |
|
|
10418 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
10419 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
|
|
10420 | if test "${struct_utmp_pid+set}" = set; then |
|
|
10421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10422 | else |
|
|
10423 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10424 | /* confdefs.h. */ |
|
|
10425 | _ACEOF |
|
|
10426 | cat confdefs.h >>conftest.$ac_ext |
|
|
10427 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10428 | /* end confdefs.h. */ |
|
|
10429 | #include <sys/types.h> |
|
|
10430 | #include <utmp.h> |
|
|
10431 | int |
|
|
10432 | main () |
|
|
10433 | { |
|
|
10434 | struct utmp ut; ut.ut_pid; |
|
|
10435 | ; |
|
|
10436 | return 0; |
|
|
10437 | } |
|
|
10438 | _ACEOF |
|
|
10439 | rm -f conftest.$ac_objext |
|
|
10440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10441 | (eval $ac_compile) 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); } && |
|
|
10448 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10450 | (eval $ac_try) 2>&5 |
|
|
10451 | ac_status=$? |
|
|
10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10453 | (exit $ac_status); }; } && |
|
|
10454 | { ac_try='test -s conftest.$ac_objext' |
|
|
10455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10456 | (eval $ac_try) 2>&5 |
|
|
10457 | ac_status=$? |
|
|
10458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10459 | (exit $ac_status); }; }; then |
|
|
10460 | struct_utmp_pid=yes |
|
|
10461 | else |
|
|
10462 | echo "$as_me: failed program was:" >&5 |
|
|
10463 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10464 | |
|
|
10465 | struct_utmp_pid=no |
|
|
10466 | fi |
|
|
10467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10468 | fi |
|
|
10469 | echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
|
|
10470 | echo "${ECHO_T}$struct_utmp_pid" >&6 |
|
|
10471 | if test x$struct_utmp_pid = xyes; then |
|
|
10472 | |
|
|
10473 | cat >>confdefs.h <<\_ACEOF |
|
|
10474 | #define HAVE_UTMP_PID 1 |
|
|
10475 | _ACEOF |
|
|
10476 | |
|
|
10477 | fi |
|
|
10478 | |
|
|
10479 | fi |
|
|
10480 | |
|
|
10481 | |
|
|
10482 | |
|
|
10483 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10484 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10485 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10486 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10488 | fi |
|
|
10489 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10490 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10491 | else |
|
|
10492 | # Is the header compilable? |
|
|
10493 | echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
10494 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
|
|
10495 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10496 | /* confdefs.h. */ |
|
|
10497 | _ACEOF |
|
|
10498 | cat confdefs.h >>conftest.$ac_ext |
|
|
10499 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10500 | /* end confdefs.h. */ |
|
|
10501 | $ac_includes_default |
|
|
10502 | #include <utmpx.h> |
|
|
10503 | _ACEOF |
|
|
10504 | rm -f conftest.$ac_objext |
|
|
10505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10506 | (eval $ac_compile) 2>conftest.er1 |
|
|
10507 | ac_status=$? |
|
|
10508 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10509 | rm -f conftest.er1 |
|
|
10510 | cat conftest.err >&5 |
|
|
10511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10512 | (exit $ac_status); } && |
|
|
10513 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10515 | (eval $ac_try) 2>&5 |
|
|
10516 | ac_status=$? |
|
|
10517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10518 | (exit $ac_status); }; } && |
|
|
10519 | { ac_try='test -s conftest.$ac_objext' |
|
|
10520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10521 | (eval $ac_try) 2>&5 |
|
|
10522 | ac_status=$? |
|
|
10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10524 | (exit $ac_status); }; }; then |
|
|
10525 | ac_header_compiler=yes |
|
|
10526 | else |
|
|
10527 | echo "$as_me: failed program was:" >&5 |
|
|
10528 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10529 | |
|
|
10530 | ac_header_compiler=no |
|
|
10531 | fi |
|
|
10532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10533 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10534 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10535 | |
|
|
10536 | # Is the header present? |
|
|
10537 | echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
10538 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
|
|
10539 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10540 | /* confdefs.h. */ |
|
|
10541 | _ACEOF |
|
|
10542 | cat confdefs.h >>conftest.$ac_ext |
|
|
10543 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10544 | /* end confdefs.h. */ |
|
|
10545 | #include <utmpx.h> |
|
|
10546 | _ACEOF |
|
|
10547 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10548 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10549 | ac_status=$? |
|
|
10550 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10551 | rm -f conftest.er1 |
|
|
10552 | cat conftest.err >&5 |
|
|
10553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10554 | (exit $ac_status); } >/dev/null; then |
|
|
10555 | if test -s conftest.err; then |
|
|
10556 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10557 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10558 | else |
|
|
10559 | ac_cpp_err= |
|
|
10560 | fi |
|
|
10561 | else |
|
|
10562 | ac_cpp_err=yes |
|
|
10563 | fi |
|
|
10564 | if test -z "$ac_cpp_err"; then |
|
|
10565 | ac_header_preproc=yes |
|
|
10566 | else |
|
|
10567 | echo "$as_me: failed program was:" >&5 |
|
|
10568 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10569 | |
|
|
10570 | ac_header_preproc=no |
|
|
10571 | fi |
|
|
10572 | rm -f conftest.err conftest.$ac_ext |
|
|
10573 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10574 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10575 | |
|
|
10576 | # So? What about this header? |
|
|
10577 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10578 | yes:no: ) |
|
|
10579 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10580 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10581 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
10582 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
10583 | ac_header_preproc=yes |
|
|
10584 | ;; |
|
|
10585 | no:yes:* ) |
|
|
10586 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
10587 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
10588 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
10589 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
10590 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
10591 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
10592 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10593 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10594 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
10595 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
10596 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
10597 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
10598 | ( |
|
|
10599 | cat <<\_ASBOX |
|
|
10600 | ## ------------------------------------------ ## |
|
|
10601 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10602 | ## ------------------------------------------ ## |
|
|
10603 | _ASBOX |
|
|
10604 | ) | |
|
|
10605 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10606 | ;; |
|
|
10607 | esac |
|
|
10608 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10609 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10610 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10612 | else |
|
|
10613 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
10614 | fi |
|
|
10615 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10616 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10617 | |
|
|
10618 | fi |
|
|
10619 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
10620 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
10621 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
|
|
10622 | if test "${struct_utmpx+set}" = set; then |
|
|
10623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10624 | else |
|
|
10625 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10626 | /* confdefs.h. */ |
|
|
10627 | _ACEOF |
|
|
10628 | cat confdefs.h >>conftest.$ac_ext |
|
|
10629 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10630 | /* end confdefs.h. */ |
|
|
10631 | #include <sys/types.h> |
|
|
10632 | #include <utmpx.h> |
|
|
10633 | int |
|
|
10634 | main () |
|
|
10635 | { |
|
|
10636 | struct utmpx ut; |
|
|
10637 | ; |
|
|
10638 | return 0; |
|
|
10639 | } |
|
|
10640 | _ACEOF |
|
|
10641 | rm -f conftest.$ac_objext |
|
|
10642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10643 | (eval $ac_compile) 2>conftest.er1 |
|
|
10644 | ac_status=$? |
|
|
10645 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10646 | rm -f conftest.er1 |
|
|
10647 | cat conftest.err >&5 |
|
|
10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10649 | (exit $ac_status); } && |
|
|
10650 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10652 | (eval $ac_try) 2>&5 |
|
|
10653 | ac_status=$? |
|
|
10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10655 | (exit $ac_status); }; } && |
|
|
10656 | { ac_try='test -s conftest.$ac_objext' |
|
|
10657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10658 | (eval $ac_try) 2>&5 |
|
|
10659 | ac_status=$? |
|
|
10660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10661 | (exit $ac_status); }; }; then |
|
|
10662 | struct_utmpx=yes |
|
|
10663 | else |
|
|
10664 | echo "$as_me: failed program was:" >&5 |
|
|
10665 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10666 | |
|
|
10667 | struct_utmpx=no |
|
|
10668 | fi |
|
|
10669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10670 | fi |
|
|
10671 | echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
|
|
10672 | echo "${ECHO_T}$struct_utmpx" >&6 |
|
|
10673 | if test x$struct_utmpx = xyes; then |
|
|
10674 | |
|
|
10675 | cat >>confdefs.h <<\_ACEOF |
|
|
10676 | #define HAVE_STRUCT_UTMPX 1 |
|
|
10677 | _ACEOF |
|
|
10678 | |
|
|
10679 | fi |
|
|
10680 | |
|
|
10681 | |
|
|
10682 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
10683 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
|
|
10684 | if test "${struct_utmpx_host+set}" = set; then |
|
|
10685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10686 | else |
|
|
10687 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10688 | /* confdefs.h. */ |
|
|
10689 | _ACEOF |
|
|
10690 | cat confdefs.h >>conftest.$ac_ext |
|
|
10691 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10692 | /* end confdefs.h. */ |
|
|
10693 | #include <sys/types.h> |
|
|
10694 | #include <utmpx.h> |
|
|
10695 | int |
|
|
10696 | main () |
|
|
10697 | { |
|
|
10698 | struct utmpx utx; utx.ut_host; |
|
|
10699 | ; |
|
|
10700 | return 0; |
|
|
10701 | } |
|
|
10702 | _ACEOF |
|
|
10703 | rm -f conftest.$ac_objext |
|
|
10704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10705 | (eval $ac_compile) 2>conftest.er1 |
|
|
10706 | ac_status=$? |
|
|
10707 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10708 | rm -f conftest.er1 |
|
|
10709 | cat conftest.err >&5 |
|
|
10710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10711 | (exit $ac_status); } && |
|
|
10712 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10714 | (eval $ac_try) 2>&5 |
|
|
10715 | ac_status=$? |
|
|
10716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10717 | (exit $ac_status); }; } && |
|
|
10718 | { ac_try='test -s conftest.$ac_objext' |
|
|
10719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10720 | (eval $ac_try) 2>&5 |
|
|
10721 | ac_status=$? |
|
|
10722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10723 | (exit $ac_status); }; }; then |
|
|
10724 | struct_utmpx_host=yes |
|
|
10725 | else |
|
|
10726 | echo "$as_me: failed program was:" >&5 |
|
|
10727 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10728 | |
|
|
10729 | struct_utmpx_host=no |
|
|
10730 | fi |
|
|
10731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10732 | fi |
|
|
10733 | echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
|
|
10734 | echo "${ECHO_T}$struct_utmpx_host" >&6 |
|
|
10735 | if test x$struct_utmpx_host = xyes; then |
|
|
10736 | |
|
|
10737 | cat >>confdefs.h <<\_ACEOF |
|
|
10738 | #define HAVE_UTMPX_HOST 1 |
|
|
10739 | _ACEOF |
|
|
10740 | |
|
|
10741 | fi |
|
|
10742 | |
|
|
10743 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
10744 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
10745 | if test "${struct_utmpx_session+set}" = set; then |
|
|
10746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10747 | else |
|
|
10748 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10749 | /* confdefs.h. */ |
|
|
10750 | _ACEOF |
|
|
10751 | cat confdefs.h >>conftest.$ac_ext |
|
|
10752 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10753 | /* end confdefs.h. */ |
|
|
10754 | #include <sys/types.h> |
|
|
10755 | #include <utmpx.h> |
|
|
10756 | int |
|
|
10757 | main () |
|
|
10758 | { |
|
|
10759 | struct utmpx utx; utx.ut_session; |
|
|
10760 | ; |
|
|
10761 | return 0; |
|
|
10762 | } |
|
|
10763 | _ACEOF |
|
|
10764 | rm -f conftest.$ac_objext |
|
|
10765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10766 | (eval $ac_compile) 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); } && |
|
|
10773 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10775 | (eval $ac_try) 2>&5 |
|
|
10776 | ac_status=$? |
|
|
10777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10778 | (exit $ac_status); }; } && |
|
|
10779 | { ac_try='test -s conftest.$ac_objext' |
|
|
10780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10781 | (eval $ac_try) 2>&5 |
|
|
10782 | ac_status=$? |
|
|
10783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10784 | (exit $ac_status); }; }; then |
|
|
10785 | struct_utmpx_session=yes |
|
|
10786 | else |
|
|
10787 | echo "$as_me: failed program was:" >&5 |
|
|
10788 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10789 | |
|
|
10790 | struct_utmpx_session=no |
|
|
10791 | fi |
|
|
10792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10793 | fi |
|
|
10794 | echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
|
|
10795 | echo "${ECHO_T}$struct_utmpx_session" >&6 |
|
|
10796 | if test x$struct_utmpx_session = xyes; then |
|
|
10797 | |
|
|
10798 | cat >>confdefs.h <<\_ACEOF |
|
|
10799 | #define HAVE_UTMPX_SESSION 1 |
|
|
10800 | _ACEOF |
|
|
10801 | |
|
|
10802 | fi |
|
|
10803 | |
|
|
10804 | fi |
|
|
10805 | |
|
|
10806 | |
|
|
10807 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
10808 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
|
|
10809 | if test "${struct_lastlog+set}" = set; then |
|
|
10810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10811 | else |
|
|
10812 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10813 | /* confdefs.h. */ |
|
|
10814 | _ACEOF |
|
|
10815 | cat confdefs.h >>conftest.$ac_ext |
|
|
10816 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10817 | /* end confdefs.h. */ |
|
|
10818 | #include <sys/types.h> |
|
|
10819 | #include <utmp.h> |
|
|
10820 | #ifdef HAVE_LASTLOG_H |
|
|
10821 | #include <lastlog.h> |
|
|
10822 | #endif |
|
|
10823 | |
|
|
10824 | int |
|
|
10825 | main () |
|
|
10826 | { |
|
|
10827 | struct lastlog ll; |
|
|
10828 | ; |
|
|
10829 | return 0; |
|
|
10830 | } |
|
|
10831 | _ACEOF |
|
|
10832 | rm -f conftest.$ac_objext |
|
|
10833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10834 | (eval $ac_compile) 2>conftest.er1 |
|
|
10835 | ac_status=$? |
|
|
10836 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10837 | rm -f conftest.er1 |
|
|
10838 | cat conftest.err >&5 |
|
|
10839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10840 | (exit $ac_status); } && |
|
|
10841 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10843 | (eval $ac_try) 2>&5 |
|
|
10844 | ac_status=$? |
|
|
10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10846 | (exit $ac_status); }; } && |
|
|
10847 | { ac_try='test -s conftest.$ac_objext' |
|
|
10848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10849 | (eval $ac_try) 2>&5 |
|
|
10850 | ac_status=$? |
|
|
10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10852 | (exit $ac_status); }; }; then |
|
|
10853 | struct_lastlog=yes |
|
|
10854 | else |
|
|
10855 | echo "$as_me: failed program was:" >&5 |
|
|
10856 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10857 | |
|
|
10858 | struct_lastlog=no |
|
|
10859 | fi |
|
|
10860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10861 | fi |
|
|
10862 | echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
|
|
10863 | echo "${ECHO_T}$struct_lastlog" >&6 |
|
|
10864 | if test x$struct_lastlog = xyes; then |
|
|
10865 | |
|
|
10866 | cat >>confdefs.h <<\_ACEOF |
|
|
10867 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
10868 | _ACEOF |
|
|
10869 | |
|
|
10870 | fi |
|
|
10871 | |
|
|
10872 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
10873 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
|
|
10874 | if test "${struct_lastlogx+set}" = set; then |
|
|
10875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10876 | else |
|
|
10877 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10878 | /* confdefs.h. */ |
|
|
10879 | _ACEOF |
|
|
10880 | cat confdefs.h >>conftest.$ac_ext |
|
|
10881 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10882 | /* end confdefs.h. */ |
|
|
10883 | #include <sys/types.h> |
|
|
10884 | #include <utmpx.h> |
|
|
10885 | #ifdef HAVE_LASTLOG_H |
|
|
10886 | #include <lastlog.h> |
|
|
10887 | #endif |
|
|
10888 | |
|
|
10889 | int |
|
|
10890 | main () |
|
|
10891 | { |
|
|
10892 | struct lastlogx ll; |
|
|
10893 | ; |
|
|
10894 | return 0; |
|
|
10895 | } |
|
|
10896 | _ACEOF |
|
|
10897 | rm -f conftest.$ac_objext |
|
|
10898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10899 | (eval $ac_compile) 2>conftest.er1 |
|
|
10900 | ac_status=$? |
|
|
10901 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10902 | rm -f conftest.er1 |
|
|
10903 | cat conftest.err >&5 |
|
|
10904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10905 | (exit $ac_status); } && |
|
|
10906 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10908 | (eval $ac_try) 2>&5 |
|
|
10909 | ac_status=$? |
|
|
10910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10911 | (exit $ac_status); }; } && |
|
|
10912 | { ac_try='test -s conftest.$ac_objext' |
|
|
10913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10914 | (eval $ac_try) 2>&5 |
|
|
10915 | ac_status=$? |
|
|
10916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10917 | (exit $ac_status); }; }; then |
|
|
10918 | struct_lastlogx=yes |
|
|
10919 | else |
|
|
10920 | echo "$as_me: failed program was:" >&5 |
|
|
10921 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10922 | |
|
|
10923 | struct_lastlogx=no |
|
|
10924 | fi |
|
|
10925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10926 | fi |
|
|
10927 | echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
|
|
10928 | echo "${ECHO_T}$struct_lastlogx" >&6 |
|
|
10929 | if test x$struct_lastlogx = xyes; then |
|
|
10930 | |
|
|
10931 | cat >>confdefs.h <<\_ACEOF |
|
|
10932 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
10933 | _ACEOF |
|
|
10934 | |
|
|
10935 | fi |
|
|
10936 | |
|
|
10937 | |
|
|
10938 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
10939 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
|
|
10940 | if test "${path_utmp+set}" = set; then |
|
|
10941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10942 | else |
|
|
10943 | if test "$cross_compiling" = yes; then |
|
|
10944 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
10945 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
10946 | else |
|
|
10947 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10948 | /* confdefs.h. */ |
|
|
10949 | _ACEOF |
|
|
10950 | cat confdefs.h >>conftest.$ac_ext |
|
|
10951 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10952 | /* end confdefs.h. */ |
|
|
10953 | #include <stdio.h> |
|
|
10954 | #include <sys/types.h> |
|
|
10955 | #include <utmp.h> |
|
|
10956 | #include <errno.h> |
|
|
10957 | main() |
|
|
10958 | { |
|
|
10959 | char **u, *utmplist[] = { |
|
|
10960 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
10961 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
10962 | if (!f) exit(1); |
|
|
10963 | #ifdef UTMP_FILE |
|
|
10964 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
10965 | exit(0); |
|
|
10966 | #endif |
|
|
10967 | #ifdef _PATH_UTMP |
|
|
10968 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
10969 | exit(0); |
|
|
10970 | #endif |
|
|
10971 | for (u = utmplist; *u; u++) { |
|
|
10972 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
10973 | fprintf(f, "%s\n", *u); |
|
|
10974 | exit(0); |
|
|
10975 | } |
|
|
10976 | } |
|
|
10977 | exit(0); |
|
|
10978 | } |
|
|
10979 | _ACEOF |
|
|
10980 | rm -f conftest$ac_exeext |
|
|
10981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10982 | (eval $ac_link) 2>&5 |
|
|
10983 | ac_status=$? |
|
|
10984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
10986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10987 | (eval $ac_try) 2>&5 |
|
|
10988 | ac_status=$? |
|
|
10989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10990 | (exit $ac_status); }; }; then |
|
|
10991 | path_utmp=`cat conftestval` |
|
|
10992 | else |
|
|
10993 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
10994 | echo "$as_me: failed program was:" >&5 |
|
|
10995 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10996 | |
|
|
10997 | ( exit $ac_status ) |
|
|
10998 | path_utmp= |
|
|
10999 | fi |
|
|
11000 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11001 | fi |
|
|
11002 | fi |
|
|
11003 | echo "$as_me:$LINENO: result: $path_utmp" >&5 |
|
|
11004 | echo "${ECHO_T}$path_utmp" >&6 |
|
|
11005 | if test x$path_utmp != x; then |
|
|
11006 | |
|
|
11007 | cat >>confdefs.h <<_ACEOF |
|
|
11008 | #define UTMP_FILE "$path_utmp" |
|
|
11009 | _ACEOF |
|
|
11010 | |
|
|
11011 | fi |
|
|
11012 | |
|
|
11013 | |
|
|
11014 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
11015 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
|
|
11016 | if test "${path_utmpx+set}" = set; then |
|
|
11017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11018 | else |
|
|
11019 | if test "$cross_compiling" = yes; then |
|
|
11020 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
|
|
11021 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
|
|
11022 | else |
|
|
11023 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11024 | /* confdefs.h. */ |
|
|
11025 | _ACEOF |
|
|
11026 | cat confdefs.h >>conftest.$ac_ext |
|
|
11027 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11028 | /* end confdefs.h. */ |
|
|
11029 | #include <stdio.h> |
|
|
11030 | #include <sys/types.h> |
|
|
11031 | #include <utmpx.h> |
|
|
11032 | #include <errno.h> |
|
|
11033 | #include <sys/stat.h> |
|
|
11034 | #ifdef HAVE_STRING_H |
|
|
11035 | #include <string.h> |
|
|
11036 | #endif |
|
|
11037 | main() |
|
|
11038 | { |
|
|
11039 | char **u, *p, *utmplist[] = { |
|
|
11040 | #ifdef UTMPX_FILE |
|
|
11041 | UTMPX_FILE, |
|
|
11042 | #endif |
|
|
11043 | #ifdef _PATH_UTMPX |
|
|
11044 | _PATH_UTMPX, |
|
|
11045 | #endif |
|
|
11046 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
11047 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11048 | struct stat statu, statux; |
|
|
11049 | if (!f) exit(1); |
|
|
11050 | for (u = utmplist; *u; u++) { |
|
|
11051 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11052 | if (stat(*u, &statux) < 0) |
|
|
11053 | continue; |
|
|
11054 | p = strdup(*u); |
|
|
11055 | p[strlen(p) - 1] = '\0'; |
|
|
11056 | if (stat(p, &statu) >= 0 |
|
|
11057 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
11058 | continue; |
|
|
11059 | fprintf(f, "%s\n", *u); |
|
|
11060 | exit(0); |
|
|
11061 | } |
|
|
11062 | } |
|
|
11063 | exit(0); |
|
|
11064 | } |
|
|
11065 | _ACEOF |
|
|
11066 | rm -f conftest$ac_exeext |
|
|
11067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11068 | (eval $ac_link) 2>&5 |
|
|
11069 | ac_status=$? |
|
|
11070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11073 | (eval $ac_try) 2>&5 |
|
|
11074 | ac_status=$? |
|
|
11075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11076 | (exit $ac_status); }; }; then |
|
|
11077 | path_utmpx=`cat conftestval` |
|
|
11078 | else |
|
|
11079 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11080 | echo "$as_me: failed program was:" >&5 |
|
|
11081 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11082 | |
|
|
11083 | ( exit $ac_status ) |
|
|
11084 | path_utmpx= |
|
|
11085 | fi |
|
|
11086 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11087 | fi |
|
|
11088 | fi |
|
|
11089 | echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
|
|
11090 | echo "${ECHO_T}$path_utmpx" >&6 |
|
|
11091 | if test x$path_utmpx != x; then |
|
|
11092 | |
|
|
11093 | cat >>confdefs.h <<_ACEOF |
|
|
11094 | #define UTMPX_FILE "$path_utmpx" |
|
|
11095 | _ACEOF |
|
|
11096 | |
|
|
11097 | fi |
|
|
11098 | |
|
|
11099 | |
|
|
11100 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
11101 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
|
|
11102 | if test "${path_wtmp+set}" = set; then |
|
|
11103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11104 | else |
|
|
11105 | if test "$cross_compiling" = yes; then |
|
|
11106 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
11107 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
11108 | else |
|
|
11109 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11110 | /* confdefs.h. */ |
|
|
11111 | _ACEOF |
|
|
11112 | cat confdefs.h >>conftest.$ac_ext |
|
|
11113 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11114 | /* end confdefs.h. */ |
|
|
11115 | #include <stdio.h> |
|
|
11116 | #include <sys/types.h> |
|
|
11117 | #ifdef HAVE_UTMP_H |
|
|
11118 | #include <utmp.h> |
|
|
11119 | #endif |
|
|
11120 | #include <errno.h> |
|
|
11121 | main() |
|
|
11122 | { |
|
|
11123 | char **w, *wtmplist[] = { |
|
|
11124 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
11125 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11126 | if (!f) exit(1); |
|
|
11127 | #ifdef WTMP_FILE |
|
|
11128 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
11129 | exit(0); |
|
|
11130 | #endif |
|
|
11131 | #ifdef _PATH_WTMP |
|
|
11132 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
11133 | exit(0); |
|
|
11134 | #endif |
|
|
11135 | for (w = wtmplist; *w; w++) { |
|
|
11136 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11137 | fprintf(f, "%s\n", *w); |
|
|
11138 | exit(0); |
|
|
11139 | } |
|
|
11140 | } |
|
|
11141 | exit(0); |
|
|
11142 | } |
|
|
11143 | _ACEOF |
|
|
11144 | rm -f conftest$ac_exeext |
|
|
11145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11146 | (eval $ac_link) 2>&5 |
|
|
11147 | ac_status=$? |
|
|
11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11149 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11151 | (eval $ac_try) 2>&5 |
|
|
11152 | ac_status=$? |
|
|
11153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11154 | (exit $ac_status); }; }; then |
|
|
11155 | path_wtmp=`cat conftestval` |
|
|
11156 | else |
|
|
11157 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11158 | echo "$as_me: failed program was:" >&5 |
|
|
11159 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11160 | |
|
|
11161 | ( exit $ac_status ) |
|
|
11162 | path_wtmp= |
|
|
11163 | fi |
|
|
11164 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11165 | fi |
|
|
11166 | fi |
|
|
11167 | echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
|
|
11168 | echo "${ECHO_T}$path_wtmp" >&6 |
|
|
11169 | if test x$path_wtmp != x; then |
|
|
11170 | |
|
|
11171 | cat >>confdefs.h <<_ACEOF |
|
|
11172 | #define WTMP_FILE "$path_wtmp" |
|
|
11173 | _ACEOF |
|
|
11174 | |
|
|
11175 | fi |
|
|
11176 | |
|
|
11177 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
11178 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
|
|
11179 | if test "${path_wtmpx+set}" = set; then |
|
|
11180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11181 | else |
|
|
11182 | if test "$cross_compiling" = yes; then |
|
|
11183 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
|
|
11184 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
|
|
11185 | else |
|
|
11186 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11187 | /* confdefs.h. */ |
|
|
11188 | _ACEOF |
|
|
11189 | cat confdefs.h >>conftest.$ac_ext |
|
|
11190 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11191 | /* end confdefs.h. */ |
|
|
11192 | #include <stdio.h> |
|
|
11193 | #ifdef HAVE_UTMPX_H |
|
|
11194 | #include <utmpx.h> |
|
|
11195 | #endif |
|
|
11196 | #include <errno.h> |
|
|
11197 | main() |
|
|
11198 | { |
|
|
11199 | char **w, *wtmplist[] = { |
|
|
11200 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
11201 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11202 | if (!f) exit(1); |
|
|
11203 | #ifdef WTMPX_FILE |
|
|
11204 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
11205 | exit(0); |
|
|
11206 | #endif |
|
|
11207 | #ifdef _PATH_WTMPX |
|
|
11208 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
11209 | exit(0); |
|
|
11210 | #endif |
|
|
11211 | for (w = wtmplist; *w; w++) { |
|
|
11212 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11213 | fprintf(f, "%s\n", *w); |
|
|
11214 | exit(0); |
|
|
11215 | } |
|
|
11216 | } |
|
|
11217 | exit(0); |
|
|
11218 | } |
|
|
11219 | _ACEOF |
|
|
11220 | rm -f conftest$ac_exeext |
|
|
11221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11222 | (eval $ac_link) 2>&5 |
|
|
11223 | ac_status=$? |
|
|
11224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11225 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11227 | (eval $ac_try) 2>&5 |
|
|
11228 | ac_status=$? |
|
|
11229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11230 | (exit $ac_status); }; }; then |
|
|
11231 | path_wtmpx=`cat conftestval` |
|
|
11232 | else |
|
|
11233 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11234 | echo "$as_me: failed program was:" >&5 |
|
|
11235 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11236 | |
|
|
11237 | ( exit $ac_status ) |
|
|
11238 | path_wtmpx= |
|
|
11239 | fi |
|
|
11240 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11241 | fi |
|
|
11242 | fi |
|
|
11243 | echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
|
|
11244 | echo "${ECHO_T}$path_wtmpx" >&6 |
|
|
11245 | if test x$path_wtmpx != x; then |
|
|
11246 | |
|
|
11247 | cat >>confdefs.h <<_ACEOF |
|
|
11248 | #define WTMPX_FILE "$path_wtmpx" |
|
|
11249 | _ACEOF |
|
|
11250 | |
|
|
11251 | fi |
|
|
11252 | |
|
|
11253 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
11254 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
|
|
11255 | if test "${path_lastlog+set}" = set; then |
|
|
11256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11257 | else |
|
|
11258 | if test "$cross_compiling" = yes; then |
|
|
11259 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
|
|
11260 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
|
|
11261 | else |
|
|
11262 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11263 | /* confdefs.h. */ |
|
|
11264 | _ACEOF |
|
|
11265 | cat confdefs.h >>conftest.$ac_ext |
|
|
11266 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11267 | /* end confdefs.h. */ |
|
|
11268 | #include <stdio.h> |
|
|
11269 | #include <sys/types.h> |
|
|
11270 | #ifdef HAVE_UTMPX_H |
|
|
11271 | #include <utmpx.h> |
|
|
11272 | #elif defined(HAVE_UTMP_H) |
|
|
11273 | #include <utmp.h> |
|
|
11274 | #endif |
|
|
11275 | #ifdef HAVE_LASTLOG_H |
|
|
11276 | #include <lastlog.h> |
|
|
11277 | #endif |
|
|
11278 | #include <errno.h> |
|
|
11279 | main() |
|
|
11280 | { |
|
|
11281 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
11282 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11283 | if (!f) exit(1); |
|
|
11284 | #ifdef LASTLOG_FILE |
|
|
11285 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
11286 | exit(0); |
|
|
11287 | #endif |
|
|
11288 | #ifdef _PATH_LASTLOG |
|
|
11289 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
11290 | exit(0); |
|
|
11291 | #endif |
|
|
11292 | for (w = lastloglist; *w; w++) { |
|
|
11293 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11294 | fprintf(f, "%s\n", *w); |
|
|
11295 | exit(0); |
|
|
11296 | } |
|
|
11297 | } |
|
|
11298 | exit(0); |
|
|
11299 | } |
|
|
11300 | _ACEOF |
|
|
11301 | rm -f conftest$ac_exeext |
|
|
11302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11303 | (eval $ac_link) 2>&5 |
|
|
11304 | ac_status=$? |
|
|
11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11306 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11308 | (eval $ac_try) 2>&5 |
|
|
11309 | ac_status=$? |
|
|
11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11311 | (exit $ac_status); }; }; then |
|
|
11312 | path_lastlog=`cat conftestval` |
|
|
11313 | else |
|
|
11314 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11315 | echo "$as_me: failed program was:" >&5 |
|
|
11316 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11317 | |
|
|
11318 | ( exit $ac_status ) |
|
|
11319 | path_lastlog= |
|
|
11320 | fi |
|
|
11321 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11322 | fi |
|
|
11323 | fi |
|
|
11324 | echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
|
|
11325 | echo "${ECHO_T}$path_lastlog" >&6 |
|
|
11326 | if test x$path_lastlog != x; then |
|
|
11327 | |
|
|
11328 | cat >>confdefs.h <<_ACEOF |
|
|
11329 | #define LASTLOG_FILE "$path_lastlog" |
|
|
11330 | _ACEOF |
|
|
11331 | |
|
|
11332 | if test -d "$path_lastlog"; then |
|
|
11333 | |
|
|
11334 | cat >>confdefs.h <<\_ACEOF |
|
|
11335 | #define LASTLOG_IS_DIR 1 |
|
|
11336 | _ACEOF |
|
|
11337 | |
|
|
11338 | fi |
|
|
11339 | fi |
|
|
11340 | |
|
|
11341 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
11342 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
|
|
11343 | if test "${path_lastlogx+set}" = set; then |
|
|
11344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11345 | else |
|
|
11346 | if test "$cross_compiling" = yes; then |
|
|
11347 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
|
|
11348 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
|
|
11349 | else |
|
|
11350 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11351 | /* confdefs.h. */ |
|
|
11352 | _ACEOF |
|
|
11353 | cat confdefs.h >>conftest.$ac_ext |
|
|
11354 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11355 | /* end confdefs.h. */ |
|
|
11356 | #include <stdio.h> |
|
|
11357 | #ifdef HAVE_UTMPX_H |
|
|
11358 | #include <utmpx.h> |
|
|
11359 | #endif |
|
|
11360 | #include <errno.h> |
|
|
11361 | main() |
|
|
11362 | { |
|
|
11363 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
11364 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11365 | if (!f) exit(1); |
|
|
11366 | #ifdef LASTLOGX_FILE |
|
|
11367 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
11368 | exit(0); |
|
|
11369 | #endif |
|
|
11370 | #ifdef _PATH_LASTLOGX |
|
|
11371 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
11372 | exit(0); |
|
|
11373 | #endif |
|
|
11374 | for (w = wtmplist; *w; w++) { |
|
|
11375 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11376 | fprintf(f, "%s\n", *w); |
|
|
11377 | exit(0); |
|
|
11378 | } |
|
|
11379 | } |
|
|
11380 | exit(0); |
|
|
11381 | } |
|
|
11382 | _ACEOF |
|
|
11383 | rm -f conftest$ac_exeext |
|
|
11384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11385 | (eval $ac_link) 2>&5 |
|
|
11386 | ac_status=$? |
|
|
11387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11390 | (eval $ac_try) 2>&5 |
|
|
11391 | ac_status=$? |
|
|
11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11393 | (exit $ac_status); }; }; then |
|
|
11394 | path_lastlogx=`cat conftestval` |
|
|
11395 | else |
|
|
11396 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11397 | echo "$as_me: failed program was:" >&5 |
|
|
11398 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11399 | |
|
|
11400 | ( exit $ac_status ) |
|
|
11401 | path_lastlogx= |
|
|
11402 | fi |
|
|
11403 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11404 | fi |
|
|
11405 | fi |
|
|
11406 | echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
|
|
11407 | echo "${ECHO_T}$path_lastlogx" >&6 |
|
|
11408 | if test x$path_lastlogx != x; then |
|
|
11409 | |
|
|
11410 | cat >>confdefs.h <<_ACEOF |
|
|
11411 | #define LASTLOGX_FILE "$path_lastlogx" |
|
|
11412 | _ACEOF |
|
|
11413 | |
|
|
11414 | fi |
|
|
11415 | |
|
|
11416 | if test x$support_utmp != xyes; then |
|
|
11417 | echo " utmp support: disabled" |
|
|
11418 | echo |
|
|
11419 | else |
|
|
11420 | echo " utmp support: enabled |
|
|
11421 | utmp file: $path_utmp |
|
|
11422 | utmpx file: $path_utmpx |
|
|
11423 | wtmp file: $path_wtmp |
|
|
11424 | wtmpx file: $path_wtmpx |
|
|
11425 | lastlog file: $path_lastlog |
|
|
11426 | lastlogx file: $path_lastlogx" |
|
|
11427 | fi |
|
|
11428 | |
|
|
11429 | |
|
|
11430 | |
|
|
11431 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
|
|
11432 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
|
|
11433 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
|
|
11434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11435 | else |
|
|
11436 | for ttys_file in /etc/ttys /etc/ttytab; |
|
|
11437 | do |
|
|
11438 | if test -f "$ttys_file" ; then |
|
|
11439 | rxvt_cv_path_ttytab=$ttys_file |
|
|
11440 | break |
|
|
11441 | fi |
|
|
11442 | done |
|
|
11443 | |
|
|
11444 | fi |
|
|
11445 | echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5 |
|
|
11446 | echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6 |
|
|
11447 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
11448 | |
|
|
11449 | cat >>confdefs.h <<_ACEOF |
|
|
11450 | #define TTYTAB_FILENAME "$rxvt_cv_path_ttytab" |
|
|
11451 | _ACEOF |
|
|
11452 | |
|
|
11453 | fi |
|
|
11454 | |
|
|
11455 | |
|
|
11456 | ac_save_LIBS=$LIBS |
|
|
11457 | ac_save_CFLAGS=$CFLAGS |
|
|
11458 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
11459 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
11460 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
11461 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
11462 | fi |
|
|
11463 | echo "$as_me:$LINENO: checking for working Xlocale" >&5 |
|
|
11464 | echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6 |
|
|
11465 | if test "${rxvt_cv_func_xlocale+set}" = set; then |
|
|
11466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11467 | else |
|
|
11468 | if test "$cross_compiling" = yes; then |
|
|
11469 | { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 |
|
|
11470 | echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;} |
|
|
11471 | else |
|
|
11472 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11473 | /* confdefs.h. */ |
|
|
11474 | _ACEOF |
|
|
11475 | cat confdefs.h >>conftest.$ac_ext |
|
|
11476 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11477 | /* end confdefs.h. */ |
|
|
11478 | #include <X11/Xlib.h> |
|
|
11479 | main() { |
|
|
11480 | char *p; |
|
|
11481 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
11482 | exit (XSupportsLocale() ? 0 : 1); |
|
|
11483 | else |
|
|
11484 | exit (1);} |
|
|
11485 | _ACEOF |
|
|
11486 | rm -f conftest$ac_exeext |
|
|
11487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11488 | (eval $ac_link) 2>&5 |
|
|
11489 | ac_status=$? |
|
|
11490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11491 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11493 | (eval $ac_try) 2>&5 |
|
|
11494 | ac_status=$? |
|
|
11495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11496 | (exit $ac_status); }; }; then |
|
|
11497 | rxvt_cv_func_xlocale=yes |
|
|
11498 | else |
|
|
11499 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11500 | echo "$as_me: failed program was:" >&5 |
|
|
11501 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11502 | |
|
|
11503 | ( exit $ac_status ) |
|
|
11504 | rxvt_cv_func_xlocale=no |
|
|
11505 | fi |
|
|
11506 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11507 | fi |
|
|
11508 | fi |
|
|
11509 | echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 |
|
|
11510 | echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6 |
|
|
11511 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
11512 | |
|
|
11513 | cat >>confdefs.h <<\_ACEOF |
|
|
11514 | #define HAVE_XLOCALE 1 |
|
|
11515 | _ACEOF |
|
|
11516 | |
|
|
11517 | fi |
|
|
11518 | |
|
|
11519 | echo "$as_me:$LINENO: checking for working X setlocale" >&5 |
|
|
11520 | echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6 |
|
|
11521 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then |
|
|
11522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11523 | else |
|
|
11524 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11525 | /* confdefs.h. */ |
|
|
11526 | _ACEOF |
|
|
11527 | cat confdefs.h >>conftest.$ac_ext |
|
|
11528 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11529 | /* end confdefs.h. */ |
|
|
11530 | #define X_LOCALE 1 |
|
|
11531 | #include <X11/Xlocale.h> |
|
|
11532 | int |
|
|
11533 | main () |
|
|
11534 | { |
|
|
11535 | setlocale(LC_CTYPE, ""); |
|
|
11536 | ; |
|
|
11537 | return 0; |
|
|
11538 | } |
|
|
11539 | _ACEOF |
|
|
11540 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11542 | (eval $ac_link) 2>conftest.er1 |
|
|
11543 | ac_status=$? |
|
|
11544 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11545 | rm -f conftest.er1 |
|
|
11546 | cat conftest.err >&5 |
|
|
11547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11548 | (exit $ac_status); } && |
|
|
11549 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11551 | (eval $ac_try) 2>&5 |
|
|
11552 | ac_status=$? |
|
|
11553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11554 | (exit $ac_status); }; } && |
|
|
11555 | { ac_try='test -s conftest$ac_exeext' |
|
|
11556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11557 | (eval $ac_try) 2>&5 |
|
|
11558 | ac_status=$? |
|
|
11559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11560 | (exit $ac_status); }; }; then |
|
|
11561 | rxvt_cv_func_xsetlocale=yes |
|
|
11562 | else |
|
|
11563 | echo "$as_me: failed program was:" >&5 |
|
|
11564 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11565 | |
|
|
11566 | rxvt_cv_func_xsetlocale=no |
|
|
11567 | fi |
|
|
11568 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11569 | conftest$ac_exeext conftest.$ac_ext |
|
|
11570 | fi |
|
|
11571 | echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
11572 | echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6 |
|
|
11573 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
11574 | |
|
|
11575 | cat >>confdefs.h <<\_ACEOF |
|
|
11576 | #define HAVE_XSETLOCALE 1 |
|
|
11577 | _ACEOF |
|
|
11578 | |
|
|
11579 | fi |
|
|
11580 | LIBS=$ac_save_LIBS |
|
|
11581 | CFLAGS=$ac_save_CFLAGS |
|
|
11582 | |
|
|
11583 | echo "$as_me:$LINENO: checking for working plain setlocale" >&5 |
|
|
11584 | echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6 |
|
|
11585 | if test "${rxvt_cv_func_setlocale+set}" = set; then |
|
|
11586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11587 | else |
|
|
11588 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11589 | /* confdefs.h. */ |
|
|
11590 | _ACEOF |
|
|
11591 | cat confdefs.h >>conftest.$ac_ext |
|
|
11592 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11593 | /* end confdefs.h. */ |
|
|
11594 | #include <clocale> |
|
|
11595 | int |
|
|
11596 | main () |
|
|
11597 | { |
|
|
11598 | setlocale(LC_CTYPE, ""); |
|
|
11599 | ; |
|
|
11600 | return 0; |
|
|
11601 | } |
|
|
11602 | _ACEOF |
|
|
11603 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11605 | (eval $ac_link) 2>conftest.er1 |
|
|
11606 | ac_status=$? |
|
|
11607 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11608 | rm -f conftest.er1 |
|
|
11609 | cat conftest.err >&5 |
|
|
11610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11611 | (exit $ac_status); } && |
|
|
11612 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11614 | (eval $ac_try) 2>&5 |
|
|
11615 | ac_status=$? |
|
|
11616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11617 | (exit $ac_status); }; } && |
|
|
11618 | { ac_try='test -s conftest$ac_exeext' |
|
|
11619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11620 | (eval $ac_try) 2>&5 |
|
|
11621 | ac_status=$? |
|
|
11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11623 | (exit $ac_status); }; }; then |
|
|
11624 | rxvt_cv_func_setlocale=yes |
|
|
11625 | else |
|
|
11626 | echo "$as_me: failed program was:" >&5 |
|
|
11627 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11628 | |
|
|
11629 | rxvt_cv_func_setlocale=no |
|
|
11630 | fi |
|
|
11631 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11632 | conftest$ac_exeext conftest.$ac_ext |
|
|
11633 | fi |
|
|
11634 | echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 |
|
|
11635 | echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6 |
|
|
11636 | if test x$rxvt_cv_func_setlocale = xyes; then |
|
|
11637 | |
|
|
11638 | cat >>confdefs.h <<\_ACEOF |
|
|
11639 | #define HAVE_SETLOCALE 1 |
|
|
11640 | _ACEOF |
|
|
11641 | |
|
|
11642 | fi |
|
|
11643 | |
|
|
11644 | echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 |
|
|
11645 | echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6 |
|
|
11646 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then |
|
|
11647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11648 | else |
|
|
11649 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11650 | /* confdefs.h. */ |
|
|
11651 | _ACEOF |
|
|
11652 | cat confdefs.h >>conftest.$ac_ext |
|
|
11653 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11654 | /* end confdefs.h. */ |
|
|
11655 | #include <langinfo.h> |
|
|
11656 | int |
|
|
11657 | main () |
|
|
11658 | { |
|
|
11659 | nl_langinfo(CODESET); |
|
|
11660 | ; |
|
|
11661 | return 0; |
|
|
11662 | } |
|
|
11663 | _ACEOF |
|
|
11664 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11666 | (eval $ac_link) 2>conftest.er1 |
|
|
11667 | ac_status=$? |
|
|
11668 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11669 | rm -f conftest.er1 |
|
|
11670 | cat conftest.err >&5 |
|
|
11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11672 | (exit $ac_status); } && |
|
|
11673 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11675 | (eval $ac_try) 2>&5 |
|
|
11676 | ac_status=$? |
|
|
11677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11678 | (exit $ac_status); }; } && |
|
|
11679 | { ac_try='test -s conftest$ac_exeext' |
|
|
11680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11681 | (eval $ac_try) 2>&5 |
|
|
11682 | ac_status=$? |
|
|
11683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11684 | (exit $ac_status); }; }; then |
|
|
11685 | rxvt_cv_func_nl_langinfo=yes |
|
|
11686 | else |
|
|
11687 | echo "$as_me: failed program was:" >&5 |
|
|
11688 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11689 | |
|
|
11690 | rxvt_cv_func_nl_langinfo=no |
|
|
11691 | fi |
|
|
11692 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11693 | conftest$ac_exeext conftest.$ac_ext |
|
|
11694 | fi |
|
|
11695 | echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
11696 | echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6 |
|
|
11697 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
11698 | |
|
|
11699 | cat >>confdefs.h <<\_ACEOF |
|
|
11700 | #define HAVE_NL_LANGINFO 1 |
|
|
11701 | _ACEOF |
|
|
11702 | |
|
|
11703 | fi |
|
|
11704 | |
|
|
11705 | |
|
|
11706 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
11707 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11708 | if test "${can_pass_fds+set}" = set; then |
|
|
11709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11710 | else |
|
|
11711 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11712 | /* confdefs.h. */ |
|
|
11713 | _ACEOF |
|
|
11714 | cat confdefs.h >>conftest.$ac_ext |
|
|
11715 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11716 | /* end confdefs.h. */ |
|
|
11717 | |
|
|
11718 | #include <cstddef> // broken bsds (is that redundant?) need this |
|
|
11719 | #include <sys/types.h> |
|
|
11720 | #include <sys/socket.h> |
|
|
11721 | #include <sys/uio.h> |
|
|
11722 | |
|
|
11723 | int |
|
|
11724 | main () |
|
|
11725 | { |
|
|
11726 | |
|
|
11727 | { |
|
|
11728 | msghdr msg; |
|
|
11729 | iovec iov; |
|
|
11730 | char buf [100]; |
|
|
11731 | char data = 0; |
|
|
11732 | |
|
|
11733 | iov.iov_base = &data; |
|
|
11734 | iov.iov_len = 1; |
|
|
11735 | |
|
|
11736 | msg.msg_iov = &iov; |
|
|
11737 | msg.msg_iovlen = 1; |
|
|
11738 | msg.msg_control = buf; |
|
|
11739 | msg.msg_controllen = sizeof buf; |
|
|
11740 | |
|
|
11741 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11742 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11743 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11744 | cmsg->cmsg_len = 100; |
|
|
11745 | |
|
|
11746 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11747 | |
|
|
11748 | return sendmsg (3, &msg, 0); |
|
|
11749 | } |
|
|
11750 | |
|
|
11751 | ; |
|
|
11752 | return 0; |
|
|
11753 | } |
|
|
11754 | _ACEOF |
|
|
11755 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11757 | (eval $ac_link) 2>conftest.er1 |
|
|
11758 | ac_status=$? |
|
|
11759 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11760 | rm -f conftest.er1 |
|
|
11761 | cat conftest.err >&5 |
|
|
11762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11763 | (exit $ac_status); } && |
|
|
11764 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11766 | (eval $ac_try) 2>&5 |
|
|
11767 | ac_status=$? |
|
|
11768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11769 | (exit $ac_status); }; } && |
|
|
11770 | { ac_try='test -s conftest$ac_exeext' |
|
|
11771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11772 | (eval $ac_try) 2>&5 |
|
|
11773 | ac_status=$? |
|
|
11774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11775 | (exit $ac_status); }; }; then |
|
|
11776 | can_pass_fds=yes |
|
|
11777 | else |
|
|
11778 | echo "$as_me: failed program was:" >&5 |
|
|
11779 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11780 | |
|
|
11781 | can_pass_fds=no |
|
|
11782 | fi |
|
|
11783 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11784 | conftest$ac_exeext conftest.$ac_ext |
|
|
11785 | fi |
|
|
11786 | echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
|
|
11787 | echo "${ECHO_T}$can_pass_fds" >&6 |
|
|
11788 | if test x$can_pass_fds = xyes; then |
|
|
11789 | |
|
|
11790 | cat >>confdefs.h <<\_ACEOF |
|
|
11791 | #define HAVE_UNIX_FDPASS 1 |
|
|
11792 | _ACEOF |
|
|
11793 | |
|
|
11794 | else |
|
|
11795 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
|
|
11796 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
|
|
11797 | { (exit 1); exit 1; }; } |
|
|
11798 | fi |
|
|
11799 | |
|
|
11800 | |
|
|
11801 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
|
|
11802 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
|
|
11803 | if test "${rxvt_broken_ximcb+set}" = set; then |
|
|
11804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11805 | else |
|
|
11806 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11807 | |
|
|
11808 | #include <X11/Xlib.h> |
|
|
11809 | |
|
|
11810 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
11811 | |
|
|
11812 | void f() { |
|
|
11813 | XIMCallback cb; |
|
|
11814 | cb.callback = im_destroy_cb; |
|
|
11815 | } |
|
|
11816 | |
|
|
11817 | _ACEOF |
|
|
11818 | rm -f conftest.$ac_objext |
|
|
11819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11820 | (eval $ac_compile) 2>conftest.er1 |
|
|
11821 | ac_status=$? |
|
|
11822 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11823 | rm -f conftest.er1 |
|
|
11824 | cat conftest.err >&5 |
|
|
11825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11826 | (exit $ac_status); } && |
|
|
11827 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11829 | (eval $ac_try) 2>&5 |
|
|
11830 | ac_status=$? |
|
|
11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11832 | (exit $ac_status); }; } && |
|
|
11833 | { ac_try='test -s conftest.$ac_objext' |
|
|
11834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11835 | (eval $ac_try) 2>&5 |
|
|
11836 | ac_status=$? |
|
|
11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11838 | (exit $ac_status); }; }; then |
|
|
11839 | rxvt_broken_ximcb=yes |
|
|
11840 | else |
|
|
11841 | echo "$as_me: failed program was:" >&5 |
|
|
11842 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11843 | |
|
|
11844 | rxvt_broken_ximcb=no |
|
|
11845 | fi |
|
|
11846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11847 | fi |
|
|
11848 | echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5 |
|
|
11849 | echo "${ECHO_T}$rxvt_broken_ximcb" >&6 |
|
|
11850 | |
|
|
11851 | if test x$rxvt_broken_ximcb = xyes; then |
|
|
11852 | |
|
|
11853 | cat >>confdefs.h <<\_ACEOF |
|
|
11854 | #define XIMCB_PROTO_BROKEN 1 |
|
|
11855 | _ACEOF |
|
|
11856 | |
|
|
11857 | fi |
|
|
11858 | |
|
|
11859 | |
|
|
11860 | |
|
|
11861 | |
|
|
11862 | |
|
|
11863 | |
|
|
11864 | |
|
|
11865 | for ac_header in \ |
|
|
11866 | pty.h \ |
|
|
11867 | util.h \ |
|
|
11868 | libutil.h \ |
|
|
11869 | sys/ioctl.h \ |
|
|
11870 | sys/stropts.h \ |
|
|
11871 | |
|
|
11872 | do |
|
|
11873 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
11874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
11875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
11876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
11877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
11878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11879 | fi |
|
|
11880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
11881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
11882 | else |
|
|
11883 | # Is the header compilable? |
|
|
11884 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
11885 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
11886 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11887 | /* confdefs.h. */ |
|
|
11888 | _ACEOF |
|
|
11889 | cat confdefs.h >>conftest.$ac_ext |
|
|
11890 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11891 | /* end confdefs.h. */ |
|
|
11892 | $ac_includes_default |
|
|
11893 | #include <$ac_header> |
|
|
11894 | _ACEOF |
|
|
11895 | rm -f conftest.$ac_objext |
|
|
11896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11897 | (eval $ac_compile) 2>conftest.er1 |
|
|
11898 | ac_status=$? |
|
|
11899 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11900 | rm -f conftest.er1 |
|
|
11901 | cat conftest.err >&5 |
|
|
11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11903 | (exit $ac_status); } && |
|
|
11904 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11906 | (eval $ac_try) 2>&5 |
|
|
11907 | ac_status=$? |
|
|
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11909 | (exit $ac_status); }; } && |
|
|
11910 | { ac_try='test -s conftest.$ac_objext' |
|
|
11911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11912 | (eval $ac_try) 2>&5 |
|
|
11913 | ac_status=$? |
|
|
11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11915 | (exit $ac_status); }; }; then |
|
|
11916 | ac_header_compiler=yes |
|
|
11917 | else |
|
|
11918 | echo "$as_me: failed program was:" >&5 |
|
|
11919 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11920 | |
|
|
11921 | ac_header_compiler=no |
|
|
11922 | fi |
|
|
11923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11924 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
11925 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
11926 | |
|
|
11927 | # Is the header present? |
|
|
11928 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
11929 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
11930 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11931 | /* confdefs.h. */ |
|
|
11932 | _ACEOF |
|
|
11933 | cat confdefs.h >>conftest.$ac_ext |
|
|
11934 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11935 | /* end confdefs.h. */ |
|
|
11936 | #include <$ac_header> |
|
|
11937 | _ACEOF |
|
|
11938 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
11939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
11940 | ac_status=$? |
|
|
11941 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11942 | rm -f conftest.er1 |
|
|
11943 | cat conftest.err >&5 |
|
|
11944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11945 | (exit $ac_status); } >/dev/null; then |
|
|
11946 | if test -s conftest.err; then |
|
|
11947 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
11948 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
11949 | else |
|
|
11950 | ac_cpp_err= |
|
|
11951 | fi |
|
|
11952 | else |
|
|
11953 | ac_cpp_err=yes |
|
|
11954 | fi |
|
|
11955 | if test -z "$ac_cpp_err"; then |
|
|
11956 | ac_header_preproc=yes |
|
|
11957 | else |
|
|
11958 | echo "$as_me: failed program was:" >&5 |
|
|
11959 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11960 | |
|
|
11961 | ac_header_preproc=no |
|
|
11962 | fi |
|
|
11963 | rm -f conftest.err conftest.$ac_ext |
|
|
11964 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
11965 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
11966 | |
|
|
11967 | # So? What about this header? |
|
|
11968 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
11969 | yes:no: ) |
|
|
11970 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
11971 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
11972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
11973 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
11974 | ac_header_preproc=yes |
|
|
11975 | ;; |
|
|
11976 | no:yes:* ) |
|
|
11977 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
11978 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
11979 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
11980 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
11981 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
11982 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
11983 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
11984 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
11985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
11986 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
11987 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
11988 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
11989 | ( |
|
|
11990 | cat <<\_ASBOX |
|
|
11991 | ## ------------------------------------------ ## |
|
|
11992 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
11993 | ## ------------------------------------------ ## |
|
|
11994 | _ASBOX |
|
|
11995 | ) | |
|
|
11996 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
11997 | ;; |
|
|
11998 | esac |
|
|
11999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12003 | else |
|
|
12004 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12005 | fi |
|
|
12006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12007 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12008 | |
|
|
12009 | fi |
|
|
12010 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12011 | cat >>confdefs.h <<_ACEOF |
|
|
12012 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12013 | _ACEOF |
|
|
12014 | |
|
|
12015 | fi |
|
|
12016 | |
|
|
12017 | done |
|
|
12018 | |
|
|
12019 | |
|
|
12020 | |
|
|
12021 | |
|
|
12022 | |
|
|
12023 | |
|
|
12024 | |
|
|
12025 | |
|
|
12026 | |
|
|
12027 | |
|
|
12028 | |
|
|
12029 | for ac_func in \ |
|
|
12030 | revoke \ |
|
|
12031 | _getpty \ |
|
|
12032 | getpt \ |
|
|
12033 | posix_openpt \ |
|
|
12034 | isastream \ |
|
|
12035 | setuid \ |
|
|
12036 | seteuid \ |
|
|
12037 | setreuid \ |
|
|
12038 | setresuid \ |
|
|
12039 | |
|
|
12040 | do |
|
|
12041 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12042 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12043 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12044 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12046 | else |
|
|
12047 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12048 | /* confdefs.h. */ |
|
|
12049 | _ACEOF |
|
|
12050 | cat confdefs.h >>conftest.$ac_ext |
|
|
12051 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12052 | /* end confdefs.h. */ |
|
|
12053 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12054 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12055 | #define $ac_func innocuous_$ac_func |
|
|
12056 | |
|
|
12057 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12058 | which can conflict with char $ac_func (); below. |
|
|
12059 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12060 | <limits.h> exists even on freestanding compilers. */ |
|
|
12061 | |
|
|
12062 | #ifdef __STDC__ |
|
|
12063 | # include <limits.h> |
|
|
12064 | #else |
|
|
12065 | # include <assert.h> |
|
|
12066 | #endif |
|
|
12067 | |
|
|
12068 | #undef $ac_func |
|
|
12069 | |
|
|
12070 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12071 | #ifdef __cplusplus |
|
|
12072 | extern "C" |
|
|
12073 | { |
|
|
12074 | #endif |
|
|
12075 | /* We use char because int might match the return type of a gcc2 |
|
|
12076 | builtin and then its argument prototype would still apply. */ |
|
|
12077 | char $ac_func (); |
|
|
12078 | /* The GNU C library defines this for functions which it implements |
|
|
12079 | to always fail with ENOSYS. Some functions are actually named |
|
|
12080 | something starting with __ and the normal name is an alias. */ |
|
|
12081 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12082 | choke me |
|
|
12083 | #else |
|
|
12084 | char (*f) () = $ac_func; |
|
|
12085 | #endif |
|
|
12086 | #ifdef __cplusplus |
|
|
12087 | } |
|
|
12088 | #endif |
|
|
12089 | |
|
|
12090 | int |
|
|
12091 | main () |
|
|
12092 | { |
|
|
12093 | return f != $ac_func; |
|
|
12094 | ; |
|
|
12095 | return 0; |
|
|
12096 | } |
|
|
12097 | _ACEOF |
|
|
12098 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12100 | (eval $ac_link) 2>conftest.er1 |
|
|
12101 | ac_status=$? |
|
|
12102 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12103 | rm -f conftest.er1 |
|
|
12104 | cat conftest.err >&5 |
|
|
12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12106 | (exit $ac_status); } && |
|
|
12107 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12109 | (eval $ac_try) 2>&5 |
|
|
12110 | ac_status=$? |
|
|
12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12112 | (exit $ac_status); }; } && |
|
|
12113 | { ac_try='test -s conftest$ac_exeext' |
|
|
12114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12115 | (eval $ac_try) 2>&5 |
|
|
12116 | ac_status=$? |
|
|
12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12118 | (exit $ac_status); }; }; then |
|
|
12119 | eval "$as_ac_var=yes" |
|
|
12120 | else |
|
|
12121 | echo "$as_me: failed program was:" >&5 |
|
|
12122 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12123 | |
|
|
12124 | eval "$as_ac_var=no" |
|
|
12125 | fi |
|
|
12126 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12127 | conftest$ac_exeext conftest.$ac_ext |
|
|
12128 | fi |
|
|
12129 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12130 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12131 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12132 | cat >>confdefs.h <<_ACEOF |
|
|
12133 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12134 | _ACEOF |
|
|
12135 | |
|
|
12136 | fi |
|
|
12137 | done |
|
|
12138 | |
|
|
12139 | |
|
|
12140 | have_clone=no |
|
|
12141 | |
|
|
12142 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12143 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12144 | if test -e /dev/ptym/clone; then |
|
|
12145 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12146 | echo "${ECHO_T}yes" >&6 |
|
|
12147 | |
|
|
12148 | cat >>confdefs.h <<\_ACEOF |
|
|
12149 | #define HAVE_DEV_CLONE 1 |
|
|
12150 | _ACEOF |
|
|
12151 | |
|
|
12152 | |
|
|
12153 | cat >>confdefs.h <<\_ACEOF |
|
|
12154 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12155 | _ACEOF |
|
|
12156 | |
|
|
12157 | have_clone=yes |
|
|
12158 | else |
|
|
12159 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12160 | echo "${ECHO_T}no" >&6 |
|
|
12161 | fi |
|
|
12162 | |
|
|
12163 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12164 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12165 | if test -e /dev/ptc; then |
|
|
12166 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12167 | echo "${ECHO_T}yes" >&6 |
|
|
12168 | |
|
|
12169 | cat >>confdefs.h <<\_ACEOF |
|
|
12170 | #define HAVE_DEV_PTC 1 |
|
|
12171 | _ACEOF |
|
|
12172 | |
|
|
12173 | |
|
|
12174 | cat >>confdefs.h <<\_ACEOF |
|
|
12175 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12176 | _ACEOF |
|
|
12177 | |
|
|
12178 | have_clone=yes |
|
|
12179 | else |
|
|
12180 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12181 | echo "${ECHO_T}no" >&6 |
|
|
12182 | fi |
|
|
12183 | |
|
|
12184 | case $host in |
|
|
12185 | *-*-cygwin*) |
|
|
12186 | have_clone=yes |
|
|
12187 | |
|
|
12188 | cat >>confdefs.h <<\_ACEOF |
|
|
12189 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12190 | _ACEOF |
|
|
12191 | |
|
|
12192 | ;; |
|
|
12193 | *) |
|
|
12194 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12195 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12196 | if test -e /dev/ptmx; then |
|
|
12197 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12198 | echo "${ECHO_T}yes" >&6 |
|
|
12199 | |
|
|
12200 | cat >>confdefs.h <<\_ACEOF |
|
|
12201 | #define HAVE_DEV_PTMX 1 |
|
|
12202 | _ACEOF |
|
|
12203 | |
|
|
12204 | |
|
|
12205 | cat >>confdefs.h <<\_ACEOF |
|
|
12206 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12207 | _ACEOF |
|
|
12208 | |
|
|
12209 | have_clone=yes |
|
|
12210 | else |
|
|
12211 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12212 | echo "${ECHO_T}no" >&6 |
|
|
12213 | fi |
|
|
12214 | ;; |
|
|
12215 | esac |
|
|
12216 | |
|
|
12217 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12218 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12219 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12220 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12221 | /* confdefs.h. */ |
|
|
12222 | _ACEOF |
|
|
12223 | cat confdefs.h >>conftest.$ac_ext |
|
|
12224 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12225 | /* end confdefs.h. */ |
|
|
12226 | #include <stdlib.h> |
|
|
12227 | int |
|
|
12228 | main () |
|
|
12229 | { |
|
|
12230 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12231 | ; |
|
|
12232 | return 0; |
|
|
12233 | } |
|
|
12234 | _ACEOF |
|
|
12235 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12237 | (eval $ac_link) 2>conftest.er1 |
|
|
12238 | ac_status=$? |
|
|
12239 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12240 | rm -f conftest.er1 |
|
|
12241 | cat conftest.err >&5 |
|
|
12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12243 | (exit $ac_status); } && |
|
|
12244 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12246 | (eval $ac_try) 2>&5 |
|
|
12247 | ac_status=$? |
|
|
12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12249 | (exit $ac_status); }; } && |
|
|
12250 | { ac_try='test -s conftest$ac_exeext' |
|
|
12251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12252 | (eval $ac_try) 2>&5 |
|
|
12253 | ac_status=$? |
|
|
12254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12255 | (exit $ac_status); }; }; then |
|
|
12256 | unix98_pty=yes |
|
|
12257 | |
|
|
12258 | cat >>confdefs.h <<\_ACEOF |
|
|
12259 | #define UNIX98_PTY 1 |
|
|
12260 | _ACEOF |
|
|
12261 | |
|
|
12262 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12263 | echo "${ECHO_T}yes" >&6 |
|
|
12264 | else |
|
|
12265 | echo "$as_me: failed program was:" >&5 |
|
|
12266 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12267 | |
|
|
12268 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12269 | echo "${ECHO_T}no" >&6 |
|
|
12270 | fi |
|
|
12271 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12272 | conftest$ac_exeext conftest.$ac_ext |
|
|
12273 | fi |
|
|
12274 | |
|
|
12275 | if test -z "$unix98_pty"; then |
|
|
12276 | |
|
|
12277 | for ac_func in openpty |
|
|
12278 | do |
|
|
12279 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12280 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12281 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12282 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12284 | else |
|
|
12285 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12286 | /* confdefs.h. */ |
|
|
12287 | _ACEOF |
|
|
12288 | cat confdefs.h >>conftest.$ac_ext |
|
|
12289 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12290 | /* end confdefs.h. */ |
|
|
12291 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12292 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12293 | #define $ac_func innocuous_$ac_func |
|
|
12294 | |
|
|
12295 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12296 | which can conflict with char $ac_func (); below. |
|
|
12297 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12298 | <limits.h> exists even on freestanding compilers. */ |
|
|
12299 | |
|
|
12300 | #ifdef __STDC__ |
|
|
12301 | # include <limits.h> |
|
|
12302 | #else |
|
|
12303 | # include <assert.h> |
|
|
12304 | #endif |
|
|
12305 | |
|
|
12306 | #undef $ac_func |
|
|
12307 | |
|
|
12308 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12309 | #ifdef __cplusplus |
|
|
12310 | extern "C" |
|
|
12311 | { |
|
|
12312 | #endif |
|
|
12313 | /* We use char because int might match the return type of a gcc2 |
|
|
12314 | builtin and then its argument prototype would still apply. */ |
|
|
12315 | char $ac_func (); |
|
|
12316 | /* The GNU C library defines this for functions which it implements |
|
|
12317 | to always fail with ENOSYS. Some functions are actually named |
|
|
12318 | something starting with __ and the normal name is an alias. */ |
|
|
12319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12320 | choke me |
|
|
12321 | #else |
|
|
12322 | char (*f) () = $ac_func; |
|
|
12323 | #endif |
|
|
12324 | #ifdef __cplusplus |
|
|
12325 | } |
|
|
12326 | #endif |
|
|
12327 | |
|
|
12328 | int |
|
|
12329 | main () |
|
|
12330 | { |
|
|
12331 | return f != $ac_func; |
|
|
12332 | ; |
|
|
12333 | return 0; |
|
|
12334 | } |
|
|
12335 | _ACEOF |
|
|
12336 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12338 | (eval $ac_link) 2>conftest.er1 |
|
|
12339 | ac_status=$? |
|
|
12340 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12341 | rm -f conftest.er1 |
|
|
12342 | cat conftest.err >&5 |
|
|
12343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12344 | (exit $ac_status); } && |
|
|
12345 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12347 | (eval $ac_try) 2>&5 |
|
|
12348 | ac_status=$? |
|
|
12349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12350 | (exit $ac_status); }; } && |
|
|
12351 | { ac_try='test -s conftest$ac_exeext' |
|
|
12352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12353 | (eval $ac_try) 2>&5 |
|
|
12354 | ac_status=$? |
|
|
12355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12356 | (exit $ac_status); }; }; then |
|
|
12357 | eval "$as_ac_var=yes" |
|
|
12358 | else |
|
|
12359 | echo "$as_me: failed program was:" >&5 |
|
|
12360 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12361 | |
|
|
12362 | eval "$as_ac_var=no" |
|
|
12363 | fi |
|
|
12364 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12365 | conftest$ac_exeext conftest.$ac_ext |
|
|
12366 | fi |
|
|
12367 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12368 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12369 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12370 | cat >>confdefs.h <<_ACEOF |
|
|
12371 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12372 | _ACEOF |
|
|
12373 | |
|
|
12374 | else |
|
|
12375 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12376 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12377 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12379 | else |
|
|
12380 | ac_check_lib_save_LIBS=$LIBS |
|
|
12381 | LIBS="-lutil $LIBS" |
|
|
12382 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12383 | /* confdefs.h. */ |
|
|
12384 | _ACEOF |
|
|
12385 | cat confdefs.h >>conftest.$ac_ext |
|
|
12386 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12387 | /* end confdefs.h. */ |
|
|
12388 | |
|
|
12389 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12390 | #ifdef __cplusplus |
|
|
12391 | extern "C" |
|
|
12392 | #endif |
|
|
12393 | /* We use char because int might match the return type of a gcc2 |
|
|
12394 | builtin and then its argument prototype would still apply. */ |
|
|
12395 | char openpty (); |
|
|
12396 | int |
|
|
12397 | main () |
|
|
12398 | { |
|
|
12399 | openpty (); |
|
|
12400 | ; |
|
|
12401 | return 0; |
|
|
12402 | } |
|
|
12403 | _ACEOF |
|
|
12404 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12406 | (eval $ac_link) 2>conftest.er1 |
|
|
12407 | ac_status=$? |
|
|
12408 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12409 | rm -f conftest.er1 |
|
|
12410 | cat conftest.err >&5 |
|
|
12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12412 | (exit $ac_status); } && |
|
|
12413 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12415 | (eval $ac_try) 2>&5 |
|
|
12416 | ac_status=$? |
|
|
12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12418 | (exit $ac_status); }; } && |
|
|
12419 | { ac_try='test -s conftest$ac_exeext' |
|
|
12420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12421 | (eval $ac_try) 2>&5 |
|
|
12422 | ac_status=$? |
|
|
12423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12424 | (exit $ac_status); }; }; then |
|
|
12425 | ac_cv_lib_util_openpty=yes |
|
|
12426 | else |
|
|
12427 | echo "$as_me: failed program was:" >&5 |
|
|
12428 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12429 | |
|
|
12430 | ac_cv_lib_util_openpty=no |
|
|
12431 | fi |
|
|
12432 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12433 | conftest$ac_exeext conftest.$ac_ext |
|
|
12434 | LIBS=$ac_check_lib_save_LIBS |
|
|
12435 | fi |
|
|
12436 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12437 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12438 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12439 | cat >>confdefs.h <<\_ACEOF |
|
|
12440 | #define HAVE_OPENPTY 1 |
|
|
12441 | _ACEOF |
|
|
12442 | LIBS="$LIBS -lutil" |
|
|
12443 | fi |
|
|
12444 | |
|
|
12445 | fi |
|
|
12446 | done |
|
|
12447 | |
|
|
12448 | fi |
|
|
12449 | |
|
|
12450 | |
|
|
12451 | |
|
|
12452 | echo "$as_me:$LINENO: checking for tty group" >&5 |
|
|
12453 | echo $ECHO_N "checking for tty group... $ECHO_C" >&6 |
|
|
12454 | if test "${tty_group+set}" = set; then |
|
|
12455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12456 | else |
|
|
12457 | if test "$cross_compiling" = yes; then |
|
|
12458 | tty_group=no |
|
|
12459 | else |
|
|
12460 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12461 | /* confdefs.h. */ |
|
|
12462 | _ACEOF |
|
|
12463 | cat confdefs.h >>conftest.$ac_ext |
|
|
12464 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12465 | /* end confdefs.h. */ |
|
|
12466 | |
|
|
12467 | #include <sys/types.h> |
|
|
12468 | #include <sys/stat.h> |
|
|
12469 | #include <unistd.h> |
|
|
12470 | #include <grp.h> |
|
|
12471 | |
|
|
12472 | main() |
|
|
12473 | { |
|
|
12474 | struct stat st; |
|
|
12475 | struct group *gr; |
|
|
12476 | char *tty; |
|
|
12477 | gr = getgrnam("tty"); |
|
|
12478 | tty = ttyname(0); |
|
|
12479 | if (gr != 0 |
|
|
12480 | && tty != 0 |
|
|
12481 | && (stat(tty, &st)) == 0 |
|
|
12482 | && st.st_gid == gr->gr_gid) |
|
|
12483 | return 0; |
|
|
12484 | else |
|
|
12485 | return 1; |
|
|
12486 | } |
|
|
12487 | _ACEOF |
|
|
12488 | rm -f conftest$ac_exeext |
|
|
12489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12490 | (eval $ac_link) 2>&5 |
|
|
12491 | ac_status=$? |
|
|
12492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12495 | (eval $ac_try) 2>&5 |
|
|
12496 | ac_status=$? |
|
|
12497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12498 | (exit $ac_status); }; }; then |
|
|
12499 | tty_group=yes |
|
|
12500 | else |
|
|
12501 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12502 | echo "$as_me: failed program was:" >&5 |
|
|
12503 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12504 | |
|
|
12505 | ( exit $ac_status ) |
|
|
12506 | tty_group=no |
|
|
12507 | fi |
|
|
12508 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12509 | fi |
|
|
12510 | fi |
|
|
12511 | echo "$as_me:$LINENO: result: $tty_group" >&5 |
|
|
12512 | echo "${ECHO_T}$tty_group" >&6 |
|
|
12513 | if test x$tty_group = xyes; then |
|
|
12514 | |
|
|
12515 | cat >>confdefs.h <<\_ACEOF |
|
|
12516 | #define TTY_GID_SUPPORT 1 |
|
|
12517 | _ACEOF |
|
|
12518 | |
|
|
12519 | fi |
|
|
12520 | |
|
|
12521 | if test x$support_xft = xyes; then |
|
|
12522 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
12523 | set dummy pkg-config; ac_word=$2 |
|
|
12524 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12526 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
|
|
12527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12528 | else |
|
|
12529 | case $PKG_CONFIG in |
|
|
12530 | [\\/]* | ?:[\\/]*) |
|
|
12531 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
|
|
12532 | ;; |
|
|
12533 | *) |
|
|
12534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12535 | for as_dir in $PATH |
|
|
12536 | do |
|
|
12537 | IFS=$as_save_IFS |
|
|
12538 | test -z "$as_dir" && as_dir=. |
|
|
12539 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12540 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12541 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12543 | break 2 |
|
|
12544 | fi |
|
|
12545 | done |
|
|
12546 | done |
|
|
12547 | |
|
|
12548 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
12549 | ;; |
|
|
12550 | esac |
|
|
12551 | fi |
|
|
12552 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
12553 | |
|
|
12554 | if test -n "$PKG_CONFIG"; then |
|
|
12555 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
12556 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
|
|
12557 | else |
|
|
12558 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12559 | echo "${ECHO_T}no" >&6 |
|
|
12560 | fi |
|
|
12561 | |
|
|
12562 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
12563 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
|
|
12564 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
|
|
12565 | else |
|
|
12566 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
12567 | set dummy xft-config; ac_word=$2 |
|
|
12568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12570 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
|
|
12571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12572 | else |
|
|
12573 | case $XFT_CONFIG in |
|
|
12574 | [\\/]* | ?:[\\/]*) |
|
|
12575 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
12576 | ;; |
|
|
12577 | *) |
|
|
12578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12579 | for as_dir in $PATH |
|
|
12580 | do |
|
|
12581 | IFS=$as_save_IFS |
|
|
12582 | test -z "$as_dir" && as_dir=. |
|
|
12583 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12585 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12587 | break 2 |
|
|
12588 | fi |
|
|
12589 | done |
|
|
12590 | done |
|
|
12591 | |
|
|
12592 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
12593 | ;; |
|
|
12594 | esac |
|
|
12595 | fi |
|
|
12596 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
12597 | |
|
|
12598 | if test -n "$XFT_CONFIG"; then |
|
|
12599 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
|
|
12600 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
|
|
12601 | else |
|
|
12602 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12603 | echo "${ECHO_T}no" >&6 |
|
|
12604 | fi |
|
|
12605 | |
|
|
12606 | if test $XFT_CONFIG != no; then |
|
|
12607 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
|
|
12608 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
12609 | fi |
|
|
12610 | fi |
|
|
12611 | |
|
|
12612 | |
|
|
12613 | for ac_header in X11/Xft/Xft.h |
|
|
12614 | do |
|
|
12615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12621 | fi |
|
|
12622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12624 | else |
|
|
12625 | # Is the header compilable? |
|
|
12626 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12627 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12628 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12629 | /* confdefs.h. */ |
|
|
12630 | _ACEOF |
|
|
12631 | cat confdefs.h >>conftest.$ac_ext |
|
|
12632 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12633 | /* end confdefs.h. */ |
|
|
12634 | $ac_includes_default |
|
|
12635 | #include <$ac_header> |
|
|
12636 | _ACEOF |
|
|
12637 | rm -f conftest.$ac_objext |
|
|
12638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12639 | (eval $ac_compile) 2>conftest.er1 |
|
|
12640 | ac_status=$? |
|
|
12641 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12642 | rm -f conftest.er1 |
|
|
12643 | cat conftest.err >&5 |
|
|
12644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12645 | (exit $ac_status); } && |
|
|
12646 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12648 | (eval $ac_try) 2>&5 |
|
|
12649 | ac_status=$? |
|
|
12650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12651 | (exit $ac_status); }; } && |
|
|
12652 | { ac_try='test -s conftest.$ac_objext' |
|
|
12653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12654 | (eval $ac_try) 2>&5 |
|
|
12655 | ac_status=$? |
|
|
12656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12657 | (exit $ac_status); }; }; then |
|
|
12658 | ac_header_compiler=yes |
|
|
12659 | else |
|
|
12660 | echo "$as_me: failed program was:" >&5 |
|
|
12661 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12662 | |
|
|
12663 | ac_header_compiler=no |
|
|
12664 | fi |
|
|
12665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12666 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12667 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12668 | |
|
|
12669 | # Is the header present? |
|
|
12670 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12671 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12672 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12673 | /* confdefs.h. */ |
|
|
12674 | _ACEOF |
|
|
12675 | cat confdefs.h >>conftest.$ac_ext |
|
|
12676 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12677 | /* end confdefs.h. */ |
|
|
12678 | #include <$ac_header> |
|
|
12679 | _ACEOF |
|
|
12680 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12681 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12682 | ac_status=$? |
|
|
12683 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12684 | rm -f conftest.er1 |
|
|
12685 | cat conftest.err >&5 |
|
|
12686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12687 | (exit $ac_status); } >/dev/null; then |
|
|
12688 | if test -s conftest.err; then |
|
|
12689 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12690 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12691 | else |
|
|
12692 | ac_cpp_err= |
|
|
12693 | fi |
|
|
12694 | else |
|
|
12695 | ac_cpp_err=yes |
|
|
12696 | fi |
|
|
12697 | if test -z "$ac_cpp_err"; then |
|
|
12698 | ac_header_preproc=yes |
|
|
12699 | else |
|
|
12700 | echo "$as_me: failed program was:" >&5 |
|
|
12701 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12702 | |
|
|
12703 | ac_header_preproc=no |
|
|
12704 | fi |
|
|
12705 | rm -f conftest.err conftest.$ac_ext |
|
|
12706 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12707 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12708 | |
|
|
12709 | # So? What about this header? |
|
|
12710 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12711 | yes:no: ) |
|
|
12712 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12713 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12715 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12716 | ac_header_preproc=yes |
|
|
12717 | ;; |
|
|
12718 | no:yes:* ) |
|
|
12719 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12720 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12721 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12722 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12723 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12724 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12725 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12726 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12728 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12729 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12730 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12731 | ( |
|
|
12732 | cat <<\_ASBOX |
|
|
12733 | ## ------------------------------------------ ## |
|
|
12734 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12735 | ## ------------------------------------------ ## |
|
|
12736 | _ASBOX |
|
|
12737 | ) | |
|
|
12738 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12739 | ;; |
|
|
12740 | esac |
|
|
12741 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12742 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12743 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12745 | else |
|
|
12746 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12747 | fi |
|
|
12748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12749 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12750 | |
|
|
12751 | fi |
|
|
12752 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12753 | cat >>confdefs.h <<_ACEOF |
|
|
12754 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12755 | _ACEOF |
|
|
12756 | |
10761 | else |
12757 | else |
10762 | support_xft=no |
12758 | support_xft=no |
10763 | fi |
12759 | fi |
10764 | |
12760 | |
10765 | done |
12761 | done |
… | |
… | |
10909 | cat >>confdefs.h <<\_ACEOF |
12905 | cat >>confdefs.h <<\_ACEOF |
10910 | #define ENABLE_FRILLS 1 |
12906 | #define ENABLE_FRILLS 1 |
10911 | _ACEOF |
12907 | _ACEOF |
10912 | |
12908 | |
10913 | fi |
12909 | 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 |
12910 | if test x$support_mousewheel = xyes; then |
10922 | |
12911 | |
10923 | cat >>confdefs.h <<\_ACEOF |
12912 | cat >>confdefs.h <<\_ACEOF |
10924 | #define MOUSE_WHEEL 1 |
12913 | #define MOUSE_WHEEL 1 |
10925 | _ACEOF |
12914 | _ACEOF |
… | |
… | |
10927 | fi |
12916 | fi |
10928 | if test x$support_mouseslipwheel = xyes; then |
12917 | if test x$support_mouseslipwheel = xyes; then |
10929 | |
12918 | |
10930 | cat >>confdefs.h <<\_ACEOF |
12919 | cat >>confdefs.h <<\_ACEOF |
10931 | #define MOUSE_SLIP_WHEELING 1 |
12920 | #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 |
12921 | _ACEOF |
10954 | |
12922 | |
10955 | fi |
12923 | fi |
10956 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
12924 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
10957 | if test x$rxvt_cv_func_xlocale = xyes; then |
12925 | if test x$rxvt_cv_func_xlocale = xyes; then |
… | |
… | |
12002 | s,@EGREP@,$EGREP,;t t |
13970 | s,@EGREP@,$EGREP,;t t |
12003 | s,@LINKER@,$LINKER,;t t |
13971 | s,@LINKER@,$LINKER,;t t |
12004 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
13972 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
12005 | s,@RXVTNAME@,$RXVTNAME,;t t |
13973 | s,@RXVTNAME@,$RXVTNAME,;t t |
12006 | s,@MV@,$MV,;t t |
13974 | s,@MV@,$MV,;t t |
12007 | s,@RM@,$RM,;t t |
|
|
12008 | s,@CP@,$CP,;t t |
13975 | s,@CP@,$CP,;t t |
12009 | s,@LN@,$LN,;t t |
13976 | s,@LN@,$LN,;t t |
12010 | s,@SED@,$SED,;t t |
13977 | s,@SED@,$SED,;t t |
12011 | s,@ECHO@,$ECHO,;t t |
13978 | s,@ECHO@,$ECHO,;t t |
12012 | s,@CMP@,$CMP,;t t |
13979 | s,@CMP@,$CMP,;t t |
… | |
… | |
12551 | Install path: ${prefix}/bin |
14518 | Install path: ${prefix}/bin |
12552 | Compiler: $CXX |
14519 | Compiler: $CXX |
12553 | Compiler flags: $CFLAGS |
14520 | Compiler flags: $CFLAGS |
12554 | Linker: $LINKER" |
14521 | Linker: $LINKER" |
12555 | |
14522 | |
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 |
14523 | if test x$support_xpm = xyes; then |
12567 | echo " Xpm library: $XPM_LIBS" |
14524 | echo " Xpm library: $XPM_LIBS" |
12568 | fi |
14525 | fi |
12569 | |
14526 | |
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 |
14527 | if test x$term != x; then |
12588 | echo " set TERM to: $term" |
14528 | echo " set TERM to: $term" |
12589 | fi |
14529 | fi |
12590 | if test x$terminfo != x; then |
14530 | if test x$terminfo != x; then |
12591 | echo " set TERMINFO to: $terminfo" |
14531 | echo " set TERMINFO to: $terminfo" |
… | |
… | |
12593 | echo " default resource name: $RESNAME" |
14533 | echo " default resource name: $RESNAME" |
12594 | echo " resource class: $RESCLASS" |
14534 | echo " resource class: $RESCLASS" |
12595 | if test x$RESFALLBACK != x; then |
14535 | if test x$RESFALLBACK != x; then |
12596 | echo " resource class fallback: $RESFALLBACK" |
14536 | echo " resource class fallback: $RESFALLBACK" |
12597 | fi |
14537 | fi |
|
|
14538 | echo |
|
|
14539 | echo " embedded perl: $support_perl" |
12598 | echo |
14540 | echo |
12599 | if test x$support_xpm = xneedsmanualspecification; then |
14541 | if test x$support_xpm = xneedsmanualspecification; then |
12600 | echo ".----------------------------------------------------------------." |
14542 | echo ".----------------------------------------------------------------." |
12601 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14543 | echo ". WARNING: --enable-xpm-background was specified however the ." |
12602 | echo ". XPM includes files and libraries could not be found. ." |
14544 | echo ". XPM includes files and libraries could not be found. ." |
… | |
… | |
12612 | echo ". functions could not be found. ." |
14554 | echo ". functions could not be found. ." |
12613 | echo ". XIM is now being DISABLED! ." |
14555 | echo ". XIM is now being DISABLED! ." |
12614 | echo ".----------------------------------------------------------------." |
14556 | echo ".----------------------------------------------------------------." |
12615 | fi |
14557 | fi |
12616 | |
14558 | |
12617 | echo " *** Optionally check src/feature.h for further options ***" |
14559 | echo "*** Optionally check src/feature.h for further, rarely used options ***" |
12618 | echo |
14560 | echo |
12619 | |
14561 | |
12620 | echo ".----------------------------------------------------------------." |
|
|
12621 | echo ". NOTE: some features are disabled by default, try ." |
|
|
12622 | echo ". configure --help to get an idea of the optional features, ." |
|
|
12623 | echo ". or read ./README.configure ." |
|
|
12624 | echo ". ." |
|
|
12625 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
12626 | echo ". you do not want to read documentation and still want some ." |
|
|
12627 | echo ". useful features. ." |
|
|
12628 | echo ".----------------------------------------------------------------." |
|
|
12629 | echo |
|
|
12630 | |
|
|