… | |
… | |
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 LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC 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 |
… | |
… | |
3051 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3051 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3052 | |
3052 | |
3053 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3053 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3054 | |
3054 | |
3055 | |
3055 | |
3056 | ac_ext=c |
|
|
3057 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3058 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3059 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3060 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3061 | |
|
|
3062 | |
|
|
3063 | if test -z "$orig_CXXFLAGS"; then |
|
|
3064 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3065 | CXXFLAGS="-g -O3" |
|
|
3066 | else |
|
|
3067 | CXXFLAGS="-O" |
|
|
3068 | fi |
|
|
3069 | CFLAGS="$CXXFLAGS" |
|
|
3070 | fi |
|
|
3071 | |
|
|
3072 | LINKER="$CXX" |
|
|
3073 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3074 | |
|
|
3075 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3076 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3077 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3079 | else |
|
|
3080 | ac_check_lib_save_LIBS=$LIBS |
|
|
3081 | LIBS="-lsupc++ $LIBS" |
|
|
3082 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3083 | /* confdefs.h. */ |
|
|
3084 | _ACEOF |
|
|
3085 | cat confdefs.h >>conftest.$ac_ext |
|
|
3086 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3087 | /* end confdefs.h. */ |
|
|
3088 | |
|
|
3089 | |
|
|
3090 | int |
|
|
3091 | main () |
|
|
3092 | { |
|
|
3093 | main (); |
|
|
3094 | ; |
|
|
3095 | return 0; |
|
|
3096 | } |
|
|
3097 | _ACEOF |
|
|
3098 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3100 | (eval $ac_link) 2>conftest.er1 |
|
|
3101 | ac_status=$? |
|
|
3102 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3103 | rm -f conftest.er1 |
|
|
3104 | cat conftest.err >&5 |
|
|
3105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3106 | (exit $ac_status); } && |
|
|
3107 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3109 | (eval $ac_try) 2>&5 |
|
|
3110 | ac_status=$? |
|
|
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3112 | (exit $ac_status); }; } && |
|
|
3113 | { ac_try='test -s conftest$ac_exeext' |
|
|
3114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3115 | (eval $ac_try) 2>&5 |
|
|
3116 | ac_status=$? |
|
|
3117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3118 | (exit $ac_status); }; }; then |
|
|
3119 | ac_cv_lib_supcpp_main=yes |
|
|
3120 | else |
|
|
3121 | echo "$as_me: failed program was:" >&5 |
|
|
3122 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3123 | |
|
|
3124 | ac_cv_lib_supcpp_main=no |
|
|
3125 | fi |
|
|
3126 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3127 | conftest$ac_exeext conftest.$ac_ext |
|
|
3128 | LIBS=$ac_check_lib_save_LIBS |
|
|
3129 | fi |
|
|
3130 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3131 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3132 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3133 | |
|
|
3134 | LINKER="$CC" |
|
|
3135 | LIBS="$LIBS -lsupc++" |
|
|
3136 | |
|
|
3137 | fi |
|
|
3138 | |
|
|
3139 | fi |
|
|
3140 | LINKER=$LINKER |
|
|
3141 | |
|
|
3142 | |
|
|
3143 | |
|
|
3144 | cat >>confdefs.h <<\_ACEOF |
|
|
3145 | #define _GNU_SOURCE 1 |
|
|
3146 | _ACEOF |
|
|
3147 | |
|
|
3148 | |
|
|
3149 | case $host in |
|
|
3150 | *-*-solaris* ) |
|
|
3151 | |
|
|
3152 | cat >>confdefs.h <<\_ACEOF |
|
|
3153 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3154 | _ACEOF |
|
|
3155 | |
|
|
3156 | |
|
|
3157 | cat >>confdefs.h <<\_ACEOF |
|
|
3158 | #define _XOPEN_SOURCE 2 |
|
|
3159 | _ACEOF |
|
|
3160 | |
|
|
3161 | |
|
|
3162 | cat >>confdefs.h <<\_ACEOF |
|
|
3163 | #define __EXTENSIONS__ 1 |
|
|
3164 | _ACEOF |
|
|
3165 | |
|
|
3166 | ;; |
|
|
3167 | esac |
|
|
3168 | |
|
|
3169 | |
|
|
3170 | ac_ext=cc |
|
|
3171 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3172 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3173 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3174 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3175 | |
|
|
3176 | |
|
|
3177 | |
|
|
3178 | ac_ext=cc |
|
|
3179 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3180 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3181 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3182 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3183 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
3184 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
3185 | if test -z "$CXXCPP"; then |
|
|
3186 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
3187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3188 | else |
|
|
3189 | # Double quotes because CXXCPP needs to be expanded |
|
|
3190 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
3191 | do |
|
|
3192 | ac_preproc_ok=false |
|
|
3193 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3194 | do |
|
|
3195 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3196 | # with a fresh cross-compiler works. |
|
|
3197 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3198 | # <limits.h> exists even on freestanding compilers. |
|
|
3199 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3200 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3201 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3202 | /* confdefs.h. */ |
|
|
3203 | _ACEOF |
|
|
3204 | cat confdefs.h >>conftest.$ac_ext |
|
|
3205 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3206 | /* end confdefs.h. */ |
|
|
3207 | #ifdef __STDC__ |
|
|
3208 | # include <limits.h> |
|
|
3209 | #else |
|
|
3210 | # include <assert.h> |
|
|
3211 | #endif |
|
|
3212 | Syntax error |
|
|
3213 | _ACEOF |
|
|
3214 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3215 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3216 | ac_status=$? |
|
|
3217 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3218 | rm -f conftest.er1 |
|
|
3219 | cat conftest.err >&5 |
|
|
3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3221 | (exit $ac_status); } >/dev/null; then |
|
|
3222 | if test -s conftest.err; then |
|
|
3223 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3224 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3225 | else |
|
|
3226 | ac_cpp_err= |
|
|
3227 | fi |
|
|
3228 | else |
|
|
3229 | ac_cpp_err=yes |
|
|
3230 | fi |
|
|
3231 | if test -z "$ac_cpp_err"; then |
|
|
3232 | : |
|
|
3233 | else |
|
|
3234 | echo "$as_me: failed program was:" >&5 |
|
|
3235 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3236 | |
|
|
3237 | # Broken: fails on valid input. |
|
|
3238 | continue |
|
|
3239 | fi |
|
|
3240 | rm -f conftest.err conftest.$ac_ext |
|
|
3241 | |
|
|
3242 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3243 | # can be detected and how. |
|
|
3244 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3245 | /* confdefs.h. */ |
|
|
3246 | _ACEOF |
|
|
3247 | cat confdefs.h >>conftest.$ac_ext |
|
|
3248 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3249 | /* end confdefs.h. */ |
|
|
3250 | #include <ac_nonexistent.h> |
|
|
3251 | _ACEOF |
|
|
3252 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3253 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3254 | ac_status=$? |
|
|
3255 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3256 | rm -f conftest.er1 |
|
|
3257 | cat conftest.err >&5 |
|
|
3258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3259 | (exit $ac_status); } >/dev/null; then |
|
|
3260 | if test -s conftest.err; then |
|
|
3261 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3262 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3263 | else |
|
|
3264 | ac_cpp_err= |
|
|
3265 | fi |
|
|
3266 | else |
|
|
3267 | ac_cpp_err=yes |
|
|
3268 | fi |
|
|
3269 | if test -z "$ac_cpp_err"; then |
|
|
3270 | # Broken: success on invalid input. |
|
|
3271 | continue |
|
|
3272 | else |
|
|
3273 | echo "$as_me: failed program was:" >&5 |
|
|
3274 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3275 | |
|
|
3276 | # Passes both tests. |
|
|
3277 | ac_preproc_ok=: |
|
|
3278 | break |
|
|
3279 | fi |
|
|
3280 | rm -f conftest.err conftest.$ac_ext |
|
|
3281 | |
|
|
3282 | done |
|
|
3283 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3284 | rm -f conftest.err conftest.$ac_ext |
|
|
3285 | if $ac_preproc_ok; then |
|
|
3286 | break |
|
|
3287 | fi |
|
|
3288 | |
|
|
3289 | done |
|
|
3290 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3291 | |
|
|
3292 | fi |
|
|
3293 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
3294 | else |
|
|
3295 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3296 | fi |
|
|
3297 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
3298 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
3299 | ac_preproc_ok=false |
|
|
3300 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3301 | do |
|
|
3302 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3303 | # with a fresh cross-compiler works. |
|
|
3304 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3305 | # <limits.h> exists even on freestanding compilers. |
|
|
3306 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3307 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3308 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3309 | /* confdefs.h. */ |
|
|
3310 | _ACEOF |
|
|
3311 | cat confdefs.h >>conftest.$ac_ext |
|
|
3312 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3313 | /* end confdefs.h. */ |
|
|
3314 | #ifdef __STDC__ |
|
|
3315 | # include <limits.h> |
|
|
3316 | #else |
|
|
3317 | # include <assert.h> |
|
|
3318 | #endif |
|
|
3319 | Syntax error |
|
|
3320 | _ACEOF |
|
|
3321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3323 | ac_status=$? |
|
|
3324 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3325 | rm -f conftest.er1 |
|
|
3326 | cat conftest.err >&5 |
|
|
3327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3328 | (exit $ac_status); } >/dev/null; then |
|
|
3329 | if test -s conftest.err; then |
|
|
3330 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3331 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3332 | else |
|
|
3333 | ac_cpp_err= |
|
|
3334 | fi |
|
|
3335 | else |
|
|
3336 | ac_cpp_err=yes |
|
|
3337 | fi |
|
|
3338 | if test -z "$ac_cpp_err"; then |
|
|
3339 | : |
|
|
3340 | else |
|
|
3341 | echo "$as_me: failed program was:" >&5 |
|
|
3342 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3343 | |
|
|
3344 | # Broken: fails on valid input. |
|
|
3345 | continue |
|
|
3346 | fi |
|
|
3347 | rm -f conftest.err conftest.$ac_ext |
|
|
3348 | |
|
|
3349 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3350 | # can be detected and how. |
|
|
3351 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3352 | /* confdefs.h. */ |
|
|
3353 | _ACEOF |
|
|
3354 | cat confdefs.h >>conftest.$ac_ext |
|
|
3355 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3356 | /* end confdefs.h. */ |
|
|
3357 | #include <ac_nonexistent.h> |
|
|
3358 | _ACEOF |
|
|
3359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3361 | ac_status=$? |
|
|
3362 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3363 | rm -f conftest.er1 |
|
|
3364 | cat conftest.err >&5 |
|
|
3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3366 | (exit $ac_status); } >/dev/null; then |
|
|
3367 | if test -s conftest.err; then |
|
|
3368 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3369 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3370 | else |
|
|
3371 | ac_cpp_err= |
|
|
3372 | fi |
|
|
3373 | else |
|
|
3374 | ac_cpp_err=yes |
|
|
3375 | fi |
|
|
3376 | if test -z "$ac_cpp_err"; then |
|
|
3377 | # Broken: success on invalid input. |
|
|
3378 | continue |
|
|
3379 | else |
|
|
3380 | echo "$as_me: failed program was:" >&5 |
|
|
3381 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3382 | |
|
|
3383 | # Passes both tests. |
|
|
3384 | ac_preproc_ok=: |
|
|
3385 | break |
|
|
3386 | fi |
|
|
3387 | rm -f conftest.err conftest.$ac_ext |
|
|
3388 | |
|
|
3389 | done |
|
|
3390 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3391 | rm -f conftest.err conftest.$ac_ext |
|
|
3392 | if $ac_preproc_ok; then |
|
|
3393 | : |
|
|
3394 | else |
|
|
3395 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3396 | See \`config.log' for more details." >&5 |
|
|
3397 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3398 | See \`config.log' for more details." >&2;} |
|
|
3399 | { (exit 1); exit 1; }; } |
|
|
3400 | fi |
|
|
3401 | |
|
|
3402 | ac_ext=cc |
|
|
3403 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3404 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3405 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3406 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3407 | |
3056 | |
3408 | |
3057 | |
3409 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3058 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3410 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3059 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3411 | if test "${ac_cv_prog_egrep+set}" = set; then |
3060 | if test "${ac_cv_prog_egrep+set}" = set; then |
… | |
… | |
3486 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
3487 | rm -f conftest.er1 |
3136 | rm -f conftest.er1 |
3488 | cat conftest.err >&5 |
3137 | cat conftest.err >&5 |
3489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3490 | (exit $ac_status); } && |
3139 | (exit $ac_status); } && |
3491 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3493 | (eval $ac_try) 2>&5 |
3142 | (eval $ac_try) 2>&5 |
3494 | ac_status=$? |
3143 | ac_status=$? |
3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3496 | (exit $ac_status); }; } && |
3145 | (exit $ac_status); }; } && |
… | |
… | |
3540 | grep -v '^ *+' conftest.er1 >conftest.err |
3189 | grep -v '^ *+' conftest.er1 >conftest.err |
3541 | rm -f conftest.er1 |
3190 | rm -f conftest.er1 |
3542 | cat conftest.err >&5 |
3191 | cat conftest.err >&5 |
3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3544 | (exit $ac_status); } && |
3193 | (exit $ac_status); } && |
3545 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3547 | (eval $ac_try) 2>&5 |
3196 | (eval $ac_try) 2>&5 |
3548 | ac_status=$? |
3197 | ac_status=$? |
3549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3550 | (exit $ac_status); }; } && |
3199 | (exit $ac_status); }; } && |
… | |
… | |
3571 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
3220 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
3572 | if test "$ac_cv_search_strerror" != no; then |
3221 | if test "$ac_cv_search_strerror" != no; then |
3573 | 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" |
3574 | |
3223 | |
3575 | fi |
3224 | fi |
|
|
3225 | |
|
|
3226 | ac_ext=cc |
|
|
3227 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3228 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3229 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3230 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
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 | |
|
|
3305 | if test -z "$orig_CXXFLAGS"; then |
|
|
3306 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3307 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3308 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3309 | /* confdefs.h. */ |
|
|
3310 | _ACEOF |
|
|
3311 | cat confdefs.h >>conftest.$ac_ext |
|
|
3312 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3313 | /* end confdefs.h. */ |
|
|
3314 | |
|
|
3315 | int |
|
|
3316 | main () |
|
|
3317 | { |
|
|
3318 | |
|
|
3319 | ; |
|
|
3320 | return 0; |
|
|
3321 | } |
|
|
3322 | _ACEOF |
|
|
3323 | rm -f conftest.$ac_objext |
|
|
3324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3325 | (eval $ac_compile) 2>conftest.er1 |
|
|
3326 | ac_status=$? |
|
|
3327 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3328 | rm -f conftest.er1 |
|
|
3329 | cat conftest.err >&5 |
|
|
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3331 | (exit $ac_status); } && |
|
|
3332 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3334 | (eval $ac_try) 2>&5 |
|
|
3335 | ac_status=$? |
|
|
3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3337 | (exit $ac_status); }; } && |
|
|
3338 | { ac_try='test -s conftest.$ac_objext' |
|
|
3339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3340 | (eval $ac_try) 2>&5 |
|
|
3341 | ac_status=$? |
|
|
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3343 | (exit $ac_status); }; }; then |
|
|
3344 | : |
|
|
3345 | else |
|
|
3346 | echo "$as_me: failed program was:" >&5 |
|
|
3347 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3348 | |
|
|
3349 | CXXFLAGS="-g -O3" |
|
|
3350 | fi |
|
|
3351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3352 | else |
|
|
3353 | CXXFLAGS="-O" |
|
|
3354 | fi |
|
|
3355 | CFLAGS="$CXXFLAGS" |
|
|
3356 | fi |
|
|
3357 | |
|
|
3358 | |
|
|
3359 | cat >>confdefs.h <<\_ACEOF |
|
|
3360 | #define _GNU_SOURCE 1 |
|
|
3361 | _ACEOF |
|
|
3362 | |
|
|
3363 | |
|
|
3364 | case $host in |
|
|
3365 | *-*-solaris* ) |
|
|
3366 | |
|
|
3367 | cat >>confdefs.h <<\_ACEOF |
|
|
3368 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3369 | _ACEOF |
|
|
3370 | |
|
|
3371 | |
|
|
3372 | cat >>confdefs.h <<\_ACEOF |
|
|
3373 | #define _XOPEN_SOURCE 2 |
|
|
3374 | _ACEOF |
|
|
3375 | |
|
|
3376 | |
|
|
3377 | cat >>confdefs.h <<\_ACEOF |
|
|
3378 | #define __EXTENSIONS__ 1 |
|
|
3379 | _ACEOF |
|
|
3380 | |
|
|
3381 | ;; |
|
|
3382 | esac |
3576 | |
3383 | |
3577 | |
3384 | |
3578 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
3385 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
3579 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
3386 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
3580 | if test "${ac_cv_func_setlocale+set}" = set; then |
3387 | if test "${ac_cv_func_setlocale+set}" = set; then |
… | |
… | |
5112 | fi |
4919 | fi |
5113 | |
4920 | |
5114 | |
4921 | |
5115 | |
4922 | |
5116 | |
4923 | |
|
|
4924 | ac_ext=cc |
|
|
4925 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4926 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4927 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4928 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4929 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4930 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
4931 | if test -z "$CXXCPP"; then |
|
|
4932 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4934 | else |
|
|
4935 | # Double quotes because CXXCPP needs to be expanded |
|
|
4936 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4937 | do |
|
|
4938 | ac_preproc_ok=false |
|
|
4939 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4940 | do |
|
|
4941 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4942 | # with a fresh cross-compiler works. |
|
|
4943 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4944 | # <limits.h> exists even on freestanding compilers. |
|
|
4945 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4946 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4947 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4948 | /* confdefs.h. */ |
|
|
4949 | _ACEOF |
|
|
4950 | cat confdefs.h >>conftest.$ac_ext |
|
|
4951 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4952 | /* end confdefs.h. */ |
|
|
4953 | #ifdef __STDC__ |
|
|
4954 | # include <limits.h> |
|
|
4955 | #else |
|
|
4956 | # include <assert.h> |
|
|
4957 | #endif |
|
|
4958 | Syntax error |
|
|
4959 | _ACEOF |
|
|
4960 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4961 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4962 | ac_status=$? |
|
|
4963 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4964 | rm -f conftest.er1 |
|
|
4965 | cat conftest.err >&5 |
|
|
4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4967 | (exit $ac_status); } >/dev/null; then |
|
|
4968 | if test -s conftest.err; then |
|
|
4969 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4970 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4971 | else |
|
|
4972 | ac_cpp_err= |
|
|
4973 | fi |
|
|
4974 | else |
|
|
4975 | ac_cpp_err=yes |
|
|
4976 | fi |
|
|
4977 | if test -z "$ac_cpp_err"; then |
|
|
4978 | : |
|
|
4979 | else |
|
|
4980 | echo "$as_me: failed program was:" >&5 |
|
|
4981 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4982 | |
|
|
4983 | # Broken: fails on valid input. |
|
|
4984 | continue |
|
|
4985 | fi |
|
|
4986 | rm -f conftest.err conftest.$ac_ext |
|
|
4987 | |
|
|
4988 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4989 | # can be detected and how. |
|
|
4990 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4991 | /* confdefs.h. */ |
|
|
4992 | _ACEOF |
|
|
4993 | cat confdefs.h >>conftest.$ac_ext |
|
|
4994 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4995 | /* end confdefs.h. */ |
|
|
4996 | #include <ac_nonexistent.h> |
|
|
4997 | _ACEOF |
|
|
4998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5000 | ac_status=$? |
|
|
5001 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5002 | rm -f conftest.er1 |
|
|
5003 | cat conftest.err >&5 |
|
|
5004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5005 | (exit $ac_status); } >/dev/null; then |
|
|
5006 | if test -s conftest.err; then |
|
|
5007 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5008 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5009 | else |
|
|
5010 | ac_cpp_err= |
|
|
5011 | fi |
|
|
5012 | else |
|
|
5013 | ac_cpp_err=yes |
|
|
5014 | fi |
|
|
5015 | if test -z "$ac_cpp_err"; then |
|
|
5016 | # Broken: success on invalid input. |
|
|
5017 | continue |
|
|
5018 | else |
|
|
5019 | echo "$as_me: failed program was:" >&5 |
|
|
5020 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5021 | |
|
|
5022 | # Passes both tests. |
|
|
5023 | ac_preproc_ok=: |
|
|
5024 | break |
|
|
5025 | fi |
|
|
5026 | rm -f conftest.err conftest.$ac_ext |
|
|
5027 | |
|
|
5028 | done |
|
|
5029 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5030 | rm -f conftest.err conftest.$ac_ext |
|
|
5031 | if $ac_preproc_ok; then |
|
|
5032 | break |
|
|
5033 | fi |
|
|
5034 | |
|
|
5035 | done |
|
|
5036 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5037 | |
|
|
5038 | fi |
|
|
5039 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5040 | else |
|
|
5041 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5042 | fi |
|
|
5043 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5044 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
5045 | ac_preproc_ok=false |
|
|
5046 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5047 | do |
|
|
5048 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5049 | # with a fresh cross-compiler works. |
|
|
5050 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5051 | # <limits.h> exists even on freestanding compilers. |
|
|
5052 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5053 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5054 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5055 | /* confdefs.h. */ |
|
|
5056 | _ACEOF |
|
|
5057 | cat confdefs.h >>conftest.$ac_ext |
|
|
5058 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5059 | /* end confdefs.h. */ |
|
|
5060 | #ifdef __STDC__ |
|
|
5061 | # include <limits.h> |
|
|
5062 | #else |
|
|
5063 | # include <assert.h> |
|
|
5064 | #endif |
|
|
5065 | Syntax error |
|
|
5066 | _ACEOF |
|
|
5067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5069 | ac_status=$? |
|
|
5070 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5071 | rm -f conftest.er1 |
|
|
5072 | cat conftest.err >&5 |
|
|
5073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5074 | (exit $ac_status); } >/dev/null; then |
|
|
5075 | if test -s conftest.err; then |
|
|
5076 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5077 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5078 | else |
|
|
5079 | ac_cpp_err= |
|
|
5080 | fi |
|
|
5081 | else |
|
|
5082 | ac_cpp_err=yes |
|
|
5083 | fi |
|
|
5084 | if test -z "$ac_cpp_err"; then |
|
|
5085 | : |
|
|
5086 | else |
|
|
5087 | echo "$as_me: failed program was:" >&5 |
|
|
5088 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5089 | |
|
|
5090 | # Broken: fails on valid input. |
|
|
5091 | continue |
|
|
5092 | fi |
|
|
5093 | rm -f conftest.err conftest.$ac_ext |
|
|
5094 | |
|
|
5095 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
5096 | # can be detected and how. |
|
|
5097 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5098 | /* confdefs.h. */ |
|
|
5099 | _ACEOF |
|
|
5100 | cat confdefs.h >>conftest.$ac_ext |
|
|
5101 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5102 | /* end confdefs.h. */ |
|
|
5103 | #include <ac_nonexistent.h> |
|
|
5104 | _ACEOF |
|
|
5105 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5106 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5107 | ac_status=$? |
|
|
5108 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5109 | rm -f conftest.er1 |
|
|
5110 | cat conftest.err >&5 |
|
|
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5112 | (exit $ac_status); } >/dev/null; then |
|
|
5113 | if test -s conftest.err; then |
|
|
5114 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5115 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5116 | else |
|
|
5117 | ac_cpp_err= |
|
|
5118 | fi |
|
|
5119 | else |
|
|
5120 | ac_cpp_err=yes |
|
|
5121 | fi |
|
|
5122 | if test -z "$ac_cpp_err"; then |
|
|
5123 | # Broken: success on invalid input. |
|
|
5124 | continue |
|
|
5125 | else |
|
|
5126 | echo "$as_me: failed program was:" >&5 |
|
|
5127 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5128 | |
|
|
5129 | # Passes both tests. |
|
|
5130 | ac_preproc_ok=: |
|
|
5131 | break |
|
|
5132 | fi |
|
|
5133 | rm -f conftest.err conftest.$ac_ext |
|
|
5134 | |
|
|
5135 | done |
|
|
5136 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5137 | rm -f conftest.err conftest.$ac_ext |
|
|
5138 | if $ac_preproc_ok; then |
|
|
5139 | : |
|
|
5140 | else |
|
|
5141 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5142 | See \`config.log' for more details." >&5 |
|
|
5143 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5144 | See \`config.log' for more details." >&2;} |
|
|
5145 | { (exit 1); exit 1; }; } |
|
|
5146 | fi |
|
|
5147 | |
|
|
5148 | ac_ext=cc |
|
|
5149 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5150 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5151 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5152 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5153 | |
|
|
5154 | |
5117 | |
5155 | |
5118 | if test "x$ac_path_x_has_been_run" != xyes; then |
5156 | if test "x$ac_path_x_has_been_run" != xyes; then |
5119 | echo "$as_me:$LINENO: checking for X" >&5 |
5157 | echo "$as_me:$LINENO: checking for X" >&5 |
5120 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
5158 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
5121 | |
5159 | |
… | |
… | |
7173 | |
7211 | |
7174 | |
7212 | |
7175 | |
7213 | |
7176 | |
7214 | |
7177 | |
7215 | |
7178 | |
|
|
7179 | |
|
|
7180 | |
|
|
7181 | |
|
|
7182 | |
|
|
7183 | |
|
|
7184 | |
|
|
7185 | |
|
|
7186 | |
|
|
7187 | for ac_header in \ |
7216 | for ac_header in \ |
7188 | assert.h \ |
7217 | assert.h \ |
7189 | fcntl.h \ |
7218 | fcntl.h \ |
7190 | grp.h \ |
|
|
7191 | libc.h \ |
|
|
7192 | lastlog.h \ |
|
|
7193 | stdarg.h \ |
7219 | stdarg.h \ |
7194 | stdlib.h \ |
7220 | stdlib.h \ |
7195 | string.h \ |
7221 | string.h \ |
7196 | termios.h \ |
7222 | termios.h \ |
7197 | unistd.h \ |
7223 | unistd.h \ |
7198 | sys/byteorder.h \ |
7224 | sys/byteorder.h \ |
7199 | sys/ioctl.h \ |
7225 | sys/ioctl.h \ |
7200 | sys/select.h \ |
7226 | sys/select.h \ |
7201 | sys/sockio.h \ |
7227 | sys/sockio.h \ |
7202 | sys/strredir.h \ |
7228 | sys/strredir.h \ |
7203 | sys/stropts.h \ |
|
|
7204 | sys/time.h \ |
7229 | sys/time.h \ |
7205 | utmp.h \ |
7230 | stdint.h \ |
7206 | utmpx.h \ |
7231 | wchar.h \ |
7207 | stdint.h \ |
7232 | cwchar \ |
7208 | pty.h \ |
7233 | clocale \ |
7209 | util.h \ |
|
|
7210 | libutil.h \ |
|
|
7211 | wchar.h \ |
|
|
7212 | cwchar \ |
|
|
7213 | clocale \ |
|
|
7214 | |
7234 | |
7215 | do |
7235 | do |
7216 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7236 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7217 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
10052 | |
10072 | |
10053 | |
10073 | |
10054 | |
10074 | |
10055 | |
10075 | |
10056 | |
10076 | |
10057 | |
|
|
10058 | |
|
|
10059 | |
|
|
10060 | |
|
|
10061 | |
|
|
10062 | |
|
|
10063 | |
|
|
10064 | |
|
|
10065 | |
|
|
10066 | |
|
|
10067 | for ac_func in \ |
10077 | for ac_func in \ |
10068 | revoke \ |
|
|
10069 | unsetenv \ |
10078 | unsetenv \ |
10070 | setutent \ |
10079 | setutent \ |
10071 | seteuid \ |
10080 | seteuid \ |
10072 | setresuid \ |
10081 | setresuid \ |
10073 | setreuid \ |
10082 | setreuid \ |
10074 | _getpty \ |
|
|
10075 | getpt \ |
|
|
10076 | posix_openpt \ |
|
|
10077 | grantpt \ |
|
|
10078 | unlockpt \ |
|
|
10079 | isastream \ |
|
|
10080 | on_exit \ |
10083 | on_exit \ |
10081 | nanosleep \ |
10084 | nanosleep \ |
10082 | updwtmp \ |
|
|
10083 | updwtmpx \ |
|
|
10084 | ttyslot \ |
|
|
10085 | |
10085 | |
10086 | do |
10086 | do |
10087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10087 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
10178 | cat >>confdefs.h <<_ACEOF |
10178 | cat >>confdefs.h <<_ACEOF |
10179 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10179 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
10180 | _ACEOF |
10180 | _ACEOF |
10181 | |
10181 | |
10182 | fi |
10182 | fi |
|
|
10183 | done |
|
|
10184 | |
|
|
10185 | |
|
|
10186 | |
|
|
10187 | |
|
|
10188 | |
|
|
10189 | |
|
|
10190 | for ac_func in \ |
|
|
10191 | ttyslot \ |
|
|
10192 | updwtmp \ |
|
|
10193 | updwtmpx \ |
|
|
10194 | |
|
|
10195 | do |
|
|
10196 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
10197 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
10198 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
10199 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
10200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10201 | else |
|
|
10202 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10203 | /* confdefs.h. */ |
|
|
10204 | _ACEOF |
|
|
10205 | cat confdefs.h >>conftest.$ac_ext |
|
|
10206 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10207 | /* end confdefs.h. */ |
|
|
10208 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
10209 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
10210 | #define $ac_func innocuous_$ac_func |
|
|
10211 | |
|
|
10212 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
10213 | which can conflict with char $ac_func (); below. |
|
|
10214 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
10215 | <limits.h> exists even on freestanding compilers. */ |
|
|
10216 | |
|
|
10217 | #ifdef __STDC__ |
|
|
10218 | # include <limits.h> |
|
|
10219 | #else |
|
|
10220 | # include <assert.h> |
|
|
10221 | #endif |
|
|
10222 | |
|
|
10223 | #undef $ac_func |
|
|
10224 | |
|
|
10225 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
10226 | #ifdef __cplusplus |
|
|
10227 | extern "C" |
|
|
10228 | { |
|
|
10229 | #endif |
|
|
10230 | /* We use char because int might match the return type of a gcc2 |
|
|
10231 | builtin and then its argument prototype would still apply. */ |
|
|
10232 | char $ac_func (); |
|
|
10233 | /* The GNU C library defines this for functions which it implements |
|
|
10234 | to always fail with ENOSYS. Some functions are actually named |
|
|
10235 | something starting with __ and the normal name is an alias. */ |
|
|
10236 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
10237 | choke me |
|
|
10238 | #else |
|
|
10239 | char (*f) () = $ac_func; |
|
|
10240 | #endif |
|
|
10241 | #ifdef __cplusplus |
|
|
10242 | } |
|
|
10243 | #endif |
|
|
10244 | |
|
|
10245 | int |
|
|
10246 | main () |
|
|
10247 | { |
|
|
10248 | return f != $ac_func; |
|
|
10249 | ; |
|
|
10250 | return 0; |
|
|
10251 | } |
|
|
10252 | _ACEOF |
|
|
10253 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
10254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10255 | (eval $ac_link) 2>conftest.er1 |
|
|
10256 | ac_status=$? |
|
|
10257 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10258 | rm -f conftest.er1 |
|
|
10259 | cat conftest.err >&5 |
|
|
10260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10261 | (exit $ac_status); } && |
|
|
10262 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10264 | (eval $ac_try) 2>&5 |
|
|
10265 | ac_status=$? |
|
|
10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10267 | (exit $ac_status); }; } && |
|
|
10268 | { ac_try='test -s conftest$ac_exeext' |
|
|
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); }; }; then |
|
|
10274 | eval "$as_ac_var=yes" |
|
|
10275 | else |
|
|
10276 | echo "$as_me: failed program was:" >&5 |
|
|
10277 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10278 | |
|
|
10279 | eval "$as_ac_var=no" |
|
|
10280 | fi |
|
|
10281 | rm -f conftest.err conftest.$ac_objext \ |
|
|
10282 | conftest$ac_exeext conftest.$ac_ext |
|
|
10283 | fi |
|
|
10284 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
10285 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
10286 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
10287 | cat >>confdefs.h <<_ACEOF |
|
|
10288 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
10289 | _ACEOF |
|
|
10290 | |
|
|
10291 | fi |
|
|
10292 | done |
|
|
10293 | |
|
|
10294 | |
|
|
10295 | |
|
|
10296 | |
|
|
10297 | |
|
|
10298 | for ac_header in \ |
|
|
10299 | utmp.h \ |
|
|
10300 | utmpx.h \ |
|
|
10301 | lastlog.h \ |
|
|
10302 | |
|
|
10303 | do |
|
|
10304 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
10305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10306 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10307 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10310 | fi |
|
|
10311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10313 | else |
|
|
10314 | # Is the header compilable? |
|
|
10315 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
10316 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
10317 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10318 | /* confdefs.h. */ |
|
|
10319 | _ACEOF |
|
|
10320 | cat confdefs.h >>conftest.$ac_ext |
|
|
10321 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10322 | /* end confdefs.h. */ |
|
|
10323 | $ac_includes_default |
|
|
10324 | #include <$ac_header> |
|
|
10325 | _ACEOF |
|
|
10326 | rm -f conftest.$ac_objext |
|
|
10327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10328 | (eval $ac_compile) 2>conftest.er1 |
|
|
10329 | ac_status=$? |
|
|
10330 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10331 | rm -f conftest.er1 |
|
|
10332 | cat conftest.err >&5 |
|
|
10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10334 | (exit $ac_status); } && |
|
|
10335 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10337 | (eval $ac_try) 2>&5 |
|
|
10338 | ac_status=$? |
|
|
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10340 | (exit $ac_status); }; } && |
|
|
10341 | { ac_try='test -s conftest.$ac_objext' |
|
|
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); }; }; then |
|
|
10347 | ac_header_compiler=yes |
|
|
10348 | else |
|
|
10349 | echo "$as_me: failed program was:" >&5 |
|
|
10350 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10351 | |
|
|
10352 | ac_header_compiler=no |
|
|
10353 | fi |
|
|
10354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10355 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10356 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10357 | |
|
|
10358 | # Is the header present? |
|
|
10359 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
10360 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
10361 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10362 | /* confdefs.h. */ |
|
|
10363 | _ACEOF |
|
|
10364 | cat confdefs.h >>conftest.$ac_ext |
|
|
10365 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10366 | /* end confdefs.h. */ |
|
|
10367 | #include <$ac_header> |
|
|
10368 | _ACEOF |
|
|
10369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10371 | ac_status=$? |
|
|
10372 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10373 | rm -f conftest.er1 |
|
|
10374 | cat conftest.err >&5 |
|
|
10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10376 | (exit $ac_status); } >/dev/null; then |
|
|
10377 | if test -s conftest.err; then |
|
|
10378 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10379 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10380 | else |
|
|
10381 | ac_cpp_err= |
|
|
10382 | fi |
|
|
10383 | else |
|
|
10384 | ac_cpp_err=yes |
|
|
10385 | fi |
|
|
10386 | if test -z "$ac_cpp_err"; then |
|
|
10387 | ac_header_preproc=yes |
|
|
10388 | else |
|
|
10389 | echo "$as_me: failed program was:" >&5 |
|
|
10390 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10391 | |
|
|
10392 | ac_header_preproc=no |
|
|
10393 | fi |
|
|
10394 | rm -f conftest.err conftest.$ac_ext |
|
|
10395 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10396 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10397 | |
|
|
10398 | # So? What about this header? |
|
|
10399 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10400 | yes:no: ) |
|
|
10401 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10402 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
10404 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
10405 | ac_header_preproc=yes |
|
|
10406 | ;; |
|
|
10407 | no:yes:* ) |
|
|
10408 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
10409 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
10410 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
10411 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
10412 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
10413 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
10414 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10415 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
10417 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
10418 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
10419 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
10420 | ( |
|
|
10421 | cat <<\_ASBOX |
|
|
10422 | ## ------------------------------------------ ## |
|
|
10423 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10424 | ## ------------------------------------------ ## |
|
|
10425 | _ASBOX |
|
|
10426 | ) | |
|
|
10427 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10428 | ;; |
|
|
10429 | esac |
|
|
10430 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
10431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
10432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
10433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10434 | else |
|
|
10435 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
10436 | fi |
|
|
10437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
10438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
10439 | |
|
|
10440 | fi |
|
|
10441 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
10442 | cat >>confdefs.h <<_ACEOF |
|
|
10443 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
10444 | _ACEOF |
|
|
10445 | |
|
|
10446 | fi |
|
|
10447 | |
10183 | done |
10448 | done |
10184 | |
10449 | |
10185 | |
10450 | |
10186 | |
10451 | |
10187 | if test "${ac_cv_header_utmp_h+set}" = set; then |
10452 | if test "${ac_cv_header_utmp_h+set}" = set; then |
… | |
… | |
10321 | |
10586 | |
10322 | fi |
10587 | fi |
10323 | if test $ac_cv_header_utmp_h = yes; then |
10588 | if test $ac_cv_header_utmp_h = yes; then |
10324 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10589 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
10325 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
10590 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
10326 | if test "${rxvt_cv_struct_utmp+set}" = set; then |
10591 | if test "${struct_utmp+set}" = set; then |
10327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10328 | else |
10593 | else |
10329 | cat >conftest.$ac_ext <<_ACEOF |
10594 | cat >conftest.$ac_ext <<_ACEOF |
10330 | /* confdefs.h. */ |
10595 | /* confdefs.h. */ |
10331 | _ACEOF |
10596 | _ACEOF |
10332 | cat confdefs.h >>conftest.$ac_ext |
10597 | cat confdefs.h >>conftest.$ac_ext |
10333 | cat >>conftest.$ac_ext <<_ACEOF |
10598 | cat >>conftest.$ac_ext <<_ACEOF |
10334 | /* end confdefs.h. */ |
10599 | /* end confdefs.h. */ |
10335 | #include <sys/types.h> |
10600 | #include <sys/types.h> |
10336 | #include <stdint.h> |
|
|
10337 | #include <utmp.h> |
10601 | #include <utmp.h> |
10338 | int |
10602 | int |
10339 | main () |
10603 | main () |
10340 | { |
10604 | { |
10341 | struct utmp ut; |
10605 | struct utmp ut; |
… | |
… | |
10362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10363 | (eval $ac_try) 2>&5 |
10627 | (eval $ac_try) 2>&5 |
10364 | ac_status=$? |
10628 | ac_status=$? |
10365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10366 | (exit $ac_status); }; }; then |
10630 | (exit $ac_status); }; }; then |
10367 | rxvt_cv_struct_utmp=yes |
10631 | struct_utmp=yes |
10368 | else |
10632 | else |
10369 | echo "$as_me: failed program was:" >&5 |
10633 | echo "$as_me: failed program was:" >&5 |
10370 | sed 's/^/| /' conftest.$ac_ext >&5 |
10634 | sed 's/^/| /' conftest.$ac_ext >&5 |
10371 | |
10635 | |
10372 | rxvt_cv_struct_utmp=no |
10636 | struct_utmp=no |
10373 | fi |
10637 | fi |
10374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10375 | fi |
10639 | fi |
10376 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 |
10640 | echo "$as_me:$LINENO: result: $struct_utmp" >&5 |
10377 | echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 |
10641 | echo "${ECHO_T}$struct_utmp" >&6 |
10378 | if test x$rxvt_cv_struct_utmp = xyes; then |
10642 | if test x$struct_utmp = xyes; then |
10379 | |
10643 | |
10380 | cat >>confdefs.h <<\_ACEOF |
10644 | cat >>confdefs.h <<\_ACEOF |
10381 | #define HAVE_STRUCT_UTMP 1 |
10645 | #define HAVE_STRUCT_UTMP 1 |
10382 | _ACEOF |
10646 | _ACEOF |
10383 | |
10647 | |
10384 | fi |
10648 | fi |
10385 | |
10649 | |
10386 | |
10650 | |
10387 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
10651 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
10388 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
10652 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
10389 | if test "${rxvt_cv_struct_utmp_host+set}" = set; then |
10653 | if test "${struct_utmp_host+set}" = set; then |
10390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10391 | else |
10655 | else |
10392 | cat >conftest.$ac_ext <<_ACEOF |
10656 | cat >conftest.$ac_ext <<_ACEOF |
10393 | /* confdefs.h. */ |
10657 | /* confdefs.h. */ |
10394 | _ACEOF |
10658 | _ACEOF |
… | |
… | |
10424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10425 | (eval $ac_try) 2>&5 |
10689 | (eval $ac_try) 2>&5 |
10426 | ac_status=$? |
10690 | ac_status=$? |
10427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10428 | (exit $ac_status); }; }; then |
10692 | (exit $ac_status); }; }; then |
10429 | rxvt_cv_struct_utmp_host=yes |
10693 | struct_utmp_host=yes |
10430 | else |
10694 | else |
10431 | echo "$as_me: failed program was:" >&5 |
10695 | echo "$as_me: failed program was:" >&5 |
10432 | sed 's/^/| /' conftest.$ac_ext >&5 |
10696 | sed 's/^/| /' conftest.$ac_ext >&5 |
10433 | |
10697 | |
10434 | rxvt_cv_struct_utmp_host=no |
10698 | struct_utmp_host=no |
10435 | fi |
10699 | fi |
10436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10437 | fi |
10701 | fi |
10438 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 |
10702 | echo "$as_me:$LINENO: result: $struct_utmp_host" >&5 |
10439 | echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 |
10703 | echo "${ECHO_T}$struct_utmp_host" >&6 |
10440 | if test x$rxvt_cv_struct_utmp_host = xyes; then |
10704 | if test x$struct_utmp_host = xyes; then |
10441 | |
10705 | |
10442 | cat >>confdefs.h <<\_ACEOF |
10706 | cat >>confdefs.h <<\_ACEOF |
10443 | #define HAVE_UTMP_HOST 1 |
10707 | #define HAVE_UTMP_HOST 1 |
10444 | _ACEOF |
10708 | _ACEOF |
10445 | |
10709 | |
10446 | fi |
10710 | fi |
10447 | |
10711 | |
10448 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
10712 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
10449 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
10713 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
10450 | if test "${rxvt_cv_struct_utmp_pid+set}" = set; then |
10714 | if test "${struct_utmp_pid+set}" = set; then |
10451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10452 | else |
10716 | else |
10453 | cat >conftest.$ac_ext <<_ACEOF |
10717 | cat >conftest.$ac_ext <<_ACEOF |
10454 | /* confdefs.h. */ |
10718 | /* confdefs.h. */ |
10455 | _ACEOF |
10719 | _ACEOF |
… | |
… | |
10485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10486 | (eval $ac_try) 2>&5 |
10750 | (eval $ac_try) 2>&5 |
10487 | ac_status=$? |
10751 | ac_status=$? |
10488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10489 | (exit $ac_status); }; }; then |
10753 | (exit $ac_status); }; }; then |
10490 | rxvt_cv_struct_utmp_pid=yes |
10754 | struct_utmp_pid=yes |
10491 | else |
10755 | else |
10492 | echo "$as_me: failed program was:" >&5 |
10756 | echo "$as_me: failed program was:" >&5 |
10493 | sed 's/^/| /' conftest.$ac_ext >&5 |
10757 | sed 's/^/| /' conftest.$ac_ext >&5 |
10494 | |
10758 | |
10495 | rxvt_cv_struct_utmp_pid=no |
10759 | struct_utmp_pid=no |
10496 | fi |
10760 | fi |
10497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10498 | fi |
10762 | fi |
10499 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 |
10763 | echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5 |
10500 | echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 |
10764 | echo "${ECHO_T}$struct_utmp_pid" >&6 |
10501 | if test x$rxvt_cv_struct_utmp_pid = xyes; then |
10765 | if test x$struct_utmp_pid = xyes; then |
10502 | |
10766 | |
10503 | cat >>confdefs.h <<\_ACEOF |
10767 | cat >>confdefs.h <<\_ACEOF |
10504 | #define HAVE_UTMP_PID 1 |
10768 | #define HAVE_UTMP_PID 1 |
10505 | _ACEOF |
10769 | _ACEOF |
10506 | |
10770 | |
… | |
… | |
10647 | |
10911 | |
10648 | fi |
10912 | fi |
10649 | if test $ac_cv_header_utmpx_h = yes; then |
10913 | if test $ac_cv_header_utmpx_h = yes; then |
10650 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10914 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
10651 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
10915 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
10652 | if test "${rxvt_cv_struct_utmpx+set}" = set; then |
10916 | if test "${struct_utmpx+set}" = set; then |
10653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10654 | else |
10918 | else |
10655 | cat >conftest.$ac_ext <<_ACEOF |
10919 | cat >conftest.$ac_ext <<_ACEOF |
10656 | /* confdefs.h. */ |
10920 | /* confdefs.h. */ |
10657 | _ACEOF |
10921 | _ACEOF |
… | |
… | |
10687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10688 | (eval $ac_try) 2>&5 |
10952 | (eval $ac_try) 2>&5 |
10689 | ac_status=$? |
10953 | ac_status=$? |
10690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10691 | (exit $ac_status); }; }; then |
10955 | (exit $ac_status); }; }; then |
10692 | rxvt_cv_struct_utmpx=yes |
10956 | struct_utmpx=yes |
10693 | else |
10957 | else |
10694 | echo "$as_me: failed program was:" >&5 |
10958 | echo "$as_me: failed program was:" >&5 |
10695 | sed 's/^/| /' conftest.$ac_ext >&5 |
10959 | sed 's/^/| /' conftest.$ac_ext >&5 |
10696 | |
10960 | |
10697 | rxvt_cv_struct_utmpx=no |
10961 | struct_utmpx=no |
10698 | fi |
10962 | fi |
10699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10700 | fi |
10964 | fi |
10701 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 |
10965 | echo "$as_me:$LINENO: result: $struct_utmpx" >&5 |
10702 | echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 |
10966 | echo "${ECHO_T}$struct_utmpx" >&6 |
10703 | if test x$rxvt_cv_struct_utmpx = xyes; then |
10967 | if test x$struct_utmpx = xyes; then |
10704 | |
10968 | |
10705 | cat >>confdefs.h <<\_ACEOF |
10969 | cat >>confdefs.h <<\_ACEOF |
10706 | #define HAVE_STRUCT_UTMPX 1 |
10970 | #define HAVE_STRUCT_UTMPX 1 |
10707 | _ACEOF |
10971 | _ACEOF |
10708 | |
10972 | |
10709 | fi |
10973 | fi |
10710 | |
10974 | |
10711 | |
10975 | |
10712 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
10976 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
10713 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
10977 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
10714 | if test "${rxvt_cv_struct_utmpx_host+set}" = set; then |
10978 | if test "${struct_utmpx_host+set}" = set; then |
10715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10716 | else |
10980 | else |
10717 | cat >conftest.$ac_ext <<_ACEOF |
10981 | cat >conftest.$ac_ext <<_ACEOF |
10718 | /* confdefs.h. */ |
10982 | /* confdefs.h. */ |
10719 | _ACEOF |
10983 | _ACEOF |
… | |
… | |
10749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10750 | (eval $ac_try) 2>&5 |
11014 | (eval $ac_try) 2>&5 |
10751 | ac_status=$? |
11015 | ac_status=$? |
10752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10753 | (exit $ac_status); }; }; then |
11017 | (exit $ac_status); }; }; then |
10754 | rxvt_cv_struct_utmpx_host=yes |
11018 | struct_utmpx_host=yes |
10755 | else |
11019 | else |
10756 | echo "$as_me: failed program was:" >&5 |
11020 | echo "$as_me: failed program was:" >&5 |
10757 | sed 's/^/| /' conftest.$ac_ext >&5 |
11021 | sed 's/^/| /' conftest.$ac_ext >&5 |
10758 | |
11022 | |
10759 | rxvt_cv_struct_utmpx_host=no |
11023 | struct_utmpx_host=no |
10760 | fi |
11024 | fi |
10761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10762 | fi |
11026 | fi |
10763 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 |
11027 | echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5 |
10764 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 |
11028 | echo "${ECHO_T}$struct_utmpx_host" >&6 |
10765 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
11029 | if test x$struct_utmpx_host = xyes; then |
10766 | |
11030 | |
10767 | cat >>confdefs.h <<\_ACEOF |
11031 | cat >>confdefs.h <<\_ACEOF |
10768 | #define HAVE_UTMPX_HOST 1 |
11032 | #define HAVE_UTMPX_HOST 1 |
10769 | _ACEOF |
11033 | _ACEOF |
10770 | |
11034 | |
10771 | fi |
11035 | fi |
10772 | |
11036 | |
10773 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
11037 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
10774 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
11038 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
10775 | if test "${rxvt_cv_struct_utmpx_session+set}" = set; then |
11039 | if test "${struct_utmpx_session+set}" = set; then |
10776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10777 | else |
11041 | else |
10778 | cat >conftest.$ac_ext <<_ACEOF |
11042 | cat >conftest.$ac_ext <<_ACEOF |
10779 | /* confdefs.h. */ |
11043 | /* confdefs.h. */ |
10780 | _ACEOF |
11044 | _ACEOF |
… | |
… | |
10810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10811 | (eval $ac_try) 2>&5 |
11075 | (eval $ac_try) 2>&5 |
10812 | ac_status=$? |
11076 | ac_status=$? |
10813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10814 | (exit $ac_status); }; }; then |
11078 | (exit $ac_status); }; }; then |
10815 | rxvt_cv_struct_utmpx_session=yes |
11079 | struct_utmpx_session=yes |
10816 | else |
11080 | else |
10817 | echo "$as_me: failed program was:" >&5 |
11081 | echo "$as_me: failed program was:" >&5 |
10818 | sed 's/^/| /' conftest.$ac_ext >&5 |
11082 | sed 's/^/| /' conftest.$ac_ext >&5 |
10819 | |
11083 | |
10820 | rxvt_cv_struct_utmpx_session=no |
11084 | struct_utmpx_session=no |
10821 | fi |
11085 | fi |
10822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10823 | fi |
11087 | fi |
10824 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 |
11088 | echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5 |
10825 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 |
11089 | echo "${ECHO_T}$struct_utmpx_session" >&6 |
10826 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
11090 | if test x$struct_utmpx_session = xyes; then |
10827 | |
11091 | |
10828 | cat >>confdefs.h <<\_ACEOF |
11092 | cat >>confdefs.h <<\_ACEOF |
10829 | #define HAVE_UTMPX_SESSION 1 |
11093 | #define HAVE_UTMPX_SESSION 1 |
10830 | _ACEOF |
11094 | _ACEOF |
10831 | |
11095 | |
… | |
… | |
10834 | fi |
11098 | fi |
10835 | |
11099 | |
10836 | |
11100 | |
10837 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
11101 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10838 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
11102 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
10839 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
11103 | if test "${struct_lastlog+set}" = set; then |
10840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10841 | else |
11105 | else |
10842 | cat >conftest.$ac_ext <<_ACEOF |
11106 | cat >conftest.$ac_ext <<_ACEOF |
10843 | /* confdefs.h. */ |
11107 | /* confdefs.h. */ |
10844 | _ACEOF |
11108 | _ACEOF |
… | |
… | |
10878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10879 | (eval $ac_try) 2>&5 |
11143 | (eval $ac_try) 2>&5 |
10880 | ac_status=$? |
11144 | ac_status=$? |
10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10882 | (exit $ac_status); }; }; then |
11146 | (exit $ac_status); }; }; then |
10883 | rxvt_cv_struct_lastlog=yes |
11147 | struct_lastlog=yes |
10884 | else |
11148 | else |
10885 | echo "$as_me: failed program was:" >&5 |
11149 | echo "$as_me: failed program was:" >&5 |
10886 | sed 's/^/| /' conftest.$ac_ext >&5 |
11150 | sed 's/^/| /' conftest.$ac_ext >&5 |
10887 | |
11151 | |
10888 | rxvt_cv_struct_lastlog=no |
11152 | struct_lastlog=no |
10889 | fi |
11153 | fi |
10890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10891 | fi |
11155 | fi |
10892 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 |
11156 | echo "$as_me:$LINENO: result: $struct_lastlog" >&5 |
10893 | echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 |
11157 | echo "${ECHO_T}$struct_lastlog" >&6 |
10894 | if test x$rxvt_cv_struct_lastlog = xyes; then |
11158 | if test x$struct_lastlog = xyes; then |
10895 | |
11159 | |
10896 | cat >>confdefs.h <<\_ACEOF |
11160 | cat >>confdefs.h <<\_ACEOF |
10897 | #define HAVE_STRUCT_LASTLOG 1 |
11161 | #define HAVE_STRUCT_LASTLOG 1 |
10898 | _ACEOF |
11162 | _ACEOF |
10899 | |
11163 | |
10900 | fi |
11164 | fi |
10901 | |
11165 | |
10902 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
11166 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
10903 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
11167 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
10904 | if test "${rxvt_cv_struct_lastlogx+set}" = set; then |
11168 | if test "${struct_lastlogx+set}" = set; then |
10905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10906 | else |
11170 | else |
10907 | cat >conftest.$ac_ext <<_ACEOF |
11171 | cat >conftest.$ac_ext <<_ACEOF |
10908 | /* confdefs.h. */ |
11172 | /* confdefs.h. */ |
10909 | _ACEOF |
11173 | _ACEOF |
… | |
… | |
10943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10944 | (eval $ac_try) 2>&5 |
11208 | (eval $ac_try) 2>&5 |
10945 | ac_status=$? |
11209 | ac_status=$? |
10946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10947 | (exit $ac_status); }; }; then |
11211 | (exit $ac_status); }; }; then |
10948 | rxvt_cv_struct_lastlogx=yes |
11212 | struct_lastlogx=yes |
10949 | else |
11213 | else |
10950 | echo "$as_me: failed program was:" >&5 |
11214 | echo "$as_me: failed program was:" >&5 |
10951 | sed 's/^/| /' conftest.$ac_ext >&5 |
11215 | sed 's/^/| /' conftest.$ac_ext >&5 |
10952 | |
11216 | |
10953 | rxvt_cv_struct_lastlogx=no |
11217 | struct_lastlogx=no |
10954 | fi |
11218 | fi |
10955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10956 | fi |
11220 | fi |
10957 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 |
11221 | echo "$as_me:$LINENO: result: $struct_lastlogx" >&5 |
10958 | echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 |
11222 | echo "${ECHO_T}$struct_lastlogx" >&6 |
10959 | if test x$rxvt_cv_struct_lastlogx = xyes; then |
11223 | if test x$struct_lastlogx = xyes; then |
10960 | |
11224 | |
10961 | cat >>confdefs.h <<\_ACEOF |
11225 | cat >>confdefs.h <<\_ACEOF |
10962 | #define HAVE_STRUCT_LASTLOGX 1 |
11226 | #define HAVE_STRUCT_LASTLOGX 1 |
10963 | _ACEOF |
11227 | _ACEOF |
10964 | |
11228 | |
10965 | fi |
11229 | fi |
10966 | |
11230 | |
10967 | |
11231 | |
10968 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
11232 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
10969 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
11233 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
10970 | if test "${rxvt_cv_path_utmp+set}" = set; then |
11234 | if test "${path_utmp+set}" = set; then |
10971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10972 | else |
11236 | else |
10973 | if test "$cross_compiling" = yes; then |
11237 | if test "$cross_compiling" = yes; then |
10974 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 |
11238 | { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5 |
10975 | echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} |
11239 | echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
10976 | else |
11240 | else |
10977 | cat >conftest.$ac_ext <<_ACEOF |
11241 | cat >conftest.$ac_ext <<_ACEOF |
10978 | /* confdefs.h. */ |
11242 | /* confdefs.h. */ |
10979 | _ACEOF |
11243 | _ACEOF |
10980 | cat confdefs.h >>conftest.$ac_ext |
11244 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
11016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11017 | (eval $ac_try) 2>&5 |
11281 | (eval $ac_try) 2>&5 |
11018 | ac_status=$? |
11282 | ac_status=$? |
11019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11020 | (exit $ac_status); }; }; then |
11284 | (exit $ac_status); }; }; then |
11021 | rxvt_cv_path_utmp=`cat conftestval` |
11285 | path_utmp=`cat conftestval` |
11022 | else |
11286 | else |
11023 | echo "$as_me: program exited with status $ac_status" >&5 |
11287 | echo "$as_me: program exited with status $ac_status" >&5 |
11024 | echo "$as_me: failed program was:" >&5 |
11288 | echo "$as_me: failed program was:" >&5 |
11025 | sed 's/^/| /' conftest.$ac_ext >&5 |
11289 | sed 's/^/| /' conftest.$ac_ext >&5 |
11026 | |
11290 | |
11027 | ( exit $ac_status ) |
11291 | ( exit $ac_status ) |
11028 | rxvt_cv_path_utmp= |
11292 | path_utmp= |
11029 | fi |
11293 | fi |
11030 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11294 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11031 | fi |
11295 | fi |
11032 | fi |
11296 | fi |
11033 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 |
11297 | echo "$as_me:$LINENO: result: $path_utmp" >&5 |
11034 | echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 |
11298 | echo "${ECHO_T}$path_utmp" >&6 |
11035 | if test x$rxvt_cv_path_utmp != x; then |
11299 | if test x$path_utmp != x; then |
11036 | |
11300 | |
11037 | cat >>confdefs.h <<_ACEOF |
11301 | cat >>confdefs.h <<_ACEOF |
11038 | #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" |
11302 | #define UTMP_FILE "$path_utmp" |
11039 | _ACEOF |
11303 | _ACEOF |
11040 | |
11304 | |
11041 | fi |
11305 | fi |
11042 | |
11306 | |
11043 | |
11307 | |
11044 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
11308 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
11045 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
11309 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
11046 | if test "${rxvt_cv_path_utmpx+set}" = set; then |
11310 | if test "${path_utmpx+set}" = set; then |
11047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11048 | else |
11312 | else |
11049 | if test "$cross_compiling" = yes; then |
11313 | if test "$cross_compiling" = yes; then |
11050 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 |
11314 | { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 |
11051 | echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} |
11315 | echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} |
11052 | else |
11316 | else |
11053 | cat >conftest.$ac_ext <<_ACEOF |
11317 | cat >conftest.$ac_ext <<_ACEOF |
11054 | /* confdefs.h. */ |
11318 | /* confdefs.h. */ |
11055 | _ACEOF |
11319 | _ACEOF |
11056 | cat confdefs.h >>conftest.$ac_ext |
11320 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
11102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11103 | (eval $ac_try) 2>&5 |
11367 | (eval $ac_try) 2>&5 |
11104 | ac_status=$? |
11368 | ac_status=$? |
11105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11106 | (exit $ac_status); }; }; then |
11370 | (exit $ac_status); }; }; then |
11107 | rxvt_cv_path_utmpx=`cat conftestval` |
11371 | path_utmpx=`cat conftestval` |
11108 | else |
11372 | else |
11109 | echo "$as_me: program exited with status $ac_status" >&5 |
11373 | echo "$as_me: program exited with status $ac_status" >&5 |
11110 | echo "$as_me: failed program was:" >&5 |
11374 | echo "$as_me: failed program was:" >&5 |
11111 | sed 's/^/| /' conftest.$ac_ext >&5 |
11375 | sed 's/^/| /' conftest.$ac_ext >&5 |
11112 | |
11376 | |
11113 | ( exit $ac_status ) |
11377 | ( exit $ac_status ) |
11114 | rxvt_cv_path_utmpx= |
11378 | path_utmpx= |
11115 | fi |
11379 | fi |
11116 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11380 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11117 | fi |
11381 | fi |
11118 | fi |
11382 | fi |
11119 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 |
11383 | echo "$as_me:$LINENO: result: $path_utmpx" >&5 |
11120 | echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 |
11384 | echo "${ECHO_T}$path_utmpx" >&6 |
11121 | if test x$rxvt_cv_path_utmpx != x; then |
11385 | if test x$path_utmpx != x; then |
11122 | |
11386 | |
11123 | cat >>confdefs.h <<_ACEOF |
11387 | cat >>confdefs.h <<_ACEOF |
11124 | #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" |
11388 | #define UTMPX_FILE "$path_utmpx" |
11125 | _ACEOF |
11389 | _ACEOF |
11126 | |
11390 | |
11127 | fi |
11391 | fi |
11128 | |
11392 | |
11129 | |
11393 | |
11130 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
11394 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
11131 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
11395 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
11132 | if test "${rxvt_cv_path_wtmp+set}" = set; then |
11396 | if test "${path_wtmp+set}" = set; then |
11133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11134 | else |
11398 | else |
11135 | if test "$cross_compiling" = yes; then |
11399 | if test "$cross_compiling" = yes; then |
11136 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 |
11400 | { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 |
11137 | echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} |
11401 | echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
11138 | else |
11402 | else |
11139 | cat >conftest.$ac_ext <<_ACEOF |
11403 | cat >conftest.$ac_ext <<_ACEOF |
11140 | /* confdefs.h. */ |
11404 | /* confdefs.h. */ |
11141 | _ACEOF |
11405 | _ACEOF |
11142 | cat confdefs.h >>conftest.$ac_ext |
11406 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
11180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11181 | (eval $ac_try) 2>&5 |
11445 | (eval $ac_try) 2>&5 |
11182 | ac_status=$? |
11446 | ac_status=$? |
11183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11184 | (exit $ac_status); }; }; then |
11448 | (exit $ac_status); }; }; then |
11185 | rxvt_cv_path_wtmp=`cat conftestval` |
11449 | path_wtmp=`cat conftestval` |
11186 | else |
11450 | else |
11187 | echo "$as_me: program exited with status $ac_status" >&5 |
11451 | echo "$as_me: program exited with status $ac_status" >&5 |
11188 | echo "$as_me: failed program was:" >&5 |
11452 | echo "$as_me: failed program was:" >&5 |
11189 | sed 's/^/| /' conftest.$ac_ext >&5 |
11453 | sed 's/^/| /' conftest.$ac_ext >&5 |
11190 | |
11454 | |
11191 | ( exit $ac_status ) |
11455 | ( exit $ac_status ) |
11192 | rxvt_cv_path_wtmp= |
11456 | path_wtmp= |
11193 | fi |
11457 | fi |
11194 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11458 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11195 | fi |
11459 | fi |
11196 | fi |
11460 | fi |
11197 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 |
11461 | echo "$as_me:$LINENO: result: $path_wtmp" >&5 |
11198 | echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 |
11462 | echo "${ECHO_T}$path_wtmp" >&6 |
11199 | if test x$rxvt_cv_path_wtmp != x; then |
11463 | if test x$path_wtmp != x; then |
11200 | |
11464 | |
11201 | cat >>confdefs.h <<_ACEOF |
11465 | cat >>confdefs.h <<_ACEOF |
11202 | #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" |
11466 | #define WTMP_FILE "$path_wtmp" |
11203 | _ACEOF |
11467 | _ACEOF |
11204 | |
11468 | |
11205 | fi |
11469 | fi |
11206 | |
11470 | |
11207 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
11471 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
11208 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
11472 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
11209 | if test "${rxvt_cv_path_wtmpx+set}" = set; then |
11473 | if test "${path_wtmpx+set}" = set; then |
11210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11211 | else |
11475 | else |
11212 | if test "$cross_compiling" = yes; then |
11476 | if test "$cross_compiling" = yes; then |
11213 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 |
11477 | { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
11214 | echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} |
11478 | echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
11215 | else |
11479 | else |
11216 | cat >conftest.$ac_ext <<_ACEOF |
11480 | cat >conftest.$ac_ext <<_ACEOF |
11217 | /* confdefs.h. */ |
11481 | /* confdefs.h. */ |
11218 | _ACEOF |
11482 | _ACEOF |
11219 | cat confdefs.h >>conftest.$ac_ext |
11483 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
11256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11257 | (eval $ac_try) 2>&5 |
11521 | (eval $ac_try) 2>&5 |
11258 | ac_status=$? |
11522 | ac_status=$? |
11259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11260 | (exit $ac_status); }; }; then |
11524 | (exit $ac_status); }; }; then |
11261 | rxvt_cv_path_wtmpx=`cat conftestval` |
11525 | path_wtmpx=`cat conftestval` |
11262 | else |
11526 | else |
11263 | echo "$as_me: program exited with status $ac_status" >&5 |
11527 | echo "$as_me: program exited with status $ac_status" >&5 |
11264 | echo "$as_me: failed program was:" >&5 |
11528 | echo "$as_me: failed program was:" >&5 |
11265 | sed 's/^/| /' conftest.$ac_ext >&5 |
11529 | sed 's/^/| /' conftest.$ac_ext >&5 |
11266 | |
11530 | |
11267 | ( exit $ac_status ) |
11531 | ( exit $ac_status ) |
11268 | rxvt_cv_path_wtmpx= |
11532 | path_wtmpx= |
11269 | fi |
11533 | fi |
11270 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11534 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11271 | fi |
11535 | fi |
11272 | fi |
11536 | fi |
11273 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 |
11537 | echo "$as_me:$LINENO: result: $path_wtmpx" >&5 |
11274 | echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 |
11538 | echo "${ECHO_T}$path_wtmpx" >&6 |
11275 | if test x$rxvt_cv_path_wtmpx != x; then |
11539 | if test x$path_wtmpx != x; then |
11276 | |
11540 | |
11277 | cat >>confdefs.h <<_ACEOF |
11541 | cat >>confdefs.h <<_ACEOF |
11278 | #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" |
11542 | #define WTMPX_FILE "$path_wtmpx" |
11279 | _ACEOF |
11543 | _ACEOF |
11280 | |
11544 | |
11281 | fi |
11545 | fi |
11282 | |
11546 | |
11283 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
11547 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
11284 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
11548 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
11285 | if test "${rxvt_cv_path_lastlog+set}" = set; then |
11549 | if test "${path_lastlog+set}" = set; then |
11286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11287 | else |
11551 | else |
11288 | if test "$cross_compiling" = yes; then |
11552 | if test "$cross_compiling" = yes; then |
11289 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 |
11553 | { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
11290 | echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} |
11554 | echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
11291 | else |
11555 | else |
11292 | cat >conftest.$ac_ext <<_ACEOF |
11556 | cat >conftest.$ac_ext <<_ACEOF |
11293 | /* confdefs.h. */ |
11557 | /* confdefs.h. */ |
11294 | _ACEOF |
11558 | _ACEOF |
11295 | cat confdefs.h >>conftest.$ac_ext |
11559 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
11337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11338 | (eval $ac_try) 2>&5 |
11602 | (eval $ac_try) 2>&5 |
11339 | ac_status=$? |
11603 | ac_status=$? |
11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11341 | (exit $ac_status); }; }; then |
11605 | (exit $ac_status); }; }; then |
11342 | rxvt_cv_path_lastlog=`cat conftestval` |
11606 | path_lastlog=`cat conftestval` |
11343 | else |
11607 | else |
11344 | echo "$as_me: program exited with status $ac_status" >&5 |
11608 | echo "$as_me: program exited with status $ac_status" >&5 |
11345 | echo "$as_me: failed program was:" >&5 |
11609 | echo "$as_me: failed program was:" >&5 |
11346 | sed 's/^/| /' conftest.$ac_ext >&5 |
11610 | sed 's/^/| /' conftest.$ac_ext >&5 |
11347 | |
11611 | |
11348 | ( exit $ac_status ) |
11612 | ( exit $ac_status ) |
11349 | rxvt_cv_path_lastlog= |
11613 | path_lastlog= |
11350 | fi |
11614 | fi |
11351 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11615 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11352 | fi |
11616 | fi |
11353 | fi |
11617 | fi |
11354 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 |
11618 | echo "$as_me:$LINENO: result: $path_lastlog" >&5 |
11355 | echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 |
11619 | echo "${ECHO_T}$path_lastlog" >&6 |
11356 | if test x$rxvt_cv_path_lastlog != x; then |
11620 | if test x$path_lastlog != x; then |
11357 | |
11621 | |
11358 | cat >>confdefs.h <<_ACEOF |
11622 | cat >>confdefs.h <<_ACEOF |
11359 | #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" |
11623 | #define LASTLOG_FILE "$path_lastlog" |
11360 | _ACEOF |
11624 | _ACEOF |
11361 | |
11625 | |
11362 | if test -d "$rxvt_cv_path_lastlog"; then |
11626 | if test -d "$path_lastlog"; then |
11363 | |
11627 | |
11364 | cat >>confdefs.h <<\_ACEOF |
11628 | cat >>confdefs.h <<\_ACEOF |
11365 | #define LASTLOG_IS_DIR 1 |
11629 | #define LASTLOG_IS_DIR 1 |
11366 | _ACEOF |
11630 | _ACEOF |
11367 | |
11631 | |
11368 | fi |
11632 | fi |
11369 | fi |
11633 | fi |
11370 | |
11634 | |
11371 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11635 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
11372 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
11636 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
11373 | if test "${rxvt_cv_path_lastlogx+set}" = set; then |
11637 | if test "${path_lastlogx+set}" = set; then |
11374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11375 | else |
11639 | else |
11376 | if test "$cross_compiling" = yes; then |
11640 | if test "$cross_compiling" = yes; then |
11377 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 |
11641 | { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
11378 | echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} |
11642 | echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
11379 | else |
11643 | else |
11380 | cat >conftest.$ac_ext <<_ACEOF |
11644 | cat >conftest.$ac_ext <<_ACEOF |
11381 | /* confdefs.h. */ |
11645 | /* confdefs.h. */ |
11382 | _ACEOF |
11646 | _ACEOF |
11383 | cat confdefs.h >>conftest.$ac_ext |
11647 | cat confdefs.h >>conftest.$ac_ext |
… | |
… | |
11419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11420 | (eval $ac_try) 2>&5 |
11684 | (eval $ac_try) 2>&5 |
11421 | ac_status=$? |
11685 | ac_status=$? |
11422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11423 | (exit $ac_status); }; }; then |
11687 | (exit $ac_status); }; }; then |
11424 | rxvt_cv_path_lastlogx=`cat conftestval` |
11688 | path_lastlogx=`cat conftestval` |
11425 | else |
11689 | else |
11426 | echo "$as_me: program exited with status $ac_status" >&5 |
11690 | echo "$as_me: program exited with status $ac_status" >&5 |
11427 | echo "$as_me: failed program was:" >&5 |
11691 | echo "$as_me: failed program was:" >&5 |
11428 | sed 's/^/| /' conftest.$ac_ext >&5 |
11692 | sed 's/^/| /' conftest.$ac_ext >&5 |
11429 | |
11693 | |
11430 | ( exit $ac_status ) |
11694 | ( exit $ac_status ) |
11431 | rxvt_cv_path_lastlogx= |
11695 | path_lastlogx= |
11432 | fi |
11696 | fi |
11433 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11697 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11434 | fi |
11698 | fi |
11435 | fi |
11699 | fi |
11436 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 |
11700 | echo "$as_me:$LINENO: result: $path_lastlogx" >&5 |
11437 | echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 |
11701 | echo "${ECHO_T}$path_lastlogx" >&6 |
11438 | if test x$rxvt_cv_path_lastlogx != x; then |
11702 | if test x$path_lastlogx != x; then |
11439 | |
11703 | |
11440 | cat >>confdefs.h <<_ACEOF |
11704 | cat >>confdefs.h <<_ACEOF |
11441 | #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" |
11705 | #define LASTLOGX_FILE "$path_lastlogx" |
11442 | _ACEOF |
11706 | _ACEOF |
11443 | |
11707 | |
11444 | fi |
11708 | fi |
|
|
11709 | |
11445 | |
11710 | |
11446 | |
11711 | |
11447 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11712 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11448 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11713 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11449 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
11714 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
… | |
… | |
11716 | #define HAVE_NL_LANGINFO 1 |
11981 | #define HAVE_NL_LANGINFO 1 |
11717 | _ACEOF |
11982 | _ACEOF |
11718 | |
11983 | |
11719 | fi |
11984 | fi |
11720 | |
11985 | |
|
|
11986 | |
11721 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
11987 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
11722 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
11988 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
11723 | if test "${rxvt_can_pass_fds+set}" = set; then |
11989 | if test "${can_pass_fds+set}" = set; then |
11724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11725 | else |
11991 | else |
11726 | cat >conftest.$ac_ext <<_ACEOF |
11992 | cat >conftest.$ac_ext <<_ACEOF |
11727 | /* confdefs.h. */ |
11993 | /* confdefs.h. */ |
11728 | _ACEOF |
11994 | _ACEOF |
11729 | cat confdefs.h >>conftest.$ac_ext |
11995 | cat confdefs.h >>conftest.$ac_ext |
11730 | cat >>conftest.$ac_ext <<_ACEOF |
11996 | cat >>conftest.$ac_ext <<_ACEOF |
11731 | /* end confdefs.h. */ |
11997 | /* end confdefs.h. */ |
11732 | |
11998 | |
|
|
11999 | #include <cstddef> // broken bsds (is that redundant) need this |
11733 | #include <sys/types.h> |
12000 | #include <sys/types.h> |
11734 | #include <sys/socket.h> |
12001 | #include <sys/socket.h> |
|
|
12002 | #include <sys/uio.h> |
11735 | |
12003 | |
11736 | int |
12004 | int |
11737 | main () |
12005 | main () |
11738 | { |
12006 | { |
11739 | |
12007 | |
… | |
… | |
11784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11785 | (eval $ac_try) 2>&5 |
12053 | (eval $ac_try) 2>&5 |
11786 | ac_status=$? |
12054 | ac_status=$? |
11787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11788 | (exit $ac_status); }; }; then |
12056 | (exit $ac_status); }; }; then |
11789 | rxvt_can_pass_fds=yes |
12057 | can_pass_fds=yes |
11790 | else |
12058 | else |
11791 | echo "$as_me: failed program was:" >&5 |
12059 | echo "$as_me: failed program was:" >&5 |
11792 | sed 's/^/| /' conftest.$ac_ext >&5 |
12060 | sed 's/^/| /' conftest.$ac_ext >&5 |
11793 | |
12061 | |
11794 | rxvt_can_pass_fds=no |
12062 | can_pass_fds=no |
11795 | fi |
12063 | fi |
11796 | rm -f conftest.err conftest.$ac_objext \ |
12064 | rm -f conftest.err conftest.$ac_objext \ |
11797 | conftest$ac_exeext conftest.$ac_ext |
12065 | conftest$ac_exeext conftest.$ac_ext |
11798 | fi |
12066 | fi |
11799 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
12067 | echo "$as_me:$LINENO: result: $can_pass_fds" >&5 |
11800 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
12068 | echo "${ECHO_T}$can_pass_fds" >&6 |
11801 | if test x$rxvt_can_pass_fds = xyes; then |
12069 | if test x$can_pass_fds = xyes; then |
11802 | |
12070 | |
11803 | cat >>confdefs.h <<\_ACEOF |
12071 | cat >>confdefs.h <<\_ACEOF |
11804 | #define HAVE_UNIX_FDPASS 1 |
12072 | #define HAVE_UNIX_FDPASS 1 |
11805 | _ACEOF |
12073 | _ACEOF |
11806 | |
12074 | |
11807 | else |
12075 | else |
11808 | { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5 |
12076 | { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5 |
11809 | echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;} |
12077 | echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} |
11810 | { (exit 1); exit 1; }; } |
12078 | { (exit 1); exit 1; }; } |
11811 | fi |
12079 | fi |
|
|
12080 | |
11812 | |
12081 | |
11813 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
12082 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
11814 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
12083 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
11815 | if test "${rxvt_broken_ximcb+set}" = set; then |
12084 | if test "${rxvt_broken_ximcb+set}" = set; then |
11816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11866 | #define XIMCB_PROTO_BROKEN 1 |
12135 | #define XIMCB_PROTO_BROKEN 1 |
11867 | _ACEOF |
12136 | _ACEOF |
11868 | |
12137 | |
11869 | fi |
12138 | fi |
11870 | |
12139 | |
11871 | if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then |
12140 | |
|
|
12141 | |
|
|
12142 | |
|
|
12143 | |
|
|
12144 | |
|
|
12145 | |
|
|
12146 | for ac_header in \ |
|
|
12147 | pty.h \ |
|
|
12148 | util.h \ |
|
|
12149 | libutil.h \ |
|
|
12150 | sys/ioctl.h \ |
|
|
12151 | sys/stropts.h \ |
|
|
12152 | |
|
|
12153 | do |
|
|
12154 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
12155 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11872 | echo "$as_me:$LINENO: checking for openpty" >&5 |
12156 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11873 | echo $ECHO_N "checking for openpty... $ECHO_C" >&6 |
12157 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11874 | if test "${ac_cv_func_openpty+set}" = set; then |
12158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12160 | fi |
|
|
12161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12162 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
11876 | else |
12163 | else |
|
|
12164 | # Is the header compilable? |
|
|
12165 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
12166 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
11877 | cat >conftest.$ac_ext <<_ACEOF |
12167 | cat >conftest.$ac_ext <<_ACEOF |
11878 | /* confdefs.h. */ |
12168 | /* confdefs.h. */ |
11879 | _ACEOF |
12169 | _ACEOF |
11880 | cat confdefs.h >>conftest.$ac_ext |
12170 | cat confdefs.h >>conftest.$ac_ext |
11881 | cat >>conftest.$ac_ext <<_ACEOF |
12171 | cat >>conftest.$ac_ext <<_ACEOF |
11882 | /* end confdefs.h. */ |
12172 | /* end confdefs.h. */ |
|
|
12173 | $ac_includes_default |
|
|
12174 | #include <$ac_header> |
|
|
12175 | _ACEOF |
|
|
12176 | rm -f conftest.$ac_objext |
|
|
12177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12178 | (eval $ac_compile) 2>conftest.er1 |
|
|
12179 | ac_status=$? |
|
|
12180 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12181 | rm -f conftest.er1 |
|
|
12182 | cat conftest.err >&5 |
|
|
12183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12184 | (exit $ac_status); } && |
|
|
12185 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12187 | (eval $ac_try) 2>&5 |
|
|
12188 | ac_status=$? |
|
|
12189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12190 | (exit $ac_status); }; } && |
|
|
12191 | { ac_try='test -s conftest.$ac_objext' |
|
|
12192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12193 | (eval $ac_try) 2>&5 |
|
|
12194 | ac_status=$? |
|
|
12195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12196 | (exit $ac_status); }; }; then |
|
|
12197 | ac_header_compiler=yes |
|
|
12198 | else |
|
|
12199 | echo "$as_me: failed program was:" >&5 |
|
|
12200 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12201 | |
|
|
12202 | ac_header_compiler=no |
|
|
12203 | fi |
|
|
12204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12205 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
12206 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
12207 | |
|
|
12208 | # Is the header present? |
|
|
12209 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
12210 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
12211 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12212 | /* confdefs.h. */ |
|
|
12213 | _ACEOF |
|
|
12214 | cat confdefs.h >>conftest.$ac_ext |
|
|
12215 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12216 | /* end confdefs.h. */ |
|
|
12217 | #include <$ac_header> |
|
|
12218 | _ACEOF |
|
|
12219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
12220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
12221 | ac_status=$? |
|
|
12222 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12223 | rm -f conftest.er1 |
|
|
12224 | cat conftest.err >&5 |
|
|
12225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12226 | (exit $ac_status); } >/dev/null; then |
|
|
12227 | if test -s conftest.err; then |
|
|
12228 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
12229 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
12230 | else |
|
|
12231 | ac_cpp_err= |
|
|
12232 | fi |
|
|
12233 | else |
|
|
12234 | ac_cpp_err=yes |
|
|
12235 | fi |
|
|
12236 | if test -z "$ac_cpp_err"; then |
|
|
12237 | ac_header_preproc=yes |
|
|
12238 | else |
|
|
12239 | echo "$as_me: failed program was:" >&5 |
|
|
12240 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12241 | |
|
|
12242 | ac_header_preproc=no |
|
|
12243 | fi |
|
|
12244 | rm -f conftest.err conftest.$ac_ext |
|
|
12245 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
12246 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
12247 | |
|
|
12248 | # So? What about this header? |
|
|
12249 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
12250 | yes:no: ) |
|
|
12251 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
12252 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
12253 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
12254 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
12255 | ac_header_preproc=yes |
|
|
12256 | ;; |
|
|
12257 | no:yes:* ) |
|
|
12258 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
12259 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
12260 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
12261 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
12262 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
12263 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
12264 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
12265 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
12266 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
12267 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
12268 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
12269 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
12270 | ( |
|
|
12271 | cat <<\_ASBOX |
|
|
12272 | ## ------------------------------------------ ## |
|
|
12273 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
12274 | ## ------------------------------------------ ## |
|
|
12275 | _ASBOX |
|
|
12276 | ) | |
|
|
12277 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
12278 | ;; |
|
|
12279 | esac |
|
|
12280 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
12281 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
12282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
12283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12284 | else |
|
|
12285 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
12286 | fi |
|
|
12287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
12288 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
12289 | |
|
|
12290 | fi |
|
|
12291 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
12292 | cat >>confdefs.h <<_ACEOF |
|
|
12293 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
12294 | _ACEOF |
|
|
12295 | |
|
|
12296 | fi |
|
|
12297 | |
|
|
12298 | done |
|
|
12299 | |
|
|
12300 | |
|
|
12301 | |
|
|
12302 | |
|
|
12303 | |
|
|
12304 | |
|
|
12305 | |
|
|
12306 | for ac_func in \ |
|
|
12307 | revoke \ |
|
|
12308 | _getpty \ |
|
|
12309 | getpt \ |
|
|
12310 | posix_openpt \ |
|
|
12311 | isastream \ |
|
|
12312 | |
|
|
12313 | do |
|
|
12314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12317 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12319 | else |
|
|
12320 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12321 | /* confdefs.h. */ |
|
|
12322 | _ACEOF |
|
|
12323 | cat confdefs.h >>conftest.$ac_ext |
|
|
12324 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12325 | /* end confdefs.h. */ |
11883 | /* Define openpty to an innocuous variant, in case <limits.h> declares openpty. |
12326 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
12327 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
11885 | #define openpty innocuous_openpty |
12328 | #define $ac_func innocuous_$ac_func |
11886 | |
12329 | |
11887 | /* System header to define __stub macros and hopefully few prototypes, |
12330 | /* System header to define __stub macros and hopefully few prototypes, |
11888 | which can conflict with char openpty (); below. |
12331 | which can conflict with char $ac_func (); below. |
11889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
12332 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
11890 | <limits.h> exists even on freestanding compilers. */ |
12333 | <limits.h> exists even on freestanding compilers. */ |
11891 | |
12334 | |
11892 | #ifdef __STDC__ |
12335 | #ifdef __STDC__ |
11893 | # include <limits.h> |
12336 | # include <limits.h> |
11894 | #else |
12337 | #else |
11895 | # include <assert.h> |
12338 | # include <assert.h> |
11896 | #endif |
12339 | #endif |
11897 | |
12340 | |
11898 | #undef openpty |
12341 | #undef $ac_func |
11899 | |
12342 | |
11900 | /* Override any gcc2 internal prototype to avoid an error. */ |
12343 | /* Override any gcc2 internal prototype to avoid an error. */ |
11901 | #ifdef __cplusplus |
12344 | #ifdef __cplusplus |
11902 | extern "C" |
12345 | extern "C" |
11903 | { |
12346 | { |
11904 | #endif |
12347 | #endif |
11905 | /* We use char because int might match the return type of a gcc2 |
12348 | /* We use char because int might match the return type of a gcc2 |
11906 | builtin and then its argument prototype would still apply. */ |
12349 | builtin and then its argument prototype would still apply. */ |
11907 | char openpty (); |
12350 | char $ac_func (); |
11908 | /* The GNU C library defines this for functions which it implements |
12351 | /* The GNU C library defines this for functions which it implements |
11909 | to always fail with ENOSYS. Some functions are actually named |
12352 | to always fail with ENOSYS. Some functions are actually named |
11910 | something starting with __ and the normal name is an alias. */ |
12353 | something starting with __ and the normal name is an alias. */ |
11911 | #if defined (__stub_openpty) || defined (__stub___openpty) |
12354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
11912 | choke me |
12355 | choke me |
11913 | #else |
12356 | #else |
11914 | char (*f) () = openpty; |
12357 | char (*f) () = $ac_func; |
11915 | #endif |
12358 | #endif |
11916 | #ifdef __cplusplus |
12359 | #ifdef __cplusplus |
11917 | } |
12360 | } |
11918 | #endif |
12361 | #endif |
11919 | |
12362 | |
11920 | int |
12363 | int |
11921 | main () |
12364 | main () |
11922 | { |
12365 | { |
11923 | return f != openpty; |
12366 | return f != $ac_func; |
11924 | ; |
12367 | ; |
11925 | return 0; |
12368 | return 0; |
11926 | } |
12369 | } |
11927 | _ACEOF |
12370 | _ACEOF |
11928 | rm -f conftest.$ac_objext conftest$ac_exeext |
12371 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
11944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11945 | (eval $ac_try) 2>&5 |
12388 | (eval $ac_try) 2>&5 |
11946 | ac_status=$? |
12389 | ac_status=$? |
11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11948 | (exit $ac_status); }; }; then |
12391 | (exit $ac_status); }; }; then |
11949 | ac_cv_func_openpty=yes |
12392 | eval "$as_ac_var=yes" |
11950 | else |
12393 | else |
11951 | echo "$as_me: failed program was:" >&5 |
12394 | echo "$as_me: failed program was:" >&5 |
11952 | sed 's/^/| /' conftest.$ac_ext >&5 |
12395 | sed 's/^/| /' conftest.$ac_ext >&5 |
11953 | |
12396 | |
11954 | ac_cv_func_openpty=no |
12397 | eval "$as_ac_var=no" |
11955 | fi |
12398 | fi |
11956 | rm -f conftest.err conftest.$ac_objext \ |
12399 | rm -f conftest.err conftest.$ac_objext \ |
11957 | conftest$ac_exeext conftest.$ac_ext |
12400 | conftest$ac_exeext conftest.$ac_ext |
11958 | fi |
12401 | fi |
|
|
12402 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12403 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12404 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12405 | cat >>confdefs.h <<_ACEOF |
|
|
12406 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12407 | _ACEOF |
|
|
12408 | |
|
|
12409 | fi |
|
|
12410 | done |
|
|
12411 | |
|
|
12412 | |
|
|
12413 | have_clone=no |
|
|
12414 | |
|
|
12415 | echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5 |
|
|
12416 | echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6 |
|
|
12417 | if test -e /dev/ptym/clone; then |
|
|
12418 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12419 | echo "${ECHO_T}yes" >&6 |
|
|
12420 | |
|
|
12421 | cat >>confdefs.h <<\_ACEOF |
|
|
12422 | #define HAVE_DEV_CLONE 1 |
|
|
12423 | _ACEOF |
|
|
12424 | |
|
|
12425 | |
|
|
12426 | cat >>confdefs.h <<\_ACEOF |
|
|
12427 | #define CLONE_DEVICE "/dev/ptym/clone" |
|
|
12428 | _ACEOF |
|
|
12429 | |
|
|
12430 | have_clone=yes |
|
|
12431 | else |
|
|
12432 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12433 | echo "${ECHO_T}no" >&6 |
|
|
12434 | fi |
|
|
12435 | |
|
|
12436 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
|
|
12437 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
|
|
12438 | if test -e /dev/ptc; then |
|
|
12439 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12440 | echo "${ECHO_T}yes" >&6 |
|
|
12441 | |
|
|
12442 | cat >>confdefs.h <<\_ACEOF |
|
|
12443 | #define HAVE_DEV_PTC 1 |
|
|
12444 | _ACEOF |
|
|
12445 | |
|
|
12446 | |
|
|
12447 | cat >>confdefs.h <<\_ACEOF |
|
|
12448 | #define CLONE_DEVICE "/dev/ptc" |
|
|
12449 | _ACEOF |
|
|
12450 | |
|
|
12451 | have_clone=yes |
|
|
12452 | else |
|
|
12453 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12454 | echo "${ECHO_T}no" >&6 |
|
|
12455 | fi |
|
|
12456 | |
|
|
12457 | case $host in |
|
|
12458 | *-*-cygwin*) |
|
|
12459 | have_clone=yes |
|
|
12460 | |
|
|
12461 | cat >>confdefs.h <<\_ACEOF |
|
|
12462 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12463 | _ACEOF |
|
|
12464 | |
|
|
12465 | ;; |
|
|
12466 | *) |
|
|
12467 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
|
|
12468 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
|
|
12469 | if test -e /dev/ptmx; then |
|
|
12470 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12471 | echo "${ECHO_T}yes" >&6 |
|
|
12472 | |
|
|
12473 | cat >>confdefs.h <<\_ACEOF |
|
|
12474 | #define HAVE_DEV_PTMX 1 |
|
|
12475 | _ACEOF |
|
|
12476 | |
|
|
12477 | |
|
|
12478 | cat >>confdefs.h <<\_ACEOF |
|
|
12479 | #define CLONE_DEVICE "/dev/ptmx" |
|
|
12480 | _ACEOF |
|
|
12481 | |
|
|
12482 | have_clone=yes |
|
|
12483 | else |
|
|
12484 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12485 | echo "${ECHO_T}no" >&6 |
|
|
12486 | fi |
|
|
12487 | ;; |
|
|
12488 | esac |
|
|
12489 | |
|
|
12490 | if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then |
|
|
12491 | echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 |
|
|
12492 | echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6 |
|
|
12493 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12494 | /* confdefs.h. */ |
|
|
12495 | _ACEOF |
|
|
12496 | cat confdefs.h >>conftest.$ac_ext |
|
|
12497 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12498 | /* end confdefs.h. */ |
|
|
12499 | #include <stdlib.h> |
|
|
12500 | int |
|
|
12501 | main () |
|
|
12502 | { |
|
|
12503 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
12504 | ; |
|
|
12505 | return 0; |
|
|
12506 | } |
|
|
12507 | _ACEOF |
|
|
12508 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12510 | (eval $ac_link) 2>conftest.er1 |
|
|
12511 | ac_status=$? |
|
|
12512 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12513 | rm -f conftest.er1 |
|
|
12514 | cat conftest.err >&5 |
|
|
12515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12516 | (exit $ac_status); } && |
|
|
12517 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12519 | (eval $ac_try) 2>&5 |
|
|
12520 | ac_status=$? |
|
|
12521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12522 | (exit $ac_status); }; } && |
|
|
12523 | { ac_try='test -s conftest$ac_exeext' |
|
|
12524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12525 | (eval $ac_try) 2>&5 |
|
|
12526 | ac_status=$? |
|
|
12527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12528 | (exit $ac_status); }; }; then |
|
|
12529 | unix98_pty=yes |
|
|
12530 | |
|
|
12531 | cat >>confdefs.h <<\_ACEOF |
|
|
12532 | #define UNIX98_PTY 1 |
|
|
12533 | _ACEOF |
|
|
12534 | |
|
|
12535 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
12536 | echo "${ECHO_T}yes" >&6 |
|
|
12537 | else |
|
|
12538 | echo "$as_me: failed program was:" >&5 |
|
|
12539 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12540 | |
11959 | echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 |
12541 | echo "$as_me:$LINENO: result: no" >&5 |
11960 | echo "${ECHO_T}$ac_cv_func_openpty" >&6 |
12542 | echo "${ECHO_T}no" >&6 |
11961 | if test $ac_cv_func_openpty = yes; then |
12543 | fi |
11962 | : |
12544 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12545 | conftest$ac_exeext conftest.$ac_ext |
|
|
12546 | fi |
|
|
12547 | |
|
|
12548 | if test -z "$unix98_pty"; then |
|
|
12549 | |
|
|
12550 | for ac_func in openpty |
|
|
12551 | do |
|
|
12552 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
12553 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
|
|
12554 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
|
|
12555 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
|
|
12556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12557 | else |
|
|
12558 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12559 | /* confdefs.h. */ |
|
|
12560 | _ACEOF |
|
|
12561 | cat confdefs.h >>conftest.$ac_ext |
|
|
12562 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12563 | /* end confdefs.h. */ |
|
|
12564 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
|
|
12565 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
12566 | #define $ac_func innocuous_$ac_func |
|
|
12567 | |
|
|
12568 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
12569 | which can conflict with char $ac_func (); below. |
|
|
12570 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
12571 | <limits.h> exists even on freestanding compilers. */ |
|
|
12572 | |
|
|
12573 | #ifdef __STDC__ |
|
|
12574 | # include <limits.h> |
|
|
12575 | #else |
|
|
12576 | # include <assert.h> |
|
|
12577 | #endif |
|
|
12578 | |
|
|
12579 | #undef $ac_func |
|
|
12580 | |
|
|
12581 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12582 | #ifdef __cplusplus |
|
|
12583 | extern "C" |
|
|
12584 | { |
|
|
12585 | #endif |
|
|
12586 | /* We use char because int might match the return type of a gcc2 |
|
|
12587 | builtin and then its argument prototype would still apply. */ |
|
|
12588 | char $ac_func (); |
|
|
12589 | /* The GNU C library defines this for functions which it implements |
|
|
12590 | to always fail with ENOSYS. Some functions are actually named |
|
|
12591 | something starting with __ and the normal name is an alias. */ |
|
|
12592 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
12593 | choke me |
|
|
12594 | #else |
|
|
12595 | char (*f) () = $ac_func; |
|
|
12596 | #endif |
|
|
12597 | #ifdef __cplusplus |
|
|
12598 | } |
|
|
12599 | #endif |
|
|
12600 | |
|
|
12601 | int |
|
|
12602 | main () |
|
|
12603 | { |
|
|
12604 | return f != $ac_func; |
|
|
12605 | ; |
|
|
12606 | return 0; |
|
|
12607 | } |
|
|
12608 | _ACEOF |
|
|
12609 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12611 | (eval $ac_link) 2>conftest.er1 |
|
|
12612 | ac_status=$? |
|
|
12613 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12614 | rm -f conftest.er1 |
|
|
12615 | cat conftest.err >&5 |
|
|
12616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12617 | (exit $ac_status); } && |
|
|
12618 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12620 | (eval $ac_try) 2>&5 |
|
|
12621 | ac_status=$? |
|
|
12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12623 | (exit $ac_status); }; } && |
|
|
12624 | { ac_try='test -s conftest$ac_exeext' |
|
|
12625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12626 | (eval $ac_try) 2>&5 |
|
|
12627 | ac_status=$? |
|
|
12628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12629 | (exit $ac_status); }; }; then |
|
|
12630 | eval "$as_ac_var=yes" |
|
|
12631 | else |
|
|
12632 | echo "$as_me: failed program was:" >&5 |
|
|
12633 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12634 | |
|
|
12635 | eval "$as_ac_var=no" |
|
|
12636 | fi |
|
|
12637 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12638 | conftest$ac_exeext conftest.$ac_ext |
|
|
12639 | fi |
|
|
12640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
|
|
12641 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
|
|
12642 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
|
|
12643 | cat >>confdefs.h <<_ACEOF |
|
|
12644 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
12645 | _ACEOF |
|
|
12646 | |
11963 | else |
12647 | else |
11964 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
12648 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
11965 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
12649 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
11966 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
12650 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
11967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
12023 | LIBS=$ac_check_lib_save_LIBS |
12707 | LIBS=$ac_check_lib_save_LIBS |
12024 | fi |
12708 | fi |
12025 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
12709 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
12026 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
12710 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
12027 | if test $ac_cv_lib_util_openpty = yes; then |
12711 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12712 | cat >>confdefs.h <<\_ACEOF |
|
|
12713 | #define HAVE_OPENPTY 1 |
|
|
12714 | _ACEOF |
12028 | LIBS="$LIBS -lutil" |
12715 | LIBS="$LIBS -lutil" |
12029 | fi |
12716 | fi |
12030 | |
12717 | |
12031 | fi |
12718 | fi |
|
|
12719 | done |
12032 | |
12720 | |
12033 | fi |
12721 | fi |
12034 | |
12722 | |
|
|
12723 | |
|
|
12724 | if test x$support_xft = xyes; then |
|
|
12725 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
12726 | set dummy pkg-config; ac_word=$2 |
12035 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
12727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12036 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
12728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
12037 | if test "${rxvt_cv_ptys+set}" = set; then |
12729 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
12038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12039 | else |
12731 | else |
12040 | if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
12732 | case $PKG_CONFIG in |
12041 | rxvt_cv_ptys=OPENPTY |
12733 | [\\/]* | ?:[\\/]*) |
12042 | else if test x$ac_cv_func_getpt = xyes; then |
12734 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12043 | rxvt_cv_ptys=GLIBC |
12735 | ;; |
12044 | else if test x$ac_cv_func_posix_openpt = xyes; then |
12736 | *) |
12045 | rxvt_cv_ptys=POSIX |
12737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12046 | else if test x$ac_cv_func__getpty = xyes; then |
12738 | for as_dir in $PATH |
12047 | rxvt_cv_ptys=SGI4 |
12739 | do |
12048 | else if test -c /dev/ttyp20; then |
12740 | IFS=$as_save_IFS |
12049 | rxvt_cv_ptys=SCO |
12741 | test -z "$as_dir" && as_dir=. |
12050 | else if test -c /dev/ptym/clone; then |
12742 | for ac_exec_ext in '' $ac_executable_extensions; do |
12051 | rxvt_cv_ptys=HPUX |
12743 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12052 | else if test -c /dev/ptc -a -c /dev/pts; then |
12744 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12053 | rxvt_cv_ptys=PTC |
12745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12054 | else if test -c /dev/ptc -a -d /dev/pts; then |
12746 | break 2 |
12055 | rxvt_cv_ptys=PTC |
12747 | fi |
12056 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
12748 | done |
12057 | rxvt_cv_ptys=STREAMS |
12749 | done |
12058 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
12750 | |
12059 | rxvt_cv_ptys=STREAMS |
12751 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
12752 | ;; |
|
|
12753 | esac |
|
|
12754 | fi |
|
|
12755 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
|
|
12756 | |
|
|
12757 | if test -n "$PKG_CONFIG"; then |
|
|
12758 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
12759 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
|
|
12760 | else |
|
|
12761 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12762 | echo "${ECHO_T}no" >&6 |
|
|
12763 | fi |
|
|
12764 | |
|
|
12765 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
12766 | set dummy xft-config; ac_word=$2 |
|
|
12767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12769 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
|
|
12770 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12771 | else |
|
|
12772 | case $XFT_CONFIG in |
|
|
12773 | [\\/]* | ?:[\\/]*) |
|
|
12774 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
12775 | ;; |
|
|
12776 | *) |
|
|
12777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12778 | for as_dir in $PATH |
|
|
12779 | do |
|
|
12780 | IFS=$as_save_IFS |
|
|
12781 | test -z "$as_dir" && as_dir=. |
|
|
12782 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12783 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12784 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
12785 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12786 | break 2 |
|
|
12787 | fi |
|
|
12788 | done |
|
|
12789 | done |
|
|
12790 | |
|
|
12791 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
12792 | ;; |
|
|
12793 | esac |
|
|
12794 | fi |
|
|
12795 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
12796 | |
|
|
12797 | if test -n "$XFT_CONFIG"; then |
|
|
12798 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
|
|
12799 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
|
|
12800 | else |
|
|
12801 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12802 | echo "${ECHO_T}no" >&6 |
|
|
12803 | fi |
|
|
12804 | |
|
|
12805 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
12806 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
|
|
12807 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12060 | else |
12808 | else |
12061 | rxvt_cv_ptys=BSD |
12809 | if test $XFT_CONFIG != no; then |
12062 | fi |
12810 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
12063 | fi |
12811 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12064 | fi |
12812 | fi |
12065 | fi |
12813 | fi |
12066 | fi |
|
|
12067 | fi |
|
|
12068 | fi |
|
|
12069 | fi |
|
|
12070 | fi |
|
|
12071 | fi |
|
|
12072 | |
|
|
12073 | fi |
|
|
12074 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
|
|
12075 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
|
|
12076 | |
|
|
12077 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
12078 | |
|
|
12079 | cat >>confdefs.h <<\_ACEOF |
|
|
12080 | #define PTYS_ARE_GETPT 1 |
|
|
12081 | _ACEOF |
|
|
12082 | |
|
|
12083 | fi |
|
|
12084 | if test x$rxvt_cv_ptys = xPOSIX; then |
|
|
12085 | |
|
|
12086 | cat >>confdefs.h <<\_ACEOF |
|
|
12087 | #define PTYS_ARE_POSIX 1 |
|
|
12088 | _ACEOF |
|
|
12089 | |
|
|
12090 | fi |
|
|
12091 | if test x$rxvt_cv_ptys = xOPENPTY; then |
|
|
12092 | |
|
|
12093 | cat >>confdefs.h <<\_ACEOF |
|
|
12094 | #define PTYS_ARE_OPENPTY 1 |
|
|
12095 | _ACEOF |
|
|
12096 | |
|
|
12097 | fi |
|
|
12098 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
12099 | |
|
|
12100 | cat >>confdefs.h <<\_ACEOF |
|
|
12101 | #define PTYS_ARE_NUMERIC 1 |
|
|
12102 | _ACEOF |
|
|
12103 | |
|
|
12104 | fi |
|
|
12105 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
12106 | |
|
|
12107 | cat >>confdefs.h <<\_ACEOF |
|
|
12108 | #define PTYS_ARE_PTMX 1 |
|
|
12109 | _ACEOF |
|
|
12110 | |
|
|
12111 | fi |
|
|
12112 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
12113 | |
|
|
12114 | cat >>confdefs.h <<\_ACEOF |
|
|
12115 | #define PTYS_ARE_PTC 1 |
|
|
12116 | _ACEOF |
|
|
12117 | |
|
|
12118 | fi |
|
|
12119 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
12120 | |
|
|
12121 | cat >>confdefs.h <<\_ACEOF |
|
|
12122 | #define PTYS_ARE__GETPTY 1 |
|
|
12123 | _ACEOF |
|
|
12124 | |
|
|
12125 | fi |
|
|
12126 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
12127 | |
|
|
12128 | cat >>confdefs.h <<\_ACEOF |
|
|
12129 | #define PTYS_ARE_CLONE 1 |
|
|
12130 | _ACEOF |
|
|
12131 | |
|
|
12132 | fi |
|
|
12133 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then |
|
|
12134 | |
|
|
12135 | cat >>confdefs.h <<\_ACEOF |
|
|
12136 | #define PTYS_ARE_SEARCHED 1 |
|
|
12137 | _ACEOF |
|
|
12138 | |
|
|
12139 | fi |
|
|
12140 | |
|
|
12141 | |
|
|
12142 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
12143 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
12144 | ptys=`echo /dev/pty??` |
|
|
12145 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
12146 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
12147 | if test x$pch1 != x; then |
|
|
12148 | |
|
|
12149 | cat >>confdefs.h <<_ACEOF |
|
|
12150 | #define PTYCHAR1 "$pch1" |
|
|
12151 | _ACEOF |
|
|
12152 | |
|
|
12153 | fi |
|
|
12154 | if test x$pch2 != x; then |
|
|
12155 | |
|
|
12156 | cat >>confdefs.h <<_ACEOF |
|
|
12157 | #define PTYCHAR2 "$pch2" |
|
|
12158 | _ACEOF |
|
|
12159 | |
|
|
12160 | fi |
|
|
12161 | |
|
|
12162 | if test x$support_xft = xyes; then |
|
|
12163 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
12164 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
12165 | |
12814 | |
12166 | |
12815 | |
12167 | for ac_header in X11/Xft/Xft.h |
12816 | for ac_header in X11/Xft/Xft.h |
12168 | do |
12817 | do |
12169 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12818 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
… | |
… | |
13547 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
14196 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
13548 | s,@CPP@,$CPP,;t t |
14197 | s,@CPP@,$CPP,;t t |
13549 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
14198 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
13550 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
14199 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
13551 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
14200 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
|
|
14201 | s,@EGREP@,$EGREP,;t t |
13552 | s,@LINKER@,$LINKER,;t t |
14202 | s,@LINKER@,$LINKER,;t t |
13553 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
13554 | s,@EGREP@,$EGREP,;t t |
|
|
13555 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
14203 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
13556 | s,@RXVTNAME@,$RXVTNAME,;t t |
14204 | s,@RXVTNAME@,$RXVTNAME,;t t |
13557 | s,@MV@,$MV,;t t |
14205 | s,@MV@,$MV,;t t |
13558 | s,@RM@,$RM,;t t |
14206 | s,@RM@,$RM,;t t |
13559 | s,@CP@,$CP,;t t |
14207 | s,@CP@,$CP,;t t |
13560 | s,@LN@,$LN,;t t |
14208 | s,@LN@,$LN,;t t |
13561 | s,@SED@,$SED,;t t |
14209 | s,@SED@,$SED,;t t |
13562 | s,@ECHO@,$ECHO,;t t |
14210 | s,@ECHO@,$ECHO,;t t |
13563 | s,@CMP@,$CMP,;t t |
14211 | s,@CMP@,$CMP,;t t |
13564 | s,@TIC@,$TIC,;t t |
14212 | s,@TIC@,$TIC,;t t |
|
|
14213 | s,@CXXCPP@,$CXXCPP,;t t |
13565 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
14214 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
13566 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
14215 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
13567 | s,@X_LIBS@,$X_LIBS,;t t |
14216 | s,@X_LIBS@,$X_LIBS,;t t |
13568 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
14217 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
13569 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
14218 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
… | |
… | |
13573 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
14222 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
13574 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
14223 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
13575 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
14224 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
13576 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
14225 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
13577 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
14226 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
|
|
14227 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
|
|
14228 | s,@XFT_CONFIG@,$XFT_CONFIG,;t t |
13578 | s,@PERL@,$PERL,;t t |
14229 | s,@PERL@,$PERL,;t t |
13579 | s,@PERLLIB@,$PERLLIB,;t t |
14230 | s,@PERLLIB@,$PERLLIB,;t t |
13580 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
14231 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
13581 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
14232 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
13582 | s,@IF_PERL@,$IF_PERL,;t t |
14233 | s,@IF_PERL@,$IF_PERL,;t t |
… | |
… | |
14116 | fi |
14767 | fi |
14117 | |
14768 | |
14118 | echo " |
14769 | echo " |
14119 | The following are set in config.h |
14770 | The following are set in config.h |
14120 | " |
14771 | " |
14121 | echo " pty/tty type: "$rxvt_cv_ptys |
|
|
14122 | if test x$support_utmp != xyes; then |
14772 | if test x$support_utmp != xyes; then |
14123 | echo " utmp support: disabled" |
14773 | echo " utmp support: disabled" |
14124 | echo |
14774 | echo |
14125 | else |
14775 | else |
14126 | echo " utmp support: enabled |
14776 | echo " utmp support: enabled |
… | |
… | |
14143 | echo " resource class: $RESCLASS" |
14793 | echo " resource class: $RESCLASS" |
14144 | if test x$RESFALLBACK != x; then |
14794 | if test x$RESFALLBACK != x; then |
14145 | echo " resource class fallback: $RESFALLBACK" |
14795 | echo " resource class fallback: $RESFALLBACK" |
14146 | fi |
14796 | fi |
14147 | echo |
14797 | echo |
14148 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
|
|
14149 | echo ".----------------------------------------------------------------." |
|
|
14150 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
|
|
14151 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
14152 | echo ".----------------------------------------------------------------." |
|
|
14153 | fi |
|
|
14154 | if test x$support_xpm = xneedsmanualspecification; then |
14798 | if test x$support_xpm = xneedsmanualspecification; then |
14155 | echo ".----------------------------------------------------------------." |
14799 | echo ".----------------------------------------------------------------." |
14156 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14800 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14157 | echo ". XPM includes files and libraries could not be found. ." |
14801 | echo ". XPM includes files and libraries could not be found. ." |
14158 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
14802 | echo ". XPM backgrounds are now being DISABLED! If you want ." |