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