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