… | |
… | |
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 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 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' |
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 |
… | |
… | |
3221 | if test "$ac_cv_search_strerror" != no; then |
3221 | if test "$ac_cv_search_strerror" != no; then |
3222 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3222 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3223 | |
3223 | |
3224 | fi |
3224 | fi |
3225 | |
3225 | |
3226 | |
|
|
3227 | ac_ext=c |
|
|
3228 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | LINKER="$CXX" |
|
|
3235 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3236 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3237 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3238 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3240 | else |
|
|
3241 | ac_check_lib_save_LIBS=$LIBS |
|
|
3242 | LIBS="-lsupc++ $LIBS" |
|
|
3243 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3244 | /* confdefs.h. */ |
|
|
3245 | _ACEOF |
|
|
3246 | cat confdefs.h >>conftest.$ac_ext |
|
|
3247 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3248 | /* end confdefs.h. */ |
|
|
3249 | |
|
|
3250 | |
|
|
3251 | int |
|
|
3252 | main () |
|
|
3253 | { |
|
|
3254 | main (); |
|
|
3255 | ; |
|
|
3256 | return 0; |
|
|
3257 | } |
|
|
3258 | _ACEOF |
|
|
3259 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3261 | (eval $ac_link) 2>conftest.er1 |
|
|
3262 | ac_status=$? |
|
|
3263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3264 | rm -f conftest.er1 |
|
|
3265 | cat conftest.err >&5 |
|
|
3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3267 | (exit $ac_status); } && |
|
|
3268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3270 | (eval $ac_try) 2>&5 |
|
|
3271 | ac_status=$? |
|
|
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3273 | (exit $ac_status); }; } && |
|
|
3274 | { ac_try='test -s conftest$ac_exeext' |
|
|
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3276 | (eval $ac_try) 2>&5 |
|
|
3277 | ac_status=$? |
|
|
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3279 | (exit $ac_status); }; }; then |
|
|
3280 | ac_cv_lib_supcpp_main=yes |
|
|
3281 | else |
|
|
3282 | echo "$as_me: failed program was:" >&5 |
|
|
3283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3284 | |
|
|
3285 | ac_cv_lib_supcpp_main=no |
|
|
3286 | fi |
|
|
3287 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3288 | conftest$ac_exeext conftest.$ac_ext |
|
|
3289 | LIBS=$ac_check_lib_save_LIBS |
|
|
3290 | fi |
|
|
3291 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3292 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3293 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3294 | |
|
|
3295 | LINKER="$CC" |
|
|
3296 | LIBS="$LIBS -lsupc++" |
|
|
3297 | |
|
|
3298 | fi |
|
|
3299 | |
|
|
3300 | fi |
|
|
3301 | LINKER=$LINKER |
|
|
3302 | |
|
|
3303 | |
|
|
3304 | ac_ext=cc |
3226 | ac_ext=cc |
3305 | ac_cpp='$CXXCPP $CPPFLAGS' |
3227 | ac_cpp='$CXXCPP $CPPFLAGS' |
3306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3228 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3229 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3230 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3309 | |
3231 | |
|
|
3232 | |
|
|
3233 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3234 | echo "$as_me:$LINENO: checking for working libsupc++" >&5 |
|
|
3235 | echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6 |
|
|
3236 | save_CXX="$CXX" |
|
|
3237 | save_LIBS="$LIBS" |
|
|
3238 | CXX="$CC" |
|
|
3239 | LIBS="$LIBS -lsupc++" |
|
|
3240 | LINKER="$CC" |
|
|
3241 | |
|
|
3242 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3243 | /* confdefs.h. */ |
|
|
3244 | _ACEOF |
|
|
3245 | cat confdefs.h >>conftest.$ac_ext |
|
|
3246 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3247 | /* end confdefs.h. */ |
|
|
3248 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
|
|
3249 | int |
|
|
3250 | main () |
|
|
3251 | { |
|
|
3252 | |
|
|
3253 | ; |
|
|
3254 | return 0; |
|
|
3255 | } |
|
|
3256 | _ACEOF |
|
|
3257 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3259 | (eval $ac_link) 2>conftest.er1 |
|
|
3260 | ac_status=$? |
|
|
3261 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3262 | rm -f conftest.er1 |
|
|
3263 | cat conftest.err >&5 |
|
|
3264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3265 | (exit $ac_status); } && |
|
|
3266 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3268 | (eval $ac_try) 2>&5 |
|
|
3269 | ac_status=$? |
|
|
3270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3271 | (exit $ac_status); }; } && |
|
|
3272 | { ac_try='test -s conftest$ac_exeext' |
|
|
3273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3274 | (eval $ac_try) 2>&5 |
|
|
3275 | ac_status=$? |
|
|
3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3277 | (exit $ac_status); }; }; then |
|
|
3278 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
3279 | echo "${ECHO_T}ok" >&6 |
|
|
3280 | else |
|
|
3281 | echo "$as_me: failed program was:" >&5 |
|
|
3282 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3283 | |
|
|
3284 | |
|
|
3285 | echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 |
|
|
3286 | echo "${ECHO_T}no, making everything bigger and slower" >&6 |
|
|
3287 | LIBS="$save_LIBS" |
|
|
3288 | LINKER="$save_CXX" |
|
|
3289 | |
|
|
3290 | |
|
|
3291 | fi |
|
|
3292 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3293 | conftest$ac_exeext conftest.$ac_ext |
|
|
3294 | CXX="$save_CXX" |
|
|
3295 | fi |
|
|
3296 | LINKER=$LINKER |
|
|
3297 | |
|
|
3298 | |
|
|
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 | |
3310 | if test -z "$orig_CXXFLAGS"; then |
3305 | if test -z "$orig_CXXFLAGS"; then |
3311 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3306 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
3312 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3307 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
3313 | |
|
|
3314 | cat >conftest.$ac_ext <<_ACEOF |
3308 | cat >conftest.$ac_ext <<_ACEOF |
3315 | /* confdefs.h. */ |
3309 | /* confdefs.h. */ |
3316 | _ACEOF |
3310 | _ACEOF |
3317 | cat confdefs.h >>conftest.$ac_ext |
3311 | cat confdefs.h >>conftest.$ac_ext |
3318 | cat >>conftest.$ac_ext <<_ACEOF |
3312 | cat >>conftest.$ac_ext <<_ACEOF |
3319 | /* end confdefs.h. */ |
3313 | /* end confdefs.h. */ |
… | |
… | |
10187 | |
10181 | |
10188 | fi |
10182 | fi |
10189 | done |
10183 | done |
10190 | |
10184 | |
10191 | |
10185 | |
10192 | |
10186 | UTMP_CHECK |
10193 | |
|
|
10194 | |
|
|
10195 | |
|
|
10196 | for ac_func in \ |
|
|
10197 | ttyslot \ |
|
|
10198 | updwtmp \ |
|
|
10199 | updwtmpx \ |
|
|
10200 | |
|
|
10201 | do |
|
|
10202 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10203 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10204 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
10205 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
10206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10207 | else |
|
|
10208 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10209 | /* confdefs.h. */ |
|
|
10210 | _ACEOF |
|
|
10211 | cat confdefs.h >>conftest.$ac_ext |
|
|
10212 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10213 | /* end confdefs.h. */ |
|
|
10214 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10215 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10216 | #define $ac_func innocuous_$ac_func |
|
|
10217 | |
|
|
10218 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10219 | which can conflict with char $ac_func (); below. |
|
|
10220 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10221 | <limits.h> exists even on freestanding compilers. */ |
|
|
10222 | |
|
|
10223 | #ifdef __STDC__ |
|
|
10224 | # include <limits.h> |
|
|
10225 | #else |
|
|
10226 | # include <assert.h> |
|
|
10227 | #endif |
|
|
10228 | |
|
|
10229 | #undef $ac_func |
|
|
10230 | |
|
|
10231 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
10232 | #ifdef __cplusplus |
|
|
10233 | extern "C" |
|
|
10234 | { |
|
|
10235 | #endif |
|
|
10236 | /* We use char because int might match the return type of a gcc2 |
|
|
10237 | builtin and then its argument prototype would still apply. */ |
|
|
10238 | char $ac_func (); |
|
|
10239 | /* The GNU C library defines this for functions which it implements |
|
|
10240 | to always fail with ENOSYS. Some functions are actually named |
|
|
10241 | something starting with __ and the normal name is an alias. */ |
|
|
10242 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
10243 | choke me |
|
|
10244 | #else |
|
|
10245 | char (*f) () = $ac_func; |
|
|
10246 | #endif |
|
|
10247 | #ifdef __cplusplus |
|
|
10248 | } |
|
|
10249 | #endif |
|
|
10250 | |
|
|
10251 | int |
|
|
10252 | main () |
|
|
10253 | { |
|
|
10254 | return f != $ac_func; |
|
|
10255 | ; |
|
|
10256 | return 0; |
|
|
10257 | } |
|
|
10258 | _ACEOF |
|
|
10259 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10261 | (eval $ac_link) 2>conftest.er1 |
|
|
10262 | ac_status=$? |
|
|
10263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10264 | rm -f conftest.er1 |
|
|
10265 | cat conftest.err >&5 |
|
|
10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10267 | (exit $ac_status); } && |
|
|
10268 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10270 | (eval $ac_try) 2>&5 |
|
|
10271 | ac_status=$? |
|
|
10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10273 | (exit $ac_status); }; } && |
|
|
10274 | { ac_try='test -s conftest$ac_exeext' |
|
|
10275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10276 | (eval $ac_try) 2>&5 |
|
|
10277 | ac_status=$? |
|
|
10278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10279 | (exit $ac_status); }; }; then |
|
|
10280 | eval "$as_ac_var=yes" |
|
|
10281 | else |
|
|
10282 | echo "$as_me: failed program was:" >&5 |
|
|
10283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10284 | |
|
|
10285 | eval "$as_ac_var=no" |
|
|
10286 | fi |
|
|
10287 | rm -f conftest.err conftest.$ac_objext \ |
|
|
10288 | conftest$ac_exeext conftest.$ac_ext |
|
|
10289 | fi |
|
|
10290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
10291 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
10292 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10293 | cat >>confdefs.h <<_ACEOF |
|
|
10294 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10295 | _ACEOF |
|
|
10296 | |
|
|
10297 | fi |
|
|
10298 | done |
|
|
10299 | |
|
|
10300 | |
|
|
10301 | |
|
|
10302 | |
|
|
10303 | |
|
|
10304 | for ac_header in \ |
|
|
10305 | utmp.h \ |
|
|
10306 | utmpx.h \ |
|
|
10307 | lastlog.h \ |
|
|
10308 | |
|
|
10309 | do |
|
|
10310 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10312 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10314 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10316 | fi |
|
|
10317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10319 | else |
|
|
10320 | # Is the header compilable? |
|
|
10321 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10322 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
10323 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10324 | /* confdefs.h. */ |
|
|
10325 | _ACEOF |
|
|
10326 | cat confdefs.h >>conftest.$ac_ext |
|
|
10327 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10328 | /* end confdefs.h. */ |
|
|
10329 | $ac_includes_default |
|
|
10330 | #include <$ac_header> |
|
|
10331 | _ACEOF |
|
|
10332 | rm -f conftest.$ac_objext |
|
|
10333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10334 | (eval $ac_compile) 2>conftest.er1 |
|
|
10335 | ac_status=$? |
|
|
10336 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10337 | rm -f conftest.er1 |
|
|
10338 | cat conftest.err >&5 |
|
|
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10340 | (exit $ac_status); } && |
|
|
10341 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10343 | (eval $ac_try) 2>&5 |
|
|
10344 | ac_status=$? |
|
|
10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10346 | (exit $ac_status); }; } && |
|
|
10347 | { ac_try='test -s conftest.$ac_objext' |
|
|
10348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10349 | (eval $ac_try) 2>&5 |
|
|
10350 | ac_status=$? |
|
|
10351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10352 | (exit $ac_status); }; }; then |
|
|
10353 | ac_header_compiler=yes |
|
|
10354 | else |
|
|
10355 | echo "$as_me: failed program was:" >&5 |
|
|
10356 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10357 | |
|
|
10358 | ac_header_compiler=no |
|
|
10359 | fi |
|
|
10360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10361 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10362 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10363 | |
|
|
10364 | # Is the header present? |
|
|
10365 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10366 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
10367 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10368 | /* confdefs.h. */ |
|
|
10369 | _ACEOF |
|
|
10370 | cat confdefs.h >>conftest.$ac_ext |
|
|
10371 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10372 | /* end confdefs.h. */ |
|
|
10373 | #include <$ac_header> |
|
|
10374 | _ACEOF |
|
|
10375 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10376 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10377 | ac_status=$? |
|
|
10378 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10379 | rm -f conftest.er1 |
|
|
10380 | cat conftest.err >&5 |
|
|
10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10382 | (exit $ac_status); } >/dev/null; then |
|
|
10383 | if test -s conftest.err; then |
|
|
10384 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10385 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10386 | else |
|
|
10387 | ac_cpp_err= |
|
|
10388 | fi |
|
|
10389 | else |
|
|
10390 | ac_cpp_err=yes |
|
|
10391 | fi |
|
|
10392 | if test -z "$ac_cpp_err"; then |
|
|
10393 | ac_header_preproc=yes |
|
|
10394 | else |
|
|
10395 | echo "$as_me: failed program was:" >&5 |
|
|
10396 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10397 | |
|
|
10398 | ac_header_preproc=no |
|
|
10399 | fi |
|
|
10400 | rm -f conftest.err conftest.$ac_ext |
|
|
10401 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10402 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10403 | |
|
|
10404 | # So? What about this header? |
|
|
10405 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10406 | yes:no: ) |
|
|
10407 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10408 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10409 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10410 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10411 | ac_header_preproc=yes |
|
|
10412 | ;; |
|
|
10413 | no:yes:* ) |
|
|
10414 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10415 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10416 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10417 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10418 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10419 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10420 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10421 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10422 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10423 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10424 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10425 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10426 | ( |
|
|
10427 | cat <<\_ASBOX |
|
|
10428 | ## ------------------------------------------ ## |
|
|
10429 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10430 | ## ------------------------------------------ ## |
|
|
10431 | _ASBOX |
|
|
10432 | ) | |
|
|
10433 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10434 | ;; |
|
|
10435 | esac |
|
|
10436 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10438 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10440 | else |
|
|
10441 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10442 | fi |
|
|
10443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10445 | |
|
|
10446 | fi |
|
|
10447 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10448 | cat >>confdefs.h <<_ACEOF |
|
|
10449 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10450 | _ACEOF |
|
|
10451 | |
|
|
10452 | fi |
|
|
10453 | |
|
|
10454 | done |
|
|
10455 | |
|
|
10456 | |
|
|
10457 | |
|
|
10458 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10459 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10460 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10461 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10463 | fi |
|
|
10464 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10465 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10466 | else |
|
|
10467 | # Is the header compilable? |
|
|
10468 | echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10469 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
|
|
10470 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10471 | /* confdefs.h. */ |
|
|
10472 | _ACEOF |
|
|
10473 | cat confdefs.h >>conftest.$ac_ext |
|
|
10474 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10475 | /* end confdefs.h. */ |
|
|
10476 | $ac_includes_default |
|
|
10477 | #include <utmp.h> |
|
|
10478 | _ACEOF |
|
|
10479 | rm -f conftest.$ac_objext |
|
|
10480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10481 | (eval $ac_compile) 2>conftest.er1 |
|
|
10482 | ac_status=$? |
|
|
10483 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10484 | rm -f conftest.er1 |
|
|
10485 | cat conftest.err >&5 |
|
|
10486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10487 | (exit $ac_status); } && |
|
|
10488 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10490 | (eval $ac_try) 2>&5 |
|
|
10491 | ac_status=$? |
|
|
10492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10493 | (exit $ac_status); }; } && |
|
|
10494 | { ac_try='test -s conftest.$ac_objext' |
|
|
10495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10496 | (eval $ac_try) 2>&5 |
|
|
10497 | ac_status=$? |
|
|
10498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10499 | (exit $ac_status); }; }; then |
|
|
10500 | ac_header_compiler=yes |
|
|
10501 | else |
|
|
10502 | echo "$as_me: failed program was:" >&5 |
|
|
10503 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10504 | |
|
|
10505 | ac_header_compiler=no |
|
|
10506 | fi |
|
|
10507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10508 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10509 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10510 | |
|
|
10511 | # Is the header present? |
|
|
10512 | echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
10513 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
|
|
10514 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10515 | /* confdefs.h. */ |
|
|
10516 | _ACEOF |
|
|
10517 | cat confdefs.h >>conftest.$ac_ext |
|
|
10518 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10519 | /* end confdefs.h. */ |
|
|
10520 | #include <utmp.h> |
|
|
10521 | _ACEOF |
|
|
10522 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10523 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10524 | ac_status=$? |
|
|
10525 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10526 | rm -f conftest.er1 |
|
|
10527 | cat conftest.err >&5 |
|
|
10528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10529 | (exit $ac_status); } >/dev/null; then |
|
|
10530 | if test -s conftest.err; then |
|
|
10531 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10532 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10533 | else |
|
|
10534 | ac_cpp_err= |
|
|
10535 | fi |
|
|
10536 | else |
|
|
10537 | ac_cpp_err=yes |
|
|
10538 | fi |
|
|
10539 | if test -z "$ac_cpp_err"; then |
|
|
10540 | ac_header_preproc=yes |
|
|
10541 | else |
|
|
10542 | echo "$as_me: failed program was:" >&5 |
|
|
10543 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10544 | |
|
|
10545 | ac_header_preproc=no |
|
|
10546 | fi |
|
|
10547 | rm -f conftest.err conftest.$ac_ext |
|
|
10548 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10549 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10550 | |
|
|
10551 | # So? What about this header? |
|
|
10552 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10553 | yes:no: ) |
|
|
10554 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10555 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10556 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
10557 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
10558 | ac_header_preproc=yes |
|
|
10559 | ;; |
|
|
10560 | no:yes:* ) |
|
|
10561 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
10562 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
10563 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
10564 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
10565 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
10566 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
10567 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10568 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10569 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
10570 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
10571 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
10572 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
10573 | ( |
|
|
10574 | cat <<\_ASBOX |
|
|
10575 | ## ------------------------------------------ ## |
|
|
10576 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10577 | ## ------------------------------------------ ## |
|
|
10578 | _ASBOX |
|
|
10579 | ) | |
|
|
10580 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10581 | ;; |
|
|
10582 | esac |
|
|
10583 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10584 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10585 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10587 | else |
|
|
10588 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
10589 | fi |
|
|
10590 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10591 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10592 | |
|
|
10593 | fi |
|
|
10594 | if test $ac_cv_header_utmp_h = yes; then |
|
|
10595 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
10596 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
|
|
10597 | if test "${rxvt_cv_struct_utmp+set}" = set; then |
|
|
10598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10599 | else |
|
|
10600 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10601 | /* confdefs.h. */ |
|
|
10602 | _ACEOF |
|
|
10603 | cat confdefs.h >>conftest.$ac_ext |
|
|
10604 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10605 | /* end confdefs.h. */ |
|
|
10606 | #include <sys/types.h> |
|
|
10607 | #include <utmp.h> |
|
|
10608 | int |
|
|
10609 | main () |
|
|
10610 | { |
|
|
10611 | struct utmp ut; |
|
|
10612 | ; |
|
|
10613 | return 0; |
|
|
10614 | } |
|
|
10615 | _ACEOF |
|
|
10616 | rm -f conftest.$ac_objext |
|
|
10617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10618 | (eval $ac_compile) 2>conftest.er1 |
|
|
10619 | ac_status=$? |
|
|
10620 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10621 | rm -f conftest.er1 |
|
|
10622 | cat conftest.err >&5 |
|
|
10623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10624 | (exit $ac_status); } && |
|
|
10625 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10627 | (eval $ac_try) 2>&5 |
|
|
10628 | ac_status=$? |
|
|
10629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10630 | (exit $ac_status); }; } && |
|
|
10631 | { ac_try='test -s conftest.$ac_objext' |
|
|
10632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10633 | (eval $ac_try) 2>&5 |
|
|
10634 | ac_status=$? |
|
|
10635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10636 | (exit $ac_status); }; }; then |
|
|
10637 | rxvt_cv_struct_utmp=yes |
|
|
10638 | else |
|
|
10639 | echo "$as_me: failed program was:" >&5 |
|
|
10640 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10641 | |
|
|
10642 | rxvt_cv_struct_utmp=no |
|
|
10643 | fi |
|
|
10644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10645 | fi |
|
|
10646 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 |
|
|
10647 | echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 |
|
|
10648 | if test x$rxvt_cv_struct_utmp = xyes; then |
|
|
10649 | |
|
|
10650 | cat >>confdefs.h <<\_ACEOF |
|
|
10651 | #define HAVE_STRUCT_UTMP 1 |
|
|
10652 | _ACEOF |
|
|
10653 | |
|
|
10654 | fi |
|
|
10655 | |
|
|
10656 | |
|
|
10657 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
10658 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
|
|
10659 | if test "${rxvt_cv_struct_utmp_host+set}" = set; then |
|
|
10660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10661 | else |
|
|
10662 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10663 | /* confdefs.h. */ |
|
|
10664 | _ACEOF |
|
|
10665 | cat confdefs.h >>conftest.$ac_ext |
|
|
10666 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10667 | /* end confdefs.h. */ |
|
|
10668 | #include <sys/types.h> |
|
|
10669 | #include <utmp.h> |
|
|
10670 | int |
|
|
10671 | main () |
|
|
10672 | { |
|
|
10673 | struct utmp ut; ut.ut_host; |
|
|
10674 | ; |
|
|
10675 | return 0; |
|
|
10676 | } |
|
|
10677 | _ACEOF |
|
|
10678 | rm -f conftest.$ac_objext |
|
|
10679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10680 | (eval $ac_compile) 2>conftest.er1 |
|
|
10681 | ac_status=$? |
|
|
10682 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10683 | rm -f conftest.er1 |
|
|
10684 | cat conftest.err >&5 |
|
|
10685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10686 | (exit $ac_status); } && |
|
|
10687 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10689 | (eval $ac_try) 2>&5 |
|
|
10690 | ac_status=$? |
|
|
10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10692 | (exit $ac_status); }; } && |
|
|
10693 | { ac_try='test -s conftest.$ac_objext' |
|
|
10694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10695 | (eval $ac_try) 2>&5 |
|
|
10696 | ac_status=$? |
|
|
10697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10698 | (exit $ac_status); }; }; then |
|
|
10699 | rxvt_cv_struct_utmp_host=yes |
|
|
10700 | else |
|
|
10701 | echo "$as_me: failed program was:" >&5 |
|
|
10702 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10703 | |
|
|
10704 | rxvt_cv_struct_utmp_host=no |
|
|
10705 | fi |
|
|
10706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10707 | fi |
|
|
10708 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 |
|
|
10709 | echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 |
|
|
10710 | if test x$rxvt_cv_struct_utmp_host = xyes; then |
|
|
10711 | |
|
|
10712 | cat >>confdefs.h <<\_ACEOF |
|
|
10713 | #define HAVE_UTMP_HOST 1 |
|
|
10714 | _ACEOF |
|
|
10715 | |
|
|
10716 | fi |
|
|
10717 | |
|
|
10718 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
10719 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
|
|
10720 | if test "${rxvt_cv_struct_utmp_pid+set}" = set; then |
|
|
10721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10722 | else |
|
|
10723 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10724 | /* confdefs.h. */ |
|
|
10725 | _ACEOF |
|
|
10726 | cat confdefs.h >>conftest.$ac_ext |
|
|
10727 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10728 | /* end confdefs.h. */ |
|
|
10729 | #include <sys/types.h> |
|
|
10730 | #include <utmp.h> |
|
|
10731 | int |
|
|
10732 | main () |
|
|
10733 | { |
|
|
10734 | struct utmp ut; ut.ut_pid; |
|
|
10735 | ; |
|
|
10736 | return 0; |
|
|
10737 | } |
|
|
10738 | _ACEOF |
|
|
10739 | rm -f conftest.$ac_objext |
|
|
10740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10741 | (eval $ac_compile) 2>conftest.er1 |
|
|
10742 | ac_status=$? |
|
|
10743 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10744 | rm -f conftest.er1 |
|
|
10745 | cat conftest.err >&5 |
|
|
10746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10747 | (exit $ac_status); } && |
|
|
10748 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10750 | (eval $ac_try) 2>&5 |
|
|
10751 | ac_status=$? |
|
|
10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10753 | (exit $ac_status); }; } && |
|
|
10754 | { ac_try='test -s conftest.$ac_objext' |
|
|
10755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10756 | (eval $ac_try) 2>&5 |
|
|
10757 | ac_status=$? |
|
|
10758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10759 | (exit $ac_status); }; }; then |
|
|
10760 | rxvt_cv_struct_utmp_pid=yes |
|
|
10761 | else |
|
|
10762 | echo "$as_me: failed program was:" >&5 |
|
|
10763 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10764 | |
|
|
10765 | rxvt_cv_struct_utmp_pid=no |
|
|
10766 | fi |
|
|
10767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10768 | fi |
|
|
10769 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 |
|
|
10770 | echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 |
|
|
10771 | if test x$rxvt_cv_struct_utmp_pid = xyes; then |
|
|
10772 | |
|
|
10773 | cat >>confdefs.h <<\_ACEOF |
|
|
10774 | #define HAVE_UTMP_PID 1 |
|
|
10775 | _ACEOF |
|
|
10776 | |
|
|
10777 | fi |
|
|
10778 | |
|
|
10779 | fi |
|
|
10780 | |
|
|
10781 | |
|
|
10782 | |
|
|
10783 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10784 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10785 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10786 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10788 | fi |
|
|
10789 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10790 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10791 | else |
|
|
10792 | # Is the header compilable? |
|
|
10793 | echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
10794 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
|
|
10795 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10796 | /* confdefs.h. */ |
|
|
10797 | _ACEOF |
|
|
10798 | cat confdefs.h >>conftest.$ac_ext |
|
|
10799 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10800 | /* end confdefs.h. */ |
|
|
10801 | $ac_includes_default |
|
|
10802 | #include <utmpx.h> |
|
|
10803 | _ACEOF |
|
|
10804 | rm -f conftest.$ac_objext |
|
|
10805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10806 | (eval $ac_compile) 2>conftest.er1 |
|
|
10807 | ac_status=$? |
|
|
10808 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10809 | rm -f conftest.er1 |
|
|
10810 | cat conftest.err >&5 |
|
|
10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10812 | (exit $ac_status); } && |
|
|
10813 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10815 | (eval $ac_try) 2>&5 |
|
|
10816 | ac_status=$? |
|
|
10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10818 | (exit $ac_status); }; } && |
|
|
10819 | { ac_try='test -s conftest.$ac_objext' |
|
|
10820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10821 | (eval $ac_try) 2>&5 |
|
|
10822 | ac_status=$? |
|
|
10823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10824 | (exit $ac_status); }; }; then |
|
|
10825 | ac_header_compiler=yes |
|
|
10826 | else |
|
|
10827 | echo "$as_me: failed program was:" >&5 |
|
|
10828 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10829 | |
|
|
10830 | ac_header_compiler=no |
|
|
10831 | fi |
|
|
10832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10833 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10834 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10835 | |
|
|
10836 | # Is the header present? |
|
|
10837 | echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
10838 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
|
|
10839 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10840 | /* confdefs.h. */ |
|
|
10841 | _ACEOF |
|
|
10842 | cat confdefs.h >>conftest.$ac_ext |
|
|
10843 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10844 | /* end confdefs.h. */ |
|
|
10845 | #include <utmpx.h> |
|
|
10846 | _ACEOF |
|
|
10847 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10848 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10849 | ac_status=$? |
|
|
10850 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10851 | rm -f conftest.er1 |
|
|
10852 | cat conftest.err >&5 |
|
|
10853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10854 | (exit $ac_status); } >/dev/null; then |
|
|
10855 | if test -s conftest.err; then |
|
|
10856 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10857 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10858 | else |
|
|
10859 | ac_cpp_err= |
|
|
10860 | fi |
|
|
10861 | else |
|
|
10862 | ac_cpp_err=yes |
|
|
10863 | fi |
|
|
10864 | if test -z "$ac_cpp_err"; then |
|
|
10865 | ac_header_preproc=yes |
|
|
10866 | else |
|
|
10867 | echo "$as_me: failed program was:" >&5 |
|
|
10868 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10869 | |
|
|
10870 | ac_header_preproc=no |
|
|
10871 | fi |
|
|
10872 | rm -f conftest.err conftest.$ac_ext |
|
|
10873 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10874 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10875 | |
|
|
10876 | # So? What about this header? |
|
|
10877 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10878 | yes:no: ) |
|
|
10879 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10880 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10881 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
10882 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
10883 | ac_header_preproc=yes |
|
|
10884 | ;; |
|
|
10885 | no:yes:* ) |
|
|
10886 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
10887 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
10888 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
10889 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
10890 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
10891 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
10892 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10893 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10894 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
10895 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
10896 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
10897 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
10898 | ( |
|
|
10899 | cat <<\_ASBOX |
|
|
10900 | ## ------------------------------------------ ## |
|
|
10901 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10902 | ## ------------------------------------------ ## |
|
|
10903 | _ASBOX |
|
|
10904 | ) | |
|
|
10905 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10906 | ;; |
|
|
10907 | esac |
|
|
10908 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10909 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10910 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10912 | else |
|
|
10913 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
10914 | fi |
|
|
10915 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10916 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10917 | |
|
|
10918 | fi |
|
|
10919 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
10920 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
10921 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
|
|
10922 | if test "${rxvt_cv_struct_utmpx+set}" = set; then |
|
|
10923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10924 | else |
|
|
10925 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10926 | /* confdefs.h. */ |
|
|
10927 | _ACEOF |
|
|
10928 | cat confdefs.h >>conftest.$ac_ext |
|
|
10929 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10930 | /* end confdefs.h. */ |
|
|
10931 | #include <sys/types.h> |
|
|
10932 | #include <utmpx.h> |
|
|
10933 | int |
|
|
10934 | main () |
|
|
10935 | { |
|
|
10936 | struct utmpx ut; |
|
|
10937 | ; |
|
|
10938 | return 0; |
|
|
10939 | } |
|
|
10940 | _ACEOF |
|
|
10941 | rm -f conftest.$ac_objext |
|
|
10942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10943 | (eval $ac_compile) 2>conftest.er1 |
|
|
10944 | ac_status=$? |
|
|
10945 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10946 | rm -f conftest.er1 |
|
|
10947 | cat conftest.err >&5 |
|
|
10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10949 | (exit $ac_status); } && |
|
|
10950 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10952 | (eval $ac_try) 2>&5 |
|
|
10953 | ac_status=$? |
|
|
10954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10955 | (exit $ac_status); }; } && |
|
|
10956 | { ac_try='test -s conftest.$ac_objext' |
|
|
10957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10958 | (eval $ac_try) 2>&5 |
|
|
10959 | ac_status=$? |
|
|
10960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10961 | (exit $ac_status); }; }; then |
|
|
10962 | rxvt_cv_struct_utmpx=yes |
|
|
10963 | else |
|
|
10964 | echo "$as_me: failed program was:" >&5 |
|
|
10965 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10966 | |
|
|
10967 | rxvt_cv_struct_utmpx=no |
|
|
10968 | fi |
|
|
10969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10970 | fi |
|
|
10971 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 |
|
|
10972 | echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 |
|
|
10973 | if test x$rxvt_cv_struct_utmpx = xyes; then |
|
|
10974 | |
|
|
10975 | cat >>confdefs.h <<\_ACEOF |
|
|
10976 | #define HAVE_STRUCT_UTMPX 1 |
|
|
10977 | _ACEOF |
|
|
10978 | |
|
|
10979 | fi |
|
|
10980 | |
|
|
10981 | |
|
|
10982 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
10983 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
|
|
10984 | if test "${rxvt_cv_struct_utmpx_host+set}" = set; then |
|
|
10985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10986 | else |
|
|
10987 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10988 | /* confdefs.h. */ |
|
|
10989 | _ACEOF |
|
|
10990 | cat confdefs.h >>conftest.$ac_ext |
|
|
10991 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10992 | /* end confdefs.h. */ |
|
|
10993 | #include <sys/types.h> |
|
|
10994 | #include <utmpx.h> |
|
|
10995 | int |
|
|
10996 | main () |
|
|
10997 | { |
|
|
10998 | struct utmpx utx; utx.ut_host; |
|
|
10999 | ; |
|
|
11000 | return 0; |
|
|
11001 | } |
|
|
11002 | _ACEOF |
|
|
11003 | rm -f conftest.$ac_objext |
|
|
11004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11005 | (eval $ac_compile) 2>conftest.er1 |
|
|
11006 | ac_status=$? |
|
|
11007 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11008 | rm -f conftest.er1 |
|
|
11009 | cat conftest.err >&5 |
|
|
11010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11011 | (exit $ac_status); } && |
|
|
11012 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11014 | (eval $ac_try) 2>&5 |
|
|
11015 | ac_status=$? |
|
|
11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11017 | (exit $ac_status); }; } && |
|
|
11018 | { ac_try='test -s conftest.$ac_objext' |
|
|
11019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11020 | (eval $ac_try) 2>&5 |
|
|
11021 | ac_status=$? |
|
|
11022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11023 | (exit $ac_status); }; }; then |
|
|
11024 | rxvt_cv_struct_utmpx_host=yes |
|
|
11025 | else |
|
|
11026 | echo "$as_me: failed program was:" >&5 |
|
|
11027 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11028 | |
|
|
11029 | rxvt_cv_struct_utmpx_host=no |
|
|
11030 | fi |
|
|
11031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11032 | fi |
|
|
11033 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 |
|
|
11034 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 |
|
|
11035 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
|
|
11036 | |
|
|
11037 | cat >>confdefs.h <<\_ACEOF |
|
|
11038 | #define HAVE_UTMPX_HOST 1 |
|
|
11039 | _ACEOF |
|
|
11040 | |
|
|
11041 | fi |
|
|
11042 | |
|
|
11043 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
11044 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
11045 | if test "${rxvt_cv_struct_utmpx_session+set}" = set; then |
|
|
11046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11047 | else |
|
|
11048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11049 | /* confdefs.h. */ |
|
|
11050 | _ACEOF |
|
|
11051 | cat confdefs.h >>conftest.$ac_ext |
|
|
11052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11053 | /* end confdefs.h. */ |
|
|
11054 | #include <sys/types.h> |
|
|
11055 | #include <utmpx.h> |
|
|
11056 | int |
|
|
11057 | main () |
|
|
11058 | { |
|
|
11059 | struct utmpx utx; utx.ut_session; |
|
|
11060 | ; |
|
|
11061 | return 0; |
|
|
11062 | } |
|
|
11063 | _ACEOF |
|
|
11064 | rm -f conftest.$ac_objext |
|
|
11065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11066 | (eval $ac_compile) 2>conftest.er1 |
|
|
11067 | ac_status=$? |
|
|
11068 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11069 | rm -f conftest.er1 |
|
|
11070 | cat conftest.err >&5 |
|
|
11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11072 | (exit $ac_status); } && |
|
|
11073 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11075 | (eval $ac_try) 2>&5 |
|
|
11076 | ac_status=$? |
|
|
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11078 | (exit $ac_status); }; } && |
|
|
11079 | { ac_try='test -s conftest.$ac_objext' |
|
|
11080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11081 | (eval $ac_try) 2>&5 |
|
|
11082 | ac_status=$? |
|
|
11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11084 | (exit $ac_status); }; }; then |
|
|
11085 | rxvt_cv_struct_utmpx_session=yes |
|
|
11086 | else |
|
|
11087 | echo "$as_me: failed program was:" >&5 |
|
|
11088 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11089 | |
|
|
11090 | rxvt_cv_struct_utmpx_session=no |
|
|
11091 | fi |
|
|
11092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11093 | fi |
|
|
11094 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 |
|
|
11095 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 |
|
|
11096 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
11097 | |
|
|
11098 | cat >>confdefs.h <<\_ACEOF |
|
|
11099 | #define HAVE_UTMPX_SESSION 1 |
|
|
11100 | _ACEOF |
|
|
11101 | |
|
|
11102 | fi |
|
|
11103 | |
|
|
11104 | fi |
|
|
11105 | |
|
|
11106 | |
|
|
11107 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
11108 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
|
|
11109 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
|
|
11110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11111 | else |
|
|
11112 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11113 | /* confdefs.h. */ |
|
|
11114 | _ACEOF |
|
|
11115 | cat confdefs.h >>conftest.$ac_ext |
|
|
11116 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11117 | /* end confdefs.h. */ |
|
|
11118 | #include <sys/types.h> |
|
|
11119 | #include <utmp.h> |
|
|
11120 | #ifdef HAVE_LASTLOG_H |
|
|
11121 | #include <lastlog.h> |
|
|
11122 | #endif |
|
|
11123 | |
|
|
11124 | int |
|
|
11125 | main () |
|
|
11126 | { |
|
|
11127 | struct lastlog ll; |
|
|
11128 | ; |
|
|
11129 | return 0; |
|
|
11130 | } |
|
|
11131 | _ACEOF |
|
|
11132 | rm -f conftest.$ac_objext |
|
|
11133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11134 | (eval $ac_compile) 2>conftest.er1 |
|
|
11135 | ac_status=$? |
|
|
11136 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11137 | rm -f conftest.er1 |
|
|
11138 | cat conftest.err >&5 |
|
|
11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11140 | (exit $ac_status); } && |
|
|
11141 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11143 | (eval $ac_try) 2>&5 |
|
|
11144 | ac_status=$? |
|
|
11145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11146 | (exit $ac_status); }; } && |
|
|
11147 | { ac_try='test -s conftest.$ac_objext' |
|
|
11148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11149 | (eval $ac_try) 2>&5 |
|
|
11150 | ac_status=$? |
|
|
11151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11152 | (exit $ac_status); }; }; then |
|
|
11153 | rxvt_cv_struct_lastlog=yes |
|
|
11154 | else |
|
|
11155 | echo "$as_me: failed program was:" >&5 |
|
|
11156 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11157 | |
|
|
11158 | rxvt_cv_struct_lastlog=no |
|
|
11159 | fi |
|
|
11160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11161 | fi |
|
|
11162 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 |
|
|
11163 | echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 |
|
|
11164 | if test x$rxvt_cv_struct_lastlog = xyes; then |
|
|
11165 | |
|
|
11166 | cat >>confdefs.h <<\_ACEOF |
|
|
11167 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
11168 | _ACEOF |
|
|
11169 | |
|
|
11170 | fi |
|
|
11171 | |
|
|
11172 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
11173 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
|
|
11174 | if test "${rxvt_cv_struct_lastlogx+set}" = set; then |
|
|
11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11176 | else |
|
|
11177 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11178 | /* confdefs.h. */ |
|
|
11179 | _ACEOF |
|
|
11180 | cat confdefs.h >>conftest.$ac_ext |
|
|
11181 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11182 | /* end confdefs.h. */ |
|
|
11183 | #include <sys/types.h> |
|
|
11184 | #include <utmpx.h> |
|
|
11185 | #ifdef HAVE_LASTLOG_H |
|
|
11186 | #include <lastlog.h> |
|
|
11187 | #endif |
|
|
11188 | |
|
|
11189 | int |
|
|
11190 | main () |
|
|
11191 | { |
|
|
11192 | struct lastlogx ll; |
|
|
11193 | ; |
|
|
11194 | return 0; |
|
|
11195 | } |
|
|
11196 | _ACEOF |
|
|
11197 | rm -f conftest.$ac_objext |
|
|
11198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11199 | (eval $ac_compile) 2>conftest.er1 |
|
|
11200 | ac_status=$? |
|
|
11201 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11202 | rm -f conftest.er1 |
|
|
11203 | cat conftest.err >&5 |
|
|
11204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11205 | (exit $ac_status); } && |
|
|
11206 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11208 | (eval $ac_try) 2>&5 |
|
|
11209 | ac_status=$? |
|
|
11210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11211 | (exit $ac_status); }; } && |
|
|
11212 | { ac_try='test -s conftest.$ac_objext' |
|
|
11213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11214 | (eval $ac_try) 2>&5 |
|
|
11215 | ac_status=$? |
|
|
11216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11217 | (exit $ac_status); }; }; then |
|
|
11218 | rxvt_cv_struct_lastlogx=yes |
|
|
11219 | else |
|
|
11220 | echo "$as_me: failed program was:" >&5 |
|
|
11221 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11222 | |
|
|
11223 | rxvt_cv_struct_lastlogx=no |
|
|
11224 | fi |
|
|
11225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11226 | fi |
|
|
11227 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 |
|
|
11228 | echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 |
|
|
11229 | if test x$rxvt_cv_struct_lastlogx = xyes; then |
|
|
11230 | |
|
|
11231 | cat >>confdefs.h <<\_ACEOF |
|
|
11232 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
11233 | _ACEOF |
|
|
11234 | |
|
|
11235 | fi |
|
|
11236 | |
|
|
11237 | |
|
|
11238 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
11239 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
|
|
11240 | if test "${rxvt_cv_path_utmp+set}" = set; then |
|
|
11241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11242 | else |
|
|
11243 | if test "$cross_compiling" = yes; then |
|
|
11244 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 |
|
|
11245 | echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} |
|
|
11246 | else |
|
|
11247 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11248 | /* confdefs.h. */ |
|
|
11249 | _ACEOF |
|
|
11250 | cat confdefs.h >>conftest.$ac_ext |
|
|
11251 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11252 | /* end confdefs.h. */ |
|
|
11253 | #include <stdio.h> |
|
|
11254 | #include <sys/types.h> |
|
|
11255 | #include <utmp.h> |
|
|
11256 | #include <errno.h> |
|
|
11257 | main() |
|
|
11258 | { |
|
|
11259 | char **u, *utmplist[] = { |
|
|
11260 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
11261 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11262 | if (!f) exit(1); |
|
|
11263 | #ifdef UTMP_FILE |
|
|
11264 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
11265 | exit(0); |
|
|
11266 | #endif |
|
|
11267 | #ifdef _PATH_UTMP |
|
|
11268 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
11269 | exit(0); |
|
|
11270 | #endif |
|
|
11271 | for (u = utmplist; *u; u++) { |
|
|
11272 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11273 | fprintf(f, "%s\n", *u); |
|
|
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 | rxvt_cv_path_utmp=`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 | rxvt_cv_path_utmp= |
|
|
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: $rxvt_cv_path_utmp" >&5 |
|
|
11304 | echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 |
|
|
11305 | if test x$rxvt_cv_path_utmp != x; then |
|
|
11306 | |
|
|
11307 | cat >>confdefs.h <<_ACEOF |
|
|
11308 | #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" |
|
|
11309 | _ACEOF |
|
|
11310 | |
|
|
11311 | fi |
|
|
11312 | |
|
|
11313 | |
|
|
11314 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
11315 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
|
|
11316 | if test "${rxvt_cv_path_utmpx+set}" = set; then |
|
|
11317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11318 | else |
|
|
11319 | if test "$cross_compiling" = yes; then |
|
|
11320 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 |
|
|
11321 | echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} |
|
|
11322 | else |
|
|
11323 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11324 | /* confdefs.h. */ |
|
|
11325 | _ACEOF |
|
|
11326 | cat confdefs.h >>conftest.$ac_ext |
|
|
11327 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11328 | /* end confdefs.h. */ |
|
|
11329 | #include <stdio.h> |
|
|
11330 | #include <sys/types.h> |
|
|
11331 | #include <utmpx.h> |
|
|
11332 | #include <errno.h> |
|
|
11333 | #include <sys/stat.h> |
|
|
11334 | #ifdef HAVE_STRING_H |
|
|
11335 | #include <string.h> |
|
|
11336 | #endif |
|
|
11337 | main() |
|
|
11338 | { |
|
|
11339 | char **u, *p, *utmplist[] = { |
|
|
11340 | #ifdef UTMPX_FILE |
|
|
11341 | UTMPX_FILE, |
|
|
11342 | #endif |
|
|
11343 | #ifdef _PATH_UTMPX |
|
|
11344 | _PATH_UTMPX, |
|
|
11345 | #endif |
|
|
11346 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
11347 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11348 | struct stat statu, statux; |
|
|
11349 | if (!f) exit(1); |
|
|
11350 | for (u = utmplist; *u; u++) { |
|
|
11351 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11352 | if (stat(*u, &statux) < 0) |
|
|
11353 | continue; |
|
|
11354 | p = strdup(*u); |
|
|
11355 | p[strlen(p) - 1] = '\0'; |
|
|
11356 | if (stat(p, &statu) >= 0 |
|
|
11357 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
11358 | continue; |
|
|
11359 | fprintf(f, "%s\n", *u); |
|
|
11360 | exit(0); |
|
|
11361 | } |
|
|
11362 | } |
|
|
11363 | exit(0); |
|
|
11364 | } |
|
|
11365 | _ACEOF |
|
|
11366 | rm -f conftest$ac_exeext |
|
|
11367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11368 | (eval $ac_link) 2>&5 |
|
|
11369 | ac_status=$? |
|
|
11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11373 | (eval $ac_try) 2>&5 |
|
|
11374 | ac_status=$? |
|
|
11375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11376 | (exit $ac_status); }; }; then |
|
|
11377 | rxvt_cv_path_utmpx=`cat conftestval` |
|
|
11378 | else |
|
|
11379 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11380 | echo "$as_me: failed program was:" >&5 |
|
|
11381 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11382 | |
|
|
11383 | ( exit $ac_status ) |
|
|
11384 | rxvt_cv_path_utmpx= |
|
|
11385 | fi |
|
|
11386 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11387 | fi |
|
|
11388 | fi |
|
|
11389 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 |
|
|
11390 | echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 |
|
|
11391 | if test x$rxvt_cv_path_utmpx != x; then |
|
|
11392 | |
|
|
11393 | cat >>confdefs.h <<_ACEOF |
|
|
11394 | #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" |
|
|
11395 | _ACEOF |
|
|
11396 | |
|
|
11397 | fi |
|
|
11398 | |
|
|
11399 | |
|
|
11400 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
11401 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
|
|
11402 | if test "${rxvt_cv_path_wtmp+set}" = set; then |
|
|
11403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11404 | else |
|
|
11405 | if test "$cross_compiling" = yes; then |
|
|
11406 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 |
|
|
11407 | echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} |
|
|
11408 | else |
|
|
11409 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11410 | /* confdefs.h. */ |
|
|
11411 | _ACEOF |
|
|
11412 | cat confdefs.h >>conftest.$ac_ext |
|
|
11413 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11414 | /* end confdefs.h. */ |
|
|
11415 | #include <stdio.h> |
|
|
11416 | #include <sys/types.h> |
|
|
11417 | #ifdef HAVE_UTMP_H |
|
|
11418 | #include <utmp.h> |
|
|
11419 | #endif |
|
|
11420 | #include <errno.h> |
|
|
11421 | main() |
|
|
11422 | { |
|
|
11423 | char **w, *wtmplist[] = { |
|
|
11424 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
11425 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11426 | if (!f) exit(1); |
|
|
11427 | #ifdef WTMP_FILE |
|
|
11428 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
11429 | exit(0); |
|
|
11430 | #endif |
|
|
11431 | #ifdef _PATH_WTMP |
|
|
11432 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
11433 | exit(0); |
|
|
11434 | #endif |
|
|
11435 | for (w = wtmplist; *w; w++) { |
|
|
11436 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11437 | fprintf(f, "%s\n", *w); |
|
|
11438 | exit(0); |
|
|
11439 | } |
|
|
11440 | } |
|
|
11441 | exit(0); |
|
|
11442 | } |
|
|
11443 | _ACEOF |
|
|
11444 | rm -f conftest$ac_exeext |
|
|
11445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11446 | (eval $ac_link) 2>&5 |
|
|
11447 | ac_status=$? |
|
|
11448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11449 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11451 | (eval $ac_try) 2>&5 |
|
|
11452 | ac_status=$? |
|
|
11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11454 | (exit $ac_status); }; }; then |
|
|
11455 | rxvt_cv_path_wtmp=`cat conftestval` |
|
|
11456 | else |
|
|
11457 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11458 | echo "$as_me: failed program was:" >&5 |
|
|
11459 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11460 | |
|
|
11461 | ( exit $ac_status ) |
|
|
11462 | rxvt_cv_path_wtmp= |
|
|
11463 | fi |
|
|
11464 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11465 | fi |
|
|
11466 | fi |
|
|
11467 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 |
|
|
11468 | echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 |
|
|
11469 | if test x$rxvt_cv_path_wtmp != x; then |
|
|
11470 | |
|
|
11471 | cat >>confdefs.h <<_ACEOF |
|
|
11472 | #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" |
|
|
11473 | _ACEOF |
|
|
11474 | |
|
|
11475 | fi |
|
|
11476 | |
|
|
11477 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
11478 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
|
|
11479 | if test "${rxvt_cv_path_wtmpx+set}" = set; then |
|
|
11480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11481 | else |
|
|
11482 | if test "$cross_compiling" = yes; then |
|
|
11483 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 |
|
|
11484 | echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} |
|
|
11485 | else |
|
|
11486 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11487 | /* confdefs.h. */ |
|
|
11488 | _ACEOF |
|
|
11489 | cat confdefs.h >>conftest.$ac_ext |
|
|
11490 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11491 | /* end confdefs.h. */ |
|
|
11492 | #include <stdio.h> |
|
|
11493 | #ifdef HAVE_UTMPX_H |
|
|
11494 | #include <utmpx.h> |
|
|
11495 | #endif |
|
|
11496 | #include <errno.h> |
|
|
11497 | main() |
|
|
11498 | { |
|
|
11499 | char **w, *wtmplist[] = { |
|
|
11500 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
11501 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11502 | if (!f) exit(1); |
|
|
11503 | #ifdef WTMPX_FILE |
|
|
11504 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
11505 | exit(0); |
|
|
11506 | #endif |
|
|
11507 | #ifdef _PATH_WTMPX |
|
|
11508 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
11509 | exit(0); |
|
|
11510 | #endif |
|
|
11511 | for (w = wtmplist; *w; w++) { |
|
|
11512 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11513 | fprintf(f, "%s\n", *w); |
|
|
11514 | exit(0); |
|
|
11515 | } |
|
|
11516 | } |
|
|
11517 | exit(0); |
|
|
11518 | } |
|
|
11519 | _ACEOF |
|
|
11520 | rm -f conftest$ac_exeext |
|
|
11521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11522 | (eval $ac_link) 2>&5 |
|
|
11523 | ac_status=$? |
|
|
11524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11525 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11527 | (eval $ac_try) 2>&5 |
|
|
11528 | ac_status=$? |
|
|
11529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11530 | (exit $ac_status); }; }; then |
|
|
11531 | rxvt_cv_path_wtmpx=`cat conftestval` |
|
|
11532 | else |
|
|
11533 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11534 | echo "$as_me: failed program was:" >&5 |
|
|
11535 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11536 | |
|
|
11537 | ( exit $ac_status ) |
|
|
11538 | rxvt_cv_path_wtmpx= |
|
|
11539 | fi |
|
|
11540 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11541 | fi |
|
|
11542 | fi |
|
|
11543 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 |
|
|
11544 | echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 |
|
|
11545 | if test x$rxvt_cv_path_wtmpx != x; then |
|
|
11546 | |
|
|
11547 | cat >>confdefs.h <<_ACEOF |
|
|
11548 | #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" |
|
|
11549 | _ACEOF |
|
|
11550 | |
|
|
11551 | fi |
|
|
11552 | |
|
|
11553 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
11554 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
|
|
11555 | if test "${rxvt_cv_path_lastlog+set}" = set; then |
|
|
11556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11557 | else |
|
|
11558 | if test "$cross_compiling" = yes; then |
|
|
11559 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 |
|
|
11560 | echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
11561 | else |
|
|
11562 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11563 | /* confdefs.h. */ |
|
|
11564 | _ACEOF |
|
|
11565 | cat confdefs.h >>conftest.$ac_ext |
|
|
11566 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11567 | /* end confdefs.h. */ |
|
|
11568 | #include <stdio.h> |
|
|
11569 | #include <sys/types.h> |
|
|
11570 | #ifdef HAVE_UTMPX_H |
|
|
11571 | #include <utmpx.h> |
|
|
11572 | #elif defined(HAVE_UTMP_H) |
|
|
11573 | #include <utmp.h> |
|
|
11574 | #endif |
|
|
11575 | #ifdef HAVE_LASTLOG_H |
|
|
11576 | #include <lastlog.h> |
|
|
11577 | #endif |
|
|
11578 | #include <errno.h> |
|
|
11579 | main() |
|
|
11580 | { |
|
|
11581 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
11582 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11583 | if (!f) exit(1); |
|
|
11584 | #ifdef LASTLOG_FILE |
|
|
11585 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
11586 | exit(0); |
|
|
11587 | #endif |
|
|
11588 | #ifdef _PATH_LASTLOG |
|
|
11589 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
11590 | exit(0); |
|
|
11591 | #endif |
|
|
11592 | for (w = lastloglist; *w; w++) { |
|
|
11593 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11594 | fprintf(f, "%s\n", *w); |
|
|
11595 | exit(0); |
|
|
11596 | } |
|
|
11597 | } |
|
|
11598 | exit(0); |
|
|
11599 | } |
|
|
11600 | _ACEOF |
|
|
11601 | rm -f conftest$ac_exeext |
|
|
11602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11603 | (eval $ac_link) 2>&5 |
|
|
11604 | ac_status=$? |
|
|
11605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11606 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11608 | (eval $ac_try) 2>&5 |
|
|
11609 | ac_status=$? |
|
|
11610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11611 | (exit $ac_status); }; }; then |
|
|
11612 | rxvt_cv_path_lastlog=`cat conftestval` |
|
|
11613 | else |
|
|
11614 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11615 | echo "$as_me: failed program was:" >&5 |
|
|
11616 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11617 | |
|
|
11618 | ( exit $ac_status ) |
|
|
11619 | rxvt_cv_path_lastlog= |
|
|
11620 | fi |
|
|
11621 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11622 | fi |
|
|
11623 | fi |
|
|
11624 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 |
|
|
11625 | echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 |
|
|
11626 | if test x$rxvt_cv_path_lastlog != x; then |
|
|
11627 | |
|
|
11628 | cat >>confdefs.h <<_ACEOF |
|
|
11629 | #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" |
|
|
11630 | _ACEOF |
|
|
11631 | |
|
|
11632 | if test -d "$rxvt_cv_path_lastlog"; then |
|
|
11633 | |
|
|
11634 | cat >>confdefs.h <<\_ACEOF |
|
|
11635 | #define LASTLOG_IS_DIR 1 |
|
|
11636 | _ACEOF |
|
|
11637 | |
|
|
11638 | fi |
|
|
11639 | fi |
|
|
11640 | |
|
|
11641 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
11642 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
|
|
11643 | if test "${rxvt_cv_path_lastlogx+set}" = set; then |
|
|
11644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11645 | else |
|
|
11646 | if test "$cross_compiling" = yes; then |
|
|
11647 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
11648 | echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
11649 | else |
|
|
11650 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11651 | /* confdefs.h. */ |
|
|
11652 | _ACEOF |
|
|
11653 | cat confdefs.h >>conftest.$ac_ext |
|
|
11654 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11655 | /* end confdefs.h. */ |
|
|
11656 | #include <stdio.h> |
|
|
11657 | #ifdef HAVE_UTMPX_H |
|
|
11658 | #include <utmpx.h> |
|
|
11659 | #endif |
|
|
11660 | #include <errno.h> |
|
|
11661 | main() |
|
|
11662 | { |
|
|
11663 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
11664 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11665 | if (!f) exit(1); |
|
|
11666 | #ifdef LASTLOGX_FILE |
|
|
11667 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
11668 | exit(0); |
|
|
11669 | #endif |
|
|
11670 | #ifdef _PATH_LASTLOGX |
|
|
11671 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
11672 | exit(0); |
|
|
11673 | #endif |
|
|
11674 | for (w = wtmplist; *w; w++) { |
|
|
11675 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11676 | fprintf(f, "%s\n", *w); |
|
|
11677 | exit(0); |
|
|
11678 | } |
|
|
11679 | } |
|
|
11680 | exit(0); |
|
|
11681 | } |
|
|
11682 | _ACEOF |
|
|
11683 | rm -f conftest$ac_exeext |
|
|
11684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11685 | (eval $ac_link) 2>&5 |
|
|
11686 | ac_status=$? |
|
|
11687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11688 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11690 | (eval $ac_try) 2>&5 |
|
|
11691 | ac_status=$? |
|
|
11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11693 | (exit $ac_status); }; }; then |
|
|
11694 | rxvt_cv_path_lastlogx=`cat conftestval` |
|
|
11695 | else |
|
|
11696 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11697 | echo "$as_me: failed program was:" >&5 |
|
|
11698 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11699 | |
|
|
11700 | ( exit $ac_status ) |
|
|
11701 | rxvt_cv_path_lastlogx= |
|
|
11702 | fi |
|
|
11703 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11704 | fi |
|
|
11705 | fi |
|
|
11706 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 |
|
|
11707 | echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 |
|
|
11708 | if test x$rxvt_cv_path_lastlogx != x; then |
|
|
11709 | |
|
|
11710 | cat >>confdefs.h <<_ACEOF |
|
|
11711 | #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" |
|
|
11712 | _ACEOF |
|
|
11713 | |
|
|
11714 | fi |
|
|
11715 | |
|
|
11716 | |
10187 | |
11717 | |
10188 | |
11718 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
10189 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11719 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
10190 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11720 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
10191 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
… | |
… | |
11987 | #define HAVE_NL_LANGINFO 1 |
10458 | #define HAVE_NL_LANGINFO 1 |
11988 | _ACEOF |
10459 | _ACEOF |
11989 | |
10460 | |
11990 | fi |
10461 | fi |
11991 | |
10462 | |
11992 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
10463 | SCM_RIGHTS_CHECK |
11993 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11994 | if test "${rxvt_can_pass_fds+set}" = set; then |
|
|
11995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11996 | else |
|
|
11997 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11998 | /* confdefs.h. */ |
|
|
11999 | _ACEOF |
|
|
12000 | cat confdefs.h >>conftest.$ac_ext |
|
|
12001 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12002 | /* end confdefs.h. */ |
|
|
12003 | |
|
|
12004 | #include <sys/types.h> |
|
|
12005 | #include <sys/socket.h> |
|
|
12006 | |
|
|
12007 | int |
|
|
12008 | main () |
|
|
12009 | { |
|
|
12010 | |
|
|
12011 | { |
|
|
12012 | msghdr msg; |
|
|
12013 | iovec iov; |
|
|
12014 | char buf [100]; |
|
|
12015 | char data = 0; |
|
|
12016 | |
|
|
12017 | iov.iov_base = &data; |
|
|
12018 | iov.iov_len = 1; |
|
|
12019 | |
|
|
12020 | msg.msg_iov = &iov; |
|
|
12021 | msg.msg_iovlen = 1; |
|
|
12022 | msg.msg_control = buf; |
|
|
12023 | msg.msg_controllen = sizeof buf; |
|
|
12024 | |
|
|
12025 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
12026 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
12027 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
12028 | cmsg->cmsg_len = 100; |
|
|
12029 | |
|
|
12030 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
12031 | |
|
|
12032 | return sendmsg (3, &msg, 0); |
|
|
12033 | } |
|
|
12034 | |
|
|
12035 | ; |
|
|
12036 | return 0; |
|
|
12037 | } |
|
|
12038 | _ACEOF |
|
|
12039 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12041 | (eval $ac_link) 2>conftest.er1 |
|
|
12042 | ac_status=$? |
|
|
12043 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12044 | rm -f conftest.er1 |
|
|
12045 | cat conftest.err >&5 |
|
|
12046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12047 | (exit $ac_status); } && |
|
|
12048 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12050 | (eval $ac_try) 2>&5 |
|
|
12051 | ac_status=$? |
|
|
12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12053 | (exit $ac_status); }; } && |
|
|
12054 | { ac_try='test -s conftest$ac_exeext' |
|
|
12055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12056 | (eval $ac_try) 2>&5 |
|
|
12057 | ac_status=$? |
|
|
12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12059 | (exit $ac_status); }; }; then |
|
|
12060 | rxvt_can_pass_fds=yes |
|
|
12061 | else |
|
|
12062 | echo "$as_me: failed program was:" >&5 |
|
|
12063 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12064 | |
|
|
12065 | rxvt_can_pass_fds=no |
|
|
12066 | fi |
|
|
12067 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12068 | conftest$ac_exeext conftest.$ac_ext |
|
|
12069 | fi |
|
|
12070 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
|
|
12071 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
|
|
12072 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
12073 | |
|
|
12074 | cat >>confdefs.h <<\_ACEOF |
|
|
12075 | #define HAVE_UNIX_FDPASS 1 |
|
|
12076 | _ACEOF |
|
|
12077 | |
|
|
12078 | else |
|
|
12079 | { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5 |
|
|
12080 | echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;} |
|
|
12081 | { (exit 1); exit 1; }; } |
|
|
12082 | fi |
|
|
12083 | |
10464 | |
12084 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
10465 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
12085 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
10466 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
12086 | if test "${rxvt_broken_ximcb+set}" = set; then |
10467 | if test "${rxvt_broken_ximcb+set}" = set; then |
12087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12137 | #define XIMCB_PROTO_BROKEN 1 |
10518 | #define XIMCB_PROTO_BROKEN 1 |
12138 | _ACEOF |
10519 | _ACEOF |
12139 | |
10520 | |
12140 | fi |
10521 | fi |
12141 | |
10522 | |
|
|
10523 | PTY_CHECK |
12142 | |
10524 | |
12143 | |
10525 | if test x$support_xft = xyes; then |
12144 | |
10526 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12145 | |
10527 | set dummy pkg-config; ac_word=$2 |
12146 | |
10528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12147 | |
10529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
12148 | for ac_header in \ |
10530 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
12149 | pty.h \ |
10531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12150 | util.h \ |
10532 | else |
12151 | libutil.h \ |
10533 | case $PKG_CONFIG in |
12152 | sys/ioctl.h \ |
10534 | [\\/]* | ?:[\\/]*) |
12153 | sys/stropts.h \ |
10535 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12154 | |
10536 | ;; |
|
|
10537 | *) |
|
|
10538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
10539 | for as_dir in $PATH |
12155 | do |
10540 | do |
12156 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10541 | IFS=$as_save_IFS |
12157 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10542 | test -z "$as_dir" && as_dir=. |
12158 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10543 | for ac_exec_ext in '' $ac_executable_extensions; do |
12159 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12160 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10545 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12162 | fi |
10547 | break 2 |
12163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12164 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12165 | else |
|
|
12166 | # Is the header compilable? |
|
|
12167 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12168 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
12169 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12170 | /* confdefs.h. */ |
|
|
12171 | _ACEOF |
|
|
12172 | cat confdefs.h >>conftest.$ac_ext |
|
|
12173 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12174 | /* end confdefs.h. */ |
|
|
12175 | $ac_includes_default |
|
|
12176 | #include <$ac_header> |
|
|
12177 | _ACEOF |
|
|
12178 | rm -f conftest.$ac_objext |
|
|
12179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12180 | (eval $ac_compile) 2>conftest.er1 |
|
|
12181 | ac_status=$? |
|
|
12182 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12183 | rm -f conftest.er1 |
|
|
12184 | cat conftest.err >&5 |
|
|
12185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12186 | (exit $ac_status); } && |
|
|
12187 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12189 | (eval $ac_try) 2>&5 |
|
|
12190 | ac_status=$? |
|
|
12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12192 | (exit $ac_status); }; } && |
|
|
12193 | { ac_try='test -s conftest.$ac_objext' |
|
|
12194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12195 | (eval $ac_try) 2>&5 |
|
|
12196 | ac_status=$? |
|
|
12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12198 | (exit $ac_status); }; }; then |
|
|
12199 | ac_header_compiler=yes |
|
|
12200 | else |
|
|
12201 | echo "$as_me: failed program was:" >&5 |
|
|
12202 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12203 | |
|
|
12204 | ac_header_compiler=no |
|
|
12205 | fi |
|
|
12206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12207 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12208 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12209 | |
|
|
12210 | # Is the header present? |
|
|
12211 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12212 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12213 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12214 | /* confdefs.h. */ |
|
|
12215 | _ACEOF |
|
|
12216 | cat confdefs.h >>conftest.$ac_ext |
|
|
12217 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12218 | /* end confdefs.h. */ |
|
|
12219 | #include <$ac_header> |
|
|
12220 | _ACEOF |
|
|
12221 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12222 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12223 | ac_status=$? |
|
|
12224 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12225 | rm -f conftest.er1 |
|
|
12226 | cat conftest.err >&5 |
|
|
12227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12228 | (exit $ac_status); } >/dev/null; then |
|
|
12229 | if test -s conftest.err; then |
|
|
12230 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12231 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12232 | else |
|
|
12233 | ac_cpp_err= |
|
|
12234 | fi |
10548 | fi |
12235 | else |
10549 | done |
12236 | ac_cpp_err=yes |
10550 | done |
12237 | fi |
|
|
12238 | if test -z "$ac_cpp_err"; then |
|
|
12239 | ac_header_preproc=yes |
|
|
12240 | else |
|
|
12241 | echo "$as_me: failed program was:" >&5 |
|
|
12242 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12243 | |
10551 | |
12244 | ac_header_preproc=no |
10552 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12245 | fi |
|
|
12246 | rm -f conftest.err conftest.$ac_ext |
|
|
12247 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12248 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12249 | |
|
|
12250 | # So? What about this header? |
|
|
12251 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12252 | yes:no: ) |
|
|
12253 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12254 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12256 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12257 | ac_header_preproc=yes |
|
|
12258 | ;; |
10553 | ;; |
12259 | no:yes:* ) |
|
|
12260 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12261 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12262 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12263 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12264 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12265 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12266 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12267 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12269 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12270 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12271 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12272 | ( |
|
|
12273 | cat <<\_ASBOX |
|
|
12274 | ## ------------------------------------------ ## |
|
|
12275 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12276 | ## ------------------------------------------ ## |
|
|
12277 | _ASBOX |
|
|
12278 | ) | |
|
|
12279 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12280 | ;; |
|
|
12281 | esac |
10554 | esac |
12282 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12283 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12286 | else |
|
|
12287 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12288 | fi |
10555 | fi |
12289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10556 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
12290 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12291 | |
10557 | |
12292 | fi |
10558 | if test -n "$PKG_CONFIG"; then |
12293 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12294 | cat >>confdefs.h <<_ACEOF |
|
|
12295 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12296 | _ACEOF |
|
|
12297 | |
|
|
12298 | fi |
|
|
12299 | |
|
|
12300 | done |
|
|
12301 | |
|
|
12302 | |
|
|
12303 | |
|
|
12304 | |
|
|
12305 | |
|
|
12306 | |
|
|
12307 | |
|
|
12308 | for ac_func in \ |
|
|
12309 | revoke \ |
|
|
12310 | _getpty \ |
|
|
12311 | getpt \ |
|
|
12312 | posix_openpt \ |
|
|
12313 | isastream \ |
|
|
12314 | |
|
|
12315 | do |
|
|
12316 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12317 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12318 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12319 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12321 | else |
|
|
12322 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12323 | /* confdefs.h. */ |
|
|
12324 | _ACEOF |
|
|
12325 | cat confdefs.h >>conftest.$ac_ext |
|
|
12326 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12327 | /* end confdefs.h. */ |
|
|
12328 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12329 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12330 | #define $ac_func innocuous_$ac_func |
|
|
12331 | |
|
|
12332 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12333 | which can conflict with char $ac_func (); below. |
|
|
12334 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12335 | <limits.h> exists even on freestanding compilers. */ |
|
|
12336 | |
|
|
12337 | #ifdef __STDC__ |
|
|
12338 | # include <limits.h> |
|
|
12339 | #else |
|
|
12340 | # include <assert.h> |
|
|
12341 | #endif |
|
|
12342 | |
|
|
12343 | #undef $ac_func |
|
|
12344 | |
|
|
12345 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12346 | #ifdef __cplusplus |
|
|
12347 | extern "C" |
|
|
12348 | { |
|
|
12349 | #endif |
|
|
12350 | /* We use char because int might match the return type of a gcc2 |
|
|
12351 | builtin and then its argument prototype would still apply. */ |
|
|
12352 | char $ac_func (); |
|
|
12353 | /* The GNU C library defines this for functions which it implements |
|
|
12354 | to always fail with ENOSYS. Some functions are actually named |
|
|
12355 | something starting with __ and the normal name is an alias. */ |
|
|
12356 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12357 | choke me |
|
|
12358 | #else |
|
|
12359 | char (*f) () = $ac_func; |
|
|
12360 | #endif |
|
|
12361 | #ifdef __cplusplus |
|
|
12362 | } |
|
|
12363 | #endif |
|
|
12364 | |
|
|
12365 | int |
|
|
12366 | main () |
|
|
12367 | { |
|
|
12368 | return f != $ac_func; |
|
|
12369 | ; |
|
|
12370 | return 0; |
|
|
12371 | } |
|
|
12372 | _ACEOF |
|
|
12373 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12375 | (eval $ac_link) 2>conftest.er1 |
|
|
12376 | ac_status=$? |
|
|
12377 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12378 | rm -f conftest.er1 |
|
|
12379 | cat conftest.err >&5 |
|
|
12380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12381 | (exit $ac_status); } && |
|
|
12382 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12384 | (eval $ac_try) 2>&5 |
|
|
12385 | ac_status=$? |
|
|
12386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12387 | (exit $ac_status); }; } && |
|
|
12388 | { ac_try='test -s conftest$ac_exeext' |
|
|
12389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12390 | (eval $ac_try) 2>&5 |
|
|
12391 | ac_status=$? |
|
|
12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12393 | (exit $ac_status); }; }; then |
|
|
12394 | eval "$as_ac_var=yes" |
|
|
12395 | else |
|
|
12396 | echo "$as_me: failed program was:" >&5 |
|
|
12397 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12398 | |
|
|
12399 | eval "$as_ac_var=no" |
|
|
12400 | fi |
|
|
12401 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12402 | conftest$ac_exeext conftest.$ac_ext |
|
|
12403 | fi |
|
|
12404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12405 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12406 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12407 | cat >>confdefs.h <<_ACEOF |
|
|
12408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12409 | _ACEOF |
|
|
12410 | |
|
|
12411 | fi |
|
|
12412 | done |
|
|
12413 | |
|
|
12414 | |
|
|
12415 | have_clone=no |
|
|
12416 | |
|
|
12417 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12418 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12419 | if test -e /dev/ptym/clone; then |
|
|
12420 | echo "$as_me:$LINENO: result: yes" >&5 |
10559 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
12421 | echo "${ECHO_T}yes" >&6 |
10560 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
12422 | |
|
|
12423 | cat >>confdefs.h <<\_ACEOF |
|
|
12424 | #define HAVE_DEV_CLONE 1 |
|
|
12425 | _ACEOF |
|
|
12426 | |
|
|
12427 | |
|
|
12428 | cat >>confdefs.h <<\_ACEOF |
|
|
12429 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12430 | _ACEOF |
|
|
12431 | |
|
|
12432 | have_clone=yes |
|
|
12433 | else |
10561 | else |
12434 | echo "$as_me:$LINENO: result: no" >&5 |
10562 | echo "$as_me:$LINENO: result: no" >&5 |
12435 | echo "${ECHO_T}no" >&6 |
10563 | echo "${ECHO_T}no" >&6 |
12436 | fi |
10564 | fi |
12437 | |
10565 | |
|
|
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 |
12438 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
10568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12439 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
10569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
12440 | if test -e /dev/ptc; then |
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 | |
|
|
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 | |
|
|
10598 | if test -n "$XFT_CONFIG"; then |
12441 | echo "$as_me:$LINENO: result: yes" >&5 |
10599 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
12442 | echo "${ECHO_T}yes" >&6 |
10600 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
12443 | |
|
|
12444 | cat >>confdefs.h <<\_ACEOF |
|
|
12445 | #define HAVE_DEV_PTC 1 |
|
|
12446 | _ACEOF |
|
|
12447 | |
|
|
12448 | |
|
|
12449 | cat >>confdefs.h <<\_ACEOF |
|
|
12450 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12451 | _ACEOF |
|
|
12452 | |
|
|
12453 | have_clone=yes |
|
|
12454 | else |
10601 | else |
12455 | echo "$as_me:$LINENO: result: no" >&5 |
10602 | echo "$as_me:$LINENO: result: no" >&5 |
12456 | echo "${ECHO_T}no" >&6 |
10603 | echo "${ECHO_T}no" >&6 |
12457 | fi |
10604 | fi |
12458 | |
10605 | |
12459 | case $host in |
10606 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
12460 | *-*-cygwin*) |
10607 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
12461 | have_clone=yes |
10608 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12462 | |
|
|
12463 | cat >>confdefs.h <<\_ACEOF |
|
|
12464 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12465 | _ACEOF |
|
|
12466 | |
|
|
12467 | ;; |
|
|
12468 | *) |
|
|
12469 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12470 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12471 | if test -e /dev/ptmx; then |
|
|
12472 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12473 | echo "${ECHO_T}yes" >&6 |
|
|
12474 | |
|
|
12475 | cat >>confdefs.h <<\_ACEOF |
|
|
12476 | #define HAVE_DEV_PTMX 1 |
|
|
12477 | _ACEOF |
|
|
12478 | |
|
|
12479 | |
|
|
12480 | cat >>confdefs.h <<\_ACEOF |
|
|
12481 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12482 | _ACEOF |
|
|
12483 | |
|
|
12484 | have_clone=yes |
|
|
12485 | else |
10609 | else |
12486 | echo "$as_me:$LINENO: result: no" >&5 |
10610 | if test $XFT_CONFIG != no; then |
12487 | echo "${ECHO_T}no" >&6 |
10611 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
|
|
10612 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12488 | fi |
10613 | fi |
12489 | ;; |
10614 | fi |
12490 | esac |
|
|
12491 | |
|
|
12492 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12493 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12494 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12495 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12496 | /* confdefs.h. */ |
|
|
12497 | _ACEOF |
|
|
12498 | cat confdefs.h >>conftest.$ac_ext |
|
|
12499 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12500 | /* end confdefs.h. */ |
|
|
12501 | #include <stdlib.h> |
|
|
12502 | int |
|
|
12503 | main () |
|
|
12504 | { |
|
|
12505 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12506 | ; |
|
|
12507 | return 0; |
|
|
12508 | } |
|
|
12509 | _ACEOF |
|
|
12510 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12512 | (eval $ac_link) 2>conftest.er1 |
|
|
12513 | ac_status=$? |
|
|
12514 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12515 | rm -f conftest.er1 |
|
|
12516 | cat conftest.err >&5 |
|
|
12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12518 | (exit $ac_status); } && |
|
|
12519 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12521 | (eval $ac_try) 2>&5 |
|
|
12522 | ac_status=$? |
|
|
12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12524 | (exit $ac_status); }; } && |
|
|
12525 | { ac_try='test -s conftest$ac_exeext' |
|
|
12526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12527 | (eval $ac_try) 2>&5 |
|
|
12528 | ac_status=$? |
|
|
12529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12530 | (exit $ac_status); }; }; then |
|
|
12531 | unix98_pty=yes |
|
|
12532 | |
|
|
12533 | cat >>confdefs.h <<\_ACEOF |
|
|
12534 | #define UNIX98_PTY 1 |
|
|
12535 | _ACEOF |
|
|
12536 | |
|
|
12537 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12538 | echo "${ECHO_T}yes" >&6 |
|
|
12539 | else |
|
|
12540 | echo "$as_me: failed program was:" >&5 |
|
|
12541 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12542 | |
|
|
12543 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12544 | echo "${ECHO_T}no" >&6 |
|
|
12545 | fi |
|
|
12546 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12547 | conftest$ac_exeext conftest.$ac_ext |
|
|
12548 | fi |
|
|
12549 | |
|
|
12550 | if test -z "$unix98_pty"; then |
|
|
12551 | |
|
|
12552 | for ac_func in openpty |
|
|
12553 | do |
|
|
12554 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12555 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12556 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12557 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12559 | else |
|
|
12560 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12561 | /* confdefs.h. */ |
|
|
12562 | _ACEOF |
|
|
12563 | cat confdefs.h >>conftest.$ac_ext |
|
|
12564 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12565 | /* end confdefs.h. */ |
|
|
12566 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12567 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12568 | #define $ac_func innocuous_$ac_func |
|
|
12569 | |
|
|
12570 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12571 | which can conflict with char $ac_func (); below. |
|
|
12572 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12573 | <limits.h> exists even on freestanding compilers. */ |
|
|
12574 | |
|
|
12575 | #ifdef __STDC__ |
|
|
12576 | # include <limits.h> |
|
|
12577 | #else |
|
|
12578 | # include <assert.h> |
|
|
12579 | #endif |
|
|
12580 | |
|
|
12581 | #undef $ac_func |
|
|
12582 | |
|
|
12583 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12584 | #ifdef __cplusplus |
|
|
12585 | extern "C" |
|
|
12586 | { |
|
|
12587 | #endif |
|
|
12588 | /* We use char because int might match the return type of a gcc2 |
|
|
12589 | builtin and then its argument prototype would still apply. */ |
|
|
12590 | char $ac_func (); |
|
|
12591 | /* The GNU C library defines this for functions which it implements |
|
|
12592 | to always fail with ENOSYS. Some functions are actually named |
|
|
12593 | something starting with __ and the normal name is an alias. */ |
|
|
12594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12595 | choke me |
|
|
12596 | #else |
|
|
12597 | char (*f) () = $ac_func; |
|
|
12598 | #endif |
|
|
12599 | #ifdef __cplusplus |
|
|
12600 | } |
|
|
12601 | #endif |
|
|
12602 | |
|
|
12603 | int |
|
|
12604 | main () |
|
|
12605 | { |
|
|
12606 | return f != $ac_func; |
|
|
12607 | ; |
|
|
12608 | return 0; |
|
|
12609 | } |
|
|
12610 | _ACEOF |
|
|
12611 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12613 | (eval $ac_link) 2>conftest.er1 |
|
|
12614 | ac_status=$? |
|
|
12615 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12616 | rm -f conftest.er1 |
|
|
12617 | cat conftest.err >&5 |
|
|
12618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12619 | (exit $ac_status); } && |
|
|
12620 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12622 | (eval $ac_try) 2>&5 |
|
|
12623 | ac_status=$? |
|
|
12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12625 | (exit $ac_status); }; } && |
|
|
12626 | { ac_try='test -s conftest$ac_exeext' |
|
|
12627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12628 | (eval $ac_try) 2>&5 |
|
|
12629 | ac_status=$? |
|
|
12630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12631 | (exit $ac_status); }; }; then |
|
|
12632 | eval "$as_ac_var=yes" |
|
|
12633 | else |
|
|
12634 | echo "$as_me: failed program was:" >&5 |
|
|
12635 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12636 | |
|
|
12637 | eval "$as_ac_var=no" |
|
|
12638 | fi |
|
|
12639 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12640 | conftest$ac_exeext conftest.$ac_ext |
|
|
12641 | fi |
|
|
12642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12643 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12644 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12645 | cat >>confdefs.h <<_ACEOF |
|
|
12646 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12647 | _ACEOF |
|
|
12648 | |
|
|
12649 | else |
|
|
12650 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
12651 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
12652 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
12653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12654 | else |
|
|
12655 | ac_check_lib_save_LIBS=$LIBS |
|
|
12656 | LIBS="-lutil $LIBS" |
|
|
12657 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12658 | /* confdefs.h. */ |
|
|
12659 | _ACEOF |
|
|
12660 | cat confdefs.h >>conftest.$ac_ext |
|
|
12661 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12662 | /* end confdefs.h. */ |
|
|
12663 | |
|
|
12664 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12665 | #ifdef __cplusplus |
|
|
12666 | extern "C" |
|
|
12667 | #endif |
|
|
12668 | /* We use char because int might match the return type of a gcc2 |
|
|
12669 | builtin and then its argument prototype would still apply. */ |
|
|
12670 | char openpty (); |
|
|
12671 | int |
|
|
12672 | main () |
|
|
12673 | { |
|
|
12674 | openpty (); |
|
|
12675 | ; |
|
|
12676 | return 0; |
|
|
12677 | } |
|
|
12678 | _ACEOF |
|
|
12679 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12681 | (eval $ac_link) 2>conftest.er1 |
|
|
12682 | ac_status=$? |
|
|
12683 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12684 | rm -f conftest.er1 |
|
|
12685 | cat conftest.err >&5 |
|
|
12686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12687 | (exit $ac_status); } && |
|
|
12688 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12690 | (eval $ac_try) 2>&5 |
|
|
12691 | ac_status=$? |
|
|
12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12693 | (exit $ac_status); }; } && |
|
|
12694 | { ac_try='test -s conftest$ac_exeext' |
|
|
12695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12696 | (eval $ac_try) 2>&5 |
|
|
12697 | ac_status=$? |
|
|
12698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12699 | (exit $ac_status); }; }; then |
|
|
12700 | ac_cv_lib_util_openpty=yes |
|
|
12701 | else |
|
|
12702 | echo "$as_me: failed program was:" >&5 |
|
|
12703 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12704 | |
|
|
12705 | ac_cv_lib_util_openpty=no |
|
|
12706 | fi |
|
|
12707 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12708 | conftest$ac_exeext conftest.$ac_ext |
|
|
12709 | LIBS=$ac_check_lib_save_LIBS |
|
|
12710 | fi |
|
|
12711 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12712 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12713 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12714 | cat >>confdefs.h <<\_ACEOF |
|
|
12715 | #define HAVE_OPENPTY 1 |
|
|
12716 | _ACEOF |
|
|
12717 | LIBS="$LIBS -lutil" |
|
|
12718 | fi |
|
|
12719 | |
|
|
12720 | fi |
|
|
12721 | done |
|
|
12722 | |
|
|
12723 | fi |
|
|
12724 | |
|
|
12725 | |
|
|
12726 | if test x$support_xft = xyes; then |
|
|
12727 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
12728 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
12729 | |
10615 | |
12730 | |
10616 | |
12731 | for ac_header in X11/Xft/Xft.h |
10617 | for ac_header in X11/Xft/Xft.h |
12732 | do |
10618 | do |
12733 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10619 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
… | |
… | |
14137 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
12023 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
14138 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
12024 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
14139 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
12025 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
14140 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
12026 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
14141 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
12027 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
|
|
12028 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
|
|
12029 | s,@XFT_CONFIG@,$XFT_CONFIG,;t t |
14142 | s,@PERL@,$PERL,;t t |
12030 | s,@PERL@,$PERL,;t t |
14143 | s,@PERLLIB@,$PERLLIB,;t t |
12031 | s,@PERLLIB@,$PERLLIB,;t t |
14144 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
12032 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
14145 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
12033 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
14146 | s,@IF_PERL@,$IF_PERL,;t t |
12034 | s,@IF_PERL@,$IF_PERL,;t t |