… | |
… | |
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 AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL 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 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='MCOMMON' |
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 |
318 | # The variables have the same names as the options, with |
318 | # The variables have the same names as the options, with |
… | |
… | |
877 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
877 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
878 | --enable-xpm-background enable XPM background pixmaps |
878 | --enable-xpm-background enable XPM background pixmaps |
879 | --enable-transparency enable transparent backgrounds |
879 | --enable-transparency enable transparent backgrounds |
880 | --enable-tinting enable tinting of transparent bg |
880 | --enable-tinting enable tinting of transparent bg |
881 | --enable-fading enable colors fading when off focus |
881 | --enable-fading enable colors fading when off focus |
882 | --enable-menubar enable menubar |
|
|
883 | --enable-rxvt-scroll enable rxvt style scrollbar |
882 | --enable-rxvt-scroll enable rxvt style scrollbar |
884 | --enable-next-scroll enable NeXT style scrollbar |
883 | --enable-next-scroll enable NeXT style scrollbar |
885 | --enable-xterm-scroll enable Xterm style scrollbar |
884 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
885 | --enable-perl enable embedded perl interpreter |
886 | --enable-plain-scroll enable plain style scrollbar |
886 | --enable-plain-scroll enable plain style scrollbar |
887 | --enable-half-shadow use half width/height shadow on rxvt scrollbar |
|
|
888 | --enable-xim XIM (X Input Method) protocol support |
887 | --enable-xim XIM (X Input Method) protocol support |
889 | --enable-ttygid enable tty setting to group named "tty" |
888 | --enable-ttygid enable tty setting to group named "tty" |
890 | --disable-backspace-key disable handling of the backspace key |
889 | --disable-backspace-key disable handling of the backspace key |
891 | --disable-delete-key disable handling of the delete key |
890 | --disable-delete-key disable handling of the delete key |
892 | --disable-resources disable all resource checking |
891 | --disable-resources disable all resource checking |
893 | --enable-xgetdefault enable resources via X instead of our small version |
|
|
894 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
892 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
895 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
893 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
896 | --enable-strings enable some replacement system functions |
|
|
897 | --disable-swapscreen disable swap screen support |
894 | --disable-swapscreen disable swap screen support |
898 | --enable-iso14755 enable support for extended ISO 14755 modes |
895 | --enable-iso14755 enable support for extended ISO 14755 modes |
899 | --enable-frills enable support for rarely used features |
896 | --enable-frills enable support for rarely used features |
900 | --enable-24bit enable support for using 24bit visuals if available |
897 | --enable-24bit enable support for using 24bit visuals if available |
901 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
898 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
… | |
… | |
1372 | |
1369 | |
1373 | |
1370 | |
1374 | |
1371 | |
1375 | |
1372 | |
1376 | |
1373 | |
|
|
1374 | |
|
|
1375 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
|
|
1376 | |
|
|
1377 | |
1377 | ac_aux_dir= |
1378 | ac_aux_dir= |
1378 | for ac_dir in autoconf $srcdir/autoconf; do |
1379 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1379 | if test -f $ac_dir/install-sh; then |
1380 | if test -f $ac_dir/install-sh; then |
1380 | ac_aux_dir=$ac_dir |
1381 | ac_aux_dir=$ac_dir |
1381 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1382 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1382 | break |
1383 | break |
1383 | elif test -f $ac_dir/install.sh; then |
1384 | elif test -f $ac_dir/install.sh; then |
… | |
… | |
1389 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1390 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1390 | break |
1391 | break |
1391 | fi |
1392 | fi |
1392 | done |
1393 | done |
1393 | if test -z "$ac_aux_dir"; then |
1394 | if test -z "$ac_aux_dir"; then |
1394 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1395 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1395 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
1396 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1396 | { (exit 1); exit 1; }; } |
1397 | { (exit 1); exit 1; }; } |
1397 | fi |
1398 | fi |
1398 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1399 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1399 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1400 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1400 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1401 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1401 | |
|
|
1402 | ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" |
|
|
1403 | |
|
|
1404 | |
1402 | |
1405 | # Make sure we can run config.sub. |
1403 | # Make sure we can run config.sub. |
1406 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1404 | $ac_config_sub sun4 >/dev/null 2>&1 || |
1407 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1405 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1408 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1406 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
… | |
… | |
1460 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1458 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1461 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1459 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1462 | echo "" |
1460 | echo "" |
1463 | echo "configuring for rxvt $VERSION" |
1461 | echo "configuring for rxvt $VERSION" |
1464 | echo "" |
1462 | echo "" |
|
|
1463 | |
|
|
1464 | orig_CXXFLAGS="$CXXFLAGS" |
1465 | |
1465 | |
1466 | |
1466 | |
1467 | ac_ext=c |
1467 | ac_ext=c |
1468 | ac_cpp='$CPP $CPPFLAGS' |
1468 | ac_cpp='$CPP $CPPFLAGS' |
1469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
… | |
… | |
3050 | |
3050 | |
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 | for ac_prog in gawk mawk nawk awk |
|
|
3056 | do |
|
|
3057 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
3058 | set dummy $ac_prog; ac_word=$2 |
|
|
3059 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3061 | if test "${ac_cv_prog_AWK+set}" = set; then |
|
|
3062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3063 | else |
|
|
3064 | if test -n "$AWK"; then |
|
|
3065 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
|
3066 | else |
|
|
3067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3068 | for as_dir in $PATH |
|
|
3069 | do |
|
|
3070 | IFS=$as_save_IFS |
|
|
3071 | test -z "$as_dir" && as_dir=. |
|
|
3072 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3073 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3074 | ac_cv_prog_AWK="$ac_prog" |
|
|
3075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3076 | break 2 |
|
|
3077 | fi |
|
|
3078 | done |
|
|
3079 | done |
|
|
3080 | |
3055 | |
3081 | fi |
|
|
3082 | fi |
|
|
3083 | AWK=$ac_cv_prog_AWK |
|
|
3084 | if test -n "$AWK"; then |
|
|
3085 | echo "$as_me:$LINENO: result: $AWK" >&5 |
|
|
3086 | echo "${ECHO_T}$AWK" >&6 |
|
|
3087 | else |
|
|
3088 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3089 | echo "${ECHO_T}no" >&6 |
|
|
3090 | fi |
|
|
3091 | |
|
|
3092 | test -n "$AWK" && break |
|
|
3093 | done |
|
|
3094 | |
|
|
3095 | |
|
|
3096 | ac_ext=c |
|
|
3097 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3098 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3099 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3100 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3101 | |
|
|
3102 | |
|
|
3103 | if test -z "$orig_CXXFLAGS"; then |
|
|
3104 | CXXFLAGS='-O' |
|
|
3105 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3106 | CXXFLAGS="-g -O3" |
|
|
3107 | fi |
|
|
3108 | CFLAGS="$CXXFLAGS" |
|
|
3109 | fi |
|
|
3110 | |
|
|
3111 | LINKER="$CXX" |
|
|
3112 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3113 | |
|
|
3114 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3115 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3116 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3118 | else |
|
|
3119 | ac_check_lib_save_LIBS=$LIBS |
|
|
3120 | LIBS="-lsupc++ $LIBS" |
|
|
3121 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3122 | /* confdefs.h. */ |
|
|
3123 | _ACEOF |
|
|
3124 | cat confdefs.h >>conftest.$ac_ext |
|
|
3125 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3126 | /* end confdefs.h. */ |
|
|
3127 | |
|
|
3128 | |
|
|
3129 | int |
|
|
3130 | main () |
|
|
3131 | { |
|
|
3132 | main (); |
|
|
3133 | ; |
|
|
3134 | return 0; |
|
|
3135 | } |
|
|
3136 | _ACEOF |
|
|
3137 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3139 | (eval $ac_link) 2>conftest.er1 |
|
|
3140 | ac_status=$? |
|
|
3141 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3142 | rm -f conftest.er1 |
|
|
3143 | cat conftest.err >&5 |
|
|
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3145 | (exit $ac_status); } && |
|
|
3146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3148 | (eval $ac_try) 2>&5 |
|
|
3149 | ac_status=$? |
|
|
3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3151 | (exit $ac_status); }; } && |
|
|
3152 | { ac_try='test -s conftest$ac_exeext' |
|
|
3153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3154 | (eval $ac_try) 2>&5 |
|
|
3155 | ac_status=$? |
|
|
3156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3157 | (exit $ac_status); }; }; then |
|
|
3158 | ac_cv_lib_supcpp_main=yes |
|
|
3159 | else |
|
|
3160 | echo "$as_me: failed program was:" >&5 |
|
|
3161 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3162 | |
|
|
3163 | ac_cv_lib_supcpp_main=no |
|
|
3164 | fi |
|
|
3165 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3166 | conftest$ac_exeext conftest.$ac_ext |
|
|
3167 | LIBS=$ac_check_lib_save_LIBS |
|
|
3168 | fi |
|
|
3169 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3170 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3171 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3172 | |
|
|
3173 | LINKER="$CC" |
|
|
3174 | LIBS="$LIBS -lsupc++" |
|
|
3175 | |
|
|
3176 | fi |
|
|
3177 | |
|
|
3178 | fi |
|
|
3179 | LINKER=$LINKER |
|
|
3180 | |
|
|
3181 | |
|
|
3182 | |
|
|
3183 | cat >>confdefs.h <<\_ACEOF |
|
|
3184 | #define _GNU_SOURCE 1 |
|
|
3185 | _ACEOF |
|
|
3186 | |
|
|
3187 | |
|
|
3188 | case $host in |
|
|
3189 | *-*-solaris* ) |
|
|
3190 | |
|
|
3191 | cat >>confdefs.h <<\_ACEOF |
|
|
3192 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3193 | _ACEOF |
|
|
3194 | |
|
|
3195 | |
|
|
3196 | cat >>confdefs.h <<\_ACEOF |
|
|
3197 | #define _XOPEN_SOURCE 2 |
|
|
3198 | _ACEOF |
|
|
3199 | |
|
|
3200 | |
|
|
3201 | cat >>confdefs.h <<\_ACEOF |
|
|
3202 | #define __EXTENSIONS__ 1 |
|
|
3203 | _ACEOF |
|
|
3204 | |
|
|
3205 | ;; |
|
|
3206 | esac |
|
|
3207 | |
|
|
3208 | |
|
|
3209 | ac_ext=cc |
|
|
3210 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3211 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3212 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3213 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3214 | |
|
|
3215 | |
|
|
3216 | |
|
|
3217 | ac_ext=cc |
|
|
3218 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3219 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3220 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3221 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3222 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
3223 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
3224 | if test -z "$CXXCPP"; then |
|
|
3225 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
3226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3227 | else |
|
|
3228 | # Double quotes because CXXCPP needs to be expanded |
|
|
3229 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
3230 | do |
|
|
3231 | ac_preproc_ok=false |
|
|
3232 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3233 | do |
|
|
3234 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3235 | # with a fresh cross-compiler works. |
|
|
3236 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3237 | # <limits.h> exists even on freestanding compilers. |
|
|
3238 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3239 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3240 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3241 | /* confdefs.h. */ |
|
|
3242 | _ACEOF |
|
|
3243 | cat confdefs.h >>conftest.$ac_ext |
|
|
3244 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3245 | /* end confdefs.h. */ |
|
|
3246 | #ifdef __STDC__ |
|
|
3247 | # include <limits.h> |
|
|
3248 | #else |
|
|
3249 | # include <assert.h> |
|
|
3250 | #endif |
|
|
3251 | Syntax error |
|
|
3252 | _ACEOF |
|
|
3253 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3254 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3255 | ac_status=$? |
|
|
3256 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3257 | rm -f conftest.er1 |
|
|
3258 | cat conftest.err >&5 |
|
|
3259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3260 | (exit $ac_status); } >/dev/null; then |
|
|
3261 | if test -s conftest.err; then |
|
|
3262 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3263 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3264 | else |
|
|
3265 | ac_cpp_err= |
|
|
3266 | fi |
|
|
3267 | else |
|
|
3268 | ac_cpp_err=yes |
|
|
3269 | fi |
|
|
3270 | if test -z "$ac_cpp_err"; then |
|
|
3271 | : |
|
|
3272 | else |
|
|
3273 | echo "$as_me: failed program was:" >&5 |
|
|
3274 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3275 | |
|
|
3276 | # Broken: fails on valid input. |
|
|
3277 | continue |
|
|
3278 | fi |
|
|
3279 | rm -f conftest.err conftest.$ac_ext |
|
|
3280 | |
|
|
3281 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3282 | # can be detected and how. |
|
|
3283 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3284 | /* confdefs.h. */ |
|
|
3285 | _ACEOF |
|
|
3286 | cat confdefs.h >>conftest.$ac_ext |
|
|
3287 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3288 | /* end confdefs.h. */ |
|
|
3289 | #include <ac_nonexistent.h> |
|
|
3290 | _ACEOF |
|
|
3291 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3292 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3293 | ac_status=$? |
|
|
3294 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3295 | rm -f conftest.er1 |
|
|
3296 | cat conftest.err >&5 |
|
|
3297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3298 | (exit $ac_status); } >/dev/null; then |
|
|
3299 | if test -s conftest.err; then |
|
|
3300 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3301 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3302 | else |
|
|
3303 | ac_cpp_err= |
|
|
3304 | fi |
|
|
3305 | else |
|
|
3306 | ac_cpp_err=yes |
|
|
3307 | fi |
|
|
3308 | if test -z "$ac_cpp_err"; then |
|
|
3309 | # Broken: success on invalid input. |
|
|
3310 | continue |
|
|
3311 | else |
|
|
3312 | echo "$as_me: failed program was:" >&5 |
|
|
3313 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3314 | |
|
|
3315 | # Passes both tests. |
|
|
3316 | ac_preproc_ok=: |
|
|
3317 | break |
|
|
3318 | fi |
|
|
3319 | rm -f conftest.err conftest.$ac_ext |
|
|
3320 | |
|
|
3321 | done |
|
|
3322 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3323 | rm -f conftest.err conftest.$ac_ext |
|
|
3324 | if $ac_preproc_ok; then |
|
|
3325 | break |
|
|
3326 | fi |
|
|
3327 | |
|
|
3328 | done |
|
|
3329 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3330 | |
|
|
3331 | fi |
|
|
3332 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
3333 | else |
|
|
3334 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3335 | fi |
|
|
3336 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
3337 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
3338 | ac_preproc_ok=false |
|
|
3339 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3340 | do |
|
|
3341 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3342 | # with a fresh cross-compiler works. |
|
|
3343 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3344 | # <limits.h> exists even on freestanding compilers. |
|
|
3345 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3346 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3347 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3348 | /* confdefs.h. */ |
|
|
3349 | _ACEOF |
|
|
3350 | cat confdefs.h >>conftest.$ac_ext |
|
|
3351 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3352 | /* end confdefs.h. */ |
|
|
3353 | #ifdef __STDC__ |
|
|
3354 | # include <limits.h> |
|
|
3355 | #else |
|
|
3356 | # include <assert.h> |
|
|
3357 | #endif |
|
|
3358 | Syntax error |
|
|
3359 | _ACEOF |
|
|
3360 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3361 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3362 | ac_status=$? |
|
|
3363 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3364 | rm -f conftest.er1 |
|
|
3365 | cat conftest.err >&5 |
|
|
3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3367 | (exit $ac_status); } >/dev/null; then |
|
|
3368 | if test -s conftest.err; then |
|
|
3369 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3370 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3371 | else |
|
|
3372 | ac_cpp_err= |
|
|
3373 | fi |
|
|
3374 | else |
|
|
3375 | ac_cpp_err=yes |
|
|
3376 | fi |
|
|
3377 | if test -z "$ac_cpp_err"; then |
|
|
3378 | : |
|
|
3379 | else |
|
|
3380 | echo "$as_me: failed program was:" >&5 |
|
|
3381 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3382 | |
|
|
3383 | # Broken: fails on valid input. |
|
|
3384 | continue |
|
|
3385 | fi |
|
|
3386 | rm -f conftest.err conftest.$ac_ext |
|
|
3387 | |
|
|
3388 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3389 | # can be detected and how. |
|
|
3390 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3391 | /* confdefs.h. */ |
|
|
3392 | _ACEOF |
|
|
3393 | cat confdefs.h >>conftest.$ac_ext |
|
|
3394 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3395 | /* end confdefs.h. */ |
|
|
3396 | #include <ac_nonexistent.h> |
|
|
3397 | _ACEOF |
|
|
3398 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3399 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3400 | ac_status=$? |
|
|
3401 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3402 | rm -f conftest.er1 |
|
|
3403 | cat conftest.err >&5 |
|
|
3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3405 | (exit $ac_status); } >/dev/null; then |
|
|
3406 | if test -s conftest.err; then |
|
|
3407 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3408 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3409 | else |
|
|
3410 | ac_cpp_err= |
|
|
3411 | fi |
|
|
3412 | else |
|
|
3413 | ac_cpp_err=yes |
|
|
3414 | fi |
|
|
3415 | if test -z "$ac_cpp_err"; then |
|
|
3416 | # Broken: success on invalid input. |
|
|
3417 | continue |
|
|
3418 | else |
|
|
3419 | echo "$as_me: failed program was:" >&5 |
|
|
3420 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3421 | |
|
|
3422 | # Passes both tests. |
|
|
3423 | ac_preproc_ok=: |
|
|
3424 | break |
|
|
3425 | fi |
|
|
3426 | rm -f conftest.err conftest.$ac_ext |
|
|
3427 | |
|
|
3428 | done |
|
|
3429 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3430 | rm -f conftest.err conftest.$ac_ext |
|
|
3431 | if $ac_preproc_ok; then |
|
|
3432 | : |
|
|
3433 | else |
|
|
3434 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3435 | See \`config.log' for more details." >&5 |
|
|
3436 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3437 | See \`config.log' for more details." >&2;} |
|
|
3438 | { (exit 1); exit 1; }; } |
|
|
3439 | fi |
|
|
3440 | |
|
|
3441 | ac_ext=cc |
|
|
3442 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3443 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3444 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3445 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3446 | |
3056 | |
3447 | |
3057 | |
3448 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3058 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3449 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3059 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3450 | if test "${ac_cv_prog_egrep+set}" = set; then |
3060 | if test "${ac_cv_prog_egrep+set}" = set; then |
… | |
… | |
3525 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
3526 | rm -f conftest.er1 |
3136 | rm -f conftest.er1 |
3527 | cat conftest.err >&5 |
3137 | cat conftest.err >&5 |
3528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3529 | (exit $ac_status); } && |
3139 | (exit $ac_status); } && |
3530 | { 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' |
3531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3532 | (eval $ac_try) 2>&5 |
3142 | (eval $ac_try) 2>&5 |
3533 | ac_status=$? |
3143 | ac_status=$? |
3534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3535 | (exit $ac_status); }; } && |
3145 | (exit $ac_status); }; } && |
… | |
… | |
3579 | grep -v '^ *+' conftest.er1 >conftest.err |
3189 | grep -v '^ *+' conftest.er1 >conftest.err |
3580 | rm -f conftest.er1 |
3190 | rm -f conftest.er1 |
3581 | cat conftest.err >&5 |
3191 | cat conftest.err >&5 |
3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3583 | (exit $ac_status); } && |
3193 | (exit $ac_status); } && |
3584 | { 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' |
3585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3586 | (eval $ac_try) 2>&5 |
3196 | (eval $ac_try) 2>&5 |
3587 | ac_status=$? |
3197 | ac_status=$? |
3588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3589 | (exit $ac_status); }; } && |
3199 | (exit $ac_status); }; } && |
… | |
… | |
3610 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
3220 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
3611 | if test "$ac_cv_search_strerror" != no; then |
3221 | if test "$ac_cv_search_strerror" != no; then |
3612 | 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" |
3613 | |
3223 | |
3614 | 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 |
3615 | |
3383 | |
3616 | |
3384 | |
3617 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
3385 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
3618 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
3386 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
3619 | if test "${ac_cv_func_setlocale+set}" = set; then |
3387 | if test "${ac_cv_func_setlocale+set}" = set; then |
… | |
… | |
4317 | conftest$ac_exeext conftest.$ac_ext |
4085 | conftest$ac_exeext conftest.$ac_ext |
4318 | |
4086 | |
4319 | |
4087 | |
4320 | MALLOC_TYPE=S |
4088 | MALLOC_TYPE=S |
4321 | |
4089 | |
4322 | support_addstrings=no |
|
|
4323 | support_frills=yes |
4090 | support_frills=yes |
4324 | support_inheritpixmap=no |
4091 | support_inheritpixmap=yes |
4325 | support_tinting=yes |
4092 | support_tinting=yes |
4326 | support_fading=yes |
4093 | support_fading=yes |
4327 | support_keepscrolling=yes |
4094 | support_keepscrolling=yes |
4328 | support_selectionscrolling=yes |
4095 | support_selectionscrolling=yes |
4329 | support_menubar=no |
|
|
4330 | support_mousewheel=yes |
4096 | support_mousewheel=yes |
4331 | support_mouseslipwheel=yes |
4097 | support_mouseslipwheel=yes |
4332 | support_utmp=yes |
4098 | support_utmp=yes |
4333 | support_wtmp=yes |
4099 | support_wtmp=yes |
4334 | support_lastlog=yes |
4100 | support_lastlog=yes |
… | |
… | |
4337 | support_scroll_rxvt=yes |
4103 | support_scroll_rxvt=yes |
4338 | support_scroll_next=yes |
4104 | support_scroll_next=yes |
4339 | support_scroll_xterm=yes |
4105 | support_scroll_xterm=yes |
4340 | support_scroll_plain=yes |
4106 | support_scroll_plain=yes |
4341 | support_xim=yes |
4107 | support_xim=yes |
4342 | support_xpm=no |
4108 | support_xpm=yes |
4343 | support_xft=yes |
4109 | support_xft=yes |
4344 | support_unicode3=no |
4110 | support_unicode3=no |
4345 | support_combining=yes |
4111 | support_combining=yes |
4346 | support_8bitctrls=no |
4112 | support_8bitctrls=no |
4347 | support_iso14755=yes |
4113 | support_iso14755=yes |
4348 | support_styles=yes |
4114 | support_styles=yes |
|
|
4115 | support_perl=yes |
4349 | codesets=all |
4116 | codesets=all |
4350 | |
4117 | |
4351 | |
4118 | |
4352 | if test "x$enable_shared" = xyes; then |
4119 | if test "x$enable_shared" = xyes; then |
4353 | |
4120 | |
… | |
… | |
4370 | support_tinting=no |
4137 | support_tinting=no |
4371 | support_fading=no |
4138 | support_fading=no |
4372 | support_keepscrolling=no |
4139 | support_keepscrolling=no |
4373 | support_selectionscrolling=no |
4140 | support_selectionscrolling=no |
4374 | support_lastlog=no |
4141 | support_lastlog=no |
4375 | support_menubar=no |
|
|
4376 | support_mousewheel=no |
4142 | support_mousewheel=no |
4377 | support_mouseslipwheel=no |
4143 | support_mouseslipwheel=no |
4378 | support_text_blink=no |
4144 | support_text_blink=no |
4379 | support_pointer_blank=no |
4145 | support_pointer_blank=no |
4380 | support_scroll_rxvt=no |
4146 | support_scroll_rxvt=no |
… | |
… | |
4389 | support_unicode3=no |
4155 | support_unicode3=no |
4390 | support_combining=no |
4156 | support_combining=no |
4391 | support_8bitctrls=no |
4157 | support_8bitctrls=no |
4392 | support_iso14755=no |
4158 | support_iso14755=no |
4393 | support_styles=no |
4159 | support_styles=no |
|
|
4160 | support_perl=no |
4394 | codesets= |
4161 | codesets= |
4395 | fi |
4162 | fi |
4396 | if test x$enableval = xyes; then |
4163 | if test x$enableval = xyes; then |
4397 | support_24bit=yes |
4164 | support_24bit=yes |
4398 | support_frills=yes |
4165 | support_frills=yes |
… | |
… | |
4400 | support_tinting=yes |
4167 | support_tinting=yes |
4401 | support_fading=yes |
4168 | support_fading=yes |
4402 | support_keepscrolling=yes |
4169 | support_keepscrolling=yes |
4403 | support_selectionscrolling=yes |
4170 | support_selectionscrolling=yes |
4404 | support_lastlog=yes |
4171 | support_lastlog=yes |
4405 | support_menubar=yes |
|
|
4406 | support_mousewheel=yes |
4172 | support_mousewheel=yes |
4407 | support_mouseslipwheel=yes |
4173 | support_mouseslipwheel=yes |
4408 | support_text_blink=yes |
4174 | support_text_blink=yes |
4409 | support_pointer_blank=yes |
4175 | support_pointer_blank=yes |
4410 | support_scroll_rxvt=yes |
4176 | support_scroll_rxvt=yes |
… | |
… | |
4419 | support_unicode3=yes |
4185 | support_unicode3=yes |
4420 | support_combining=yes |
4186 | support_combining=yes |
4421 | #support_8bitctrls=yes |
4187 | #support_8bitctrls=yes |
4422 | support_iso14755=yes |
4188 | support_iso14755=yes |
4423 | support_styles=yes |
4189 | support_styles=yes |
|
|
4190 | support_perl=yes |
4424 | codesets=all |
4191 | codesets=all |
4425 | fi |
4192 | fi |
4426 | |
4193 | |
4427 | fi; |
4194 | fi; |
4428 | |
4195 | |
… | |
… | |
4512 | if test x$enableval = xyes -o x$enableval = xno; then |
4279 | if test x$enableval = xyes -o x$enableval = xno; then |
4513 | support_fading=$enableval |
4280 | support_fading=$enableval |
4514 | fi |
4281 | fi |
4515 | fi; |
4282 | fi; |
4516 | |
4283 | |
4517 | # Check whether --enable-menubar or --disable-menubar was given. |
|
|
4518 | if test "${enable_menubar+set}" = set; then |
|
|
4519 | enableval="$enable_menubar" |
|
|
4520 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4521 | support_menubar=$enableval |
|
|
4522 | fi |
|
|
4523 | fi; |
|
|
4524 | |
|
|
4525 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
4284 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
4526 | if test "${enable_rxvt_scroll+set}" = set; then |
4285 | if test "${enable_rxvt_scroll+set}" = set; then |
4527 | enableval="$enable_rxvt_scroll" |
4286 | enableval="$enable_rxvt_scroll" |
4528 | if test x$enableval = xyes -o x$enableval = xno; then |
4287 | if test x$enableval = xyes -o x$enableval = xno; then |
4529 | support_scroll_rxvt=$enableval |
4288 | support_scroll_rxvt=$enableval |
… | |
… | |
4544 | if test x$enableval = xyes -o x$enableval = xno; then |
4303 | if test x$enableval = xyes -o x$enableval = xno; then |
4545 | support_scroll_xterm=$enableval |
4304 | support_scroll_xterm=$enableval |
4546 | fi |
4305 | fi |
4547 | fi; |
4306 | fi; |
4548 | |
4307 | |
|
|
4308 | # Check whether --enable-perl or --disable-perl was given. |
|
|
4309 | if test "${enable_perl+set}" = set; then |
|
|
4310 | enableval="$enable_perl" |
|
|
4311 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4312 | support_perl=$enableval |
|
|
4313 | fi |
|
|
4314 | fi; |
|
|
4315 | |
4549 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
4316 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
4550 | if test "${enable_plain_scroll+set}" = set; then |
4317 | if test "${enable_plain_scroll+set}" = set; then |
4551 | enableval="$enable_plain_scroll" |
4318 | enableval="$enable_plain_scroll" |
4552 | if test x$enableval = xyes -o x$enableval = xno; then |
4319 | if test x$enableval = xyes -o x$enableval = xno; then |
4553 | support_scroll_plain=$enableval |
4320 | support_scroll_plain=$enableval |
4554 | fi |
4321 | fi |
4555 | fi; |
4322 | fi; |
4556 | |
4323 | |
4557 | # Check whether --enable-half-shadow or --disable-half-shadow was given. |
|
|
4558 | if test "${enable_half_shadow+set}" = set; then |
|
|
4559 | enableval="$enable_half_shadow" |
|
|
4560 | if test x$enableval = xyes; then |
|
|
4561 | |
|
|
4562 | cat >>confdefs.h <<\_ACEOF |
|
|
4563 | #define HALFSHADOW 1 |
|
|
4564 | _ACEOF |
|
|
4565 | |
|
|
4566 | fi |
|
|
4567 | fi; |
|
|
4568 | |
4324 | |
4569 | |
4325 | |
4570 | # Check whether --with-codesets or --without-codesets was given. |
4326 | # Check whether --with-codesets or --without-codesets was given. |
4571 | if test "${with_codesets+set}" = set; then |
4327 | if test "${with_codesets+set}" = set; then |
4572 | withval="$with_codesets" |
4328 | withval="$with_codesets" |
… | |
… | |
4627 | _ACEOF |
4383 | _ACEOF |
4628 | |
4384 | |
4629 | fi |
4385 | fi |
4630 | fi; |
4386 | fi; |
4631 | |
4387 | |
4632 | # Check whether --enable-xgetdefault or --disable-xgetdefault was given. |
|
|
4633 | if test "${enable_xgetdefault+set}" = set; then |
|
|
4634 | enableval="$enable_xgetdefault" |
|
|
4635 | if test x$enableval = xyes; then |
|
|
4636 | |
|
|
4637 | cat >>confdefs.h <<\_ACEOF |
|
|
4638 | #define USE_XGETDEFAULT 1 |
|
|
4639 | _ACEOF |
|
|
4640 | |
|
|
4641 | fi |
|
|
4642 | fi; |
|
|
4643 | |
|
|
4644 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
4388 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
4645 | if test "${enable_8bitctrls+set}" = set; then |
4389 | if test "${enable_8bitctrls+set}" = set; then |
4646 | enableval="$enable_8bitctrls" |
4390 | enableval="$enable_8bitctrls" |
4647 | if test x$enableval = xyes -o x$enableval = xno; then |
4391 | if test x$enableval = xyes -o x$enableval = xno; then |
4648 | support_8bitctrls=$enableval |
4392 | support_8bitctrls=$enableval |
… | |
… | |
4707 | _ACEOF |
4451 | _ACEOF |
4708 | |
4452 | |
4709 | |
4453 | |
4710 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4454 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4711 | |
4455 | |
4712 | |
|
|
4713 | # Check whether --enable-strings or --disable-strings was given. |
|
|
4714 | if test "${enable_strings+set}" = set; then |
|
|
4715 | enableval="$enable_strings" |
|
|
4716 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4717 | support_addstrings=$enableval |
|
|
4718 | fi |
|
|
4719 | fi; |
|
|
4720 | |
4456 | |
4721 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4457 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4722 | if test "${enable_swapscreen+set}" = set; then |
4458 | if test "${enable_swapscreen+set}" = set; then |
4723 | enableval="$enable_swapscreen" |
4459 | enableval="$enable_swapscreen" |
4724 | if test x$enableval = xno; then |
4460 | if test x$enableval = xno; then |
… | |
… | |
4859 | #define RXVT_TERMINFO "$withval" |
4595 | #define RXVT_TERMINFO "$withval" |
4860 | _ACEOF |
4596 | _ACEOF |
4861 | terminfo="$withval" |
4597 | terminfo="$withval" |
4862 | fi |
4598 | fi |
4863 | fi; |
4599 | fi; |
4864 | |
|
|
4865 | |
|
|
4866 | |
|
|
4867 | cat >>confdefs.h <<\_ACEOF |
|
|
4868 | #define PROTOTYPES 1 |
|
|
4869 | _ACEOF |
|
|
4870 | |
4600 | |
4871 | |
4601 | |
4872 | # Extract the first word of "mv", so it can be a program name with args. |
4602 | # Extract the first word of "mv", so it can be a program name with args. |
4873 | set dummy mv; ac_word=$2 |
4603 | set dummy mv; ac_word=$2 |
4874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
5147 | else |
4877 | else |
5148 | echo "$as_me:$LINENO: result: no" >&5 |
4878 | echo "$as_me:$LINENO: result: no" >&5 |
5149 | echo "${ECHO_T}no" >&6 |
4879 | echo "${ECHO_T}no" >&6 |
5150 | fi |
4880 | fi |
5151 | |
4881 | |
5152 | # Extract the first word of "tbl", so it can be a program name with args. |
|
|
5153 | set dummy tbl; ac_word=$2 |
|
|
5154 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5155 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5156 | if test "${ac_cv_path_TBL+set}" = set; then |
|
|
5157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5158 | else |
|
|
5159 | case $TBL in |
|
|
5160 | [\\/]* | ?:[\\/]*) |
|
|
5161 | ac_cv_path_TBL="$TBL" # Let the user override the test with a path. |
|
|
5162 | ;; |
|
|
5163 | *) |
|
|
5164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5165 | for as_dir in $PATH |
|
|
5166 | do |
|
|
5167 | IFS=$as_save_IFS |
|
|
5168 | test -z "$as_dir" && as_dir=. |
|
|
5169 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5170 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5171 | ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" |
|
|
5172 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5173 | break 2 |
|
|
5174 | fi |
|
|
5175 | done |
|
|
5176 | done |
|
|
5177 | |
|
|
5178 | ;; |
|
|
5179 | esac |
|
|
5180 | fi |
|
|
5181 | TBL=$ac_cv_path_TBL |
|
|
5182 | |
|
|
5183 | if test -n "$TBL"; then |
|
|
5184 | echo "$as_me:$LINENO: result: $TBL" >&5 |
|
|
5185 | echo "${ECHO_T}$TBL" >&6 |
|
|
5186 | else |
|
|
5187 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5188 | echo "${ECHO_T}no" >&6 |
|
|
5189 | fi |
|
|
5190 | |
|
|
5191 | # Extract the first word of "tic", so it can be a program name with args. |
4882 | # Extract the first word of "tic", so it can be a program name with args. |
5192 | set dummy tic; ac_word=$2 |
4883 | set dummy tic; ac_word=$2 |
5193 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4884 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5194 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5195 | if test "${ac_cv_path_TIC+set}" = set; then |
4886 | if test "${ac_cv_path_TIC+set}" = set; then |
… | |
… | |
5226 | echo "$as_me:$LINENO: result: no" >&5 |
4917 | echo "$as_me:$LINENO: result: no" >&5 |
5227 | echo "${ECHO_T}no" >&6 |
4918 | echo "${ECHO_T}no" >&6 |
5228 | fi |
4919 | fi |
5229 | |
4920 | |
5230 | |
4921 | |
|
|
4922 | |
|
|
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 |
5231 | |
5153 | |
5232 | |
5154 | |
5233 | |
5155 | |
5234 | if test "x$ac_path_x_has_been_run" != xyes; then |
5156 | if test "x$ac_path_x_has_been_run" != xyes; then |
5235 | echo "$as_me:$LINENO: checking for X" >&5 |
5157 | echo "$as_me:$LINENO: checking for X" >&5 |
… | |
… | |
7289 | |
7211 | |
7290 | |
7212 | |
7291 | |
7213 | |
7292 | |
7214 | |
7293 | |
7215 | |
7294 | |
|
|
7295 | |
|
|
7296 | |
|
|
7297 | |
|
|
7298 | |
|
|
7299 | |
|
|
7300 | |
|
|
7301 | for ac_header in \ |
7216 | for ac_header in \ |
7302 | assert.h \ |
7217 | assert.h \ |
7303 | fcntl.h \ |
7218 | fcntl.h \ |
7304 | grp.h \ |
|
|
7305 | libc.h \ |
|
|
7306 | lastlog.h \ |
|
|
7307 | stdarg.h \ |
7219 | stdarg.h \ |
7308 | stdlib.h \ |
7220 | stdlib.h \ |
7309 | string.h \ |
7221 | string.h \ |
7310 | termios.h \ |
7222 | termios.h \ |
7311 | unistd.h \ |
7223 | unistd.h \ |
7312 | sys/byteorder.h \ |
7224 | sys/byteorder.h \ |
7313 | sys/ioctl.h \ |
7225 | sys/ioctl.h \ |
7314 | sys/select.h \ |
7226 | sys/select.h \ |
7315 | sys/sockio.h \ |
7227 | sys/sockio.h \ |
7316 | sys/strredir.h \ |
7228 | sys/strredir.h \ |
7317 | sys/stropts.h \ |
|
|
7318 | sys/time.h \ |
7229 | sys/time.h \ |
7319 | utmp.h \ |
7230 | stdint.h \ |
7320 | utmpx.h \ |
7231 | wchar.h \ |
7321 | stdint.h \ |
7232 | cwchar \ |
7322 | pty.h \ |
7233 | clocale \ |
7323 | wchar.h \ |
|
|
7324 | cwchar \ |
|
|
7325 | clocale \ |
|
|
7326 | |
7234 | |
7327 | do |
7235 | do |
7328 | 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` |
7329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
10157 | #define RETSIGTYPE $ac_cv_type_signal |
10065 | #define RETSIGTYPE $ac_cv_type_signal |
10158 | _ACEOF |
10066 | _ACEOF |
10159 | |
10067 | |
10160 | |
10068 | |
10161 | |
10069 | |
10162 | case "$host_alias" in |
|
|
10163 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
10164 | *) break;; |
|
|
10165 | esac |
|
|
10166 | |
|
|
10167 | |
|
|
10168 | |
|
|
10169 | |
|
|
10170 | |
|
|
10171 | |
|
|
10172 | |
|
|
10173 | |
|
|
10174 | |
|
|
10175 | |
|
|
10176 | |
|
|
10177 | |
|
|
10178 | |
|
|
10179 | |
10070 | |
10180 | |
10071 | |
10181 | |
10072 | |
10182 | |
10073 | |
10183 | |
10074 | |
10184 | |
10075 | |
10185 | |
10076 | |
10186 | for ac_func in \ |
10077 | for ac_func in \ |
10187 | atexit \ |
|
|
10188 | revoke \ |
|
|
10189 | unsetenv \ |
10078 | unsetenv \ |
10190 | setutent \ |
10079 | setutent \ |
10191 | seteuid \ |
10080 | seteuid \ |
|
|
10081 | setresuid \ |
10192 | setreuid \ |
10082 | setreuid \ |
10193 | setsid \ |
|
|
10194 | setpgrp \ |
|
|
10195 | setpgid \ |
|
|
10196 | openpty \ |
|
|
10197 | _getpty \ |
|
|
10198 | grantpt \ |
|
|
10199 | unlockpt \ |
|
|
10200 | isastream \ |
|
|
10201 | on_exit \ |
10083 | on_exit \ |
10202 | nanosleep \ |
10084 | nanosleep \ |
10203 | updwtmp \ |
|
|
10204 | updwtmpx \ |
|
|
10205 | ttyslot \ |
|
|
10206 | |
10085 | |
10207 | do |
10086 | do |
10208 | 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` |
10209 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10210 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
10302 | |
10181 | |
10303 | fi |
10182 | fi |
10304 | done |
10183 | done |
10305 | |
10184 | |
10306 | |
10185 | |
10307 | |
10186 | UTMP_CHECK |
10308 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10309 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10310 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10311 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10313 | fi |
|
|
10314 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10315 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10316 | else |
|
|
10317 | # Is the header compilable? |
|
|
10318 | echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10319 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
|
|
10320 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10321 | /* confdefs.h. */ |
|
|
10322 | _ACEOF |
|
|
10323 | cat confdefs.h >>conftest.$ac_ext |
|
|
10324 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10325 | /* end confdefs.h. */ |
|
|
10326 | $ac_includes_default |
|
|
10327 | #include <utmp.h> |
|
|
10328 | _ACEOF |
|
|
10329 | rm -f conftest.$ac_objext |
|
|
10330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10331 | (eval $ac_compile) 2>conftest.er1 |
|
|
10332 | ac_status=$? |
|
|
10333 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10334 | rm -f conftest.er1 |
|
|
10335 | cat conftest.err >&5 |
|
|
10336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10337 | (exit $ac_status); } && |
|
|
10338 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10340 | (eval $ac_try) 2>&5 |
|
|
10341 | ac_status=$? |
|
|
10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10343 | (exit $ac_status); }; } && |
|
|
10344 | { ac_try='test -s conftest.$ac_objext' |
|
|
10345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10346 | (eval $ac_try) 2>&5 |
|
|
10347 | ac_status=$? |
|
|
10348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10349 | (exit $ac_status); }; }; then |
|
|
10350 | ac_header_compiler=yes |
|
|
10351 | else |
|
|
10352 | echo "$as_me: failed program was:" >&5 |
|
|
10353 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10354 | |
|
|
10355 | ac_header_compiler=no |
|
|
10356 | fi |
|
|
10357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10358 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10359 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10360 | |
|
|
10361 | # Is the header present? |
|
|
10362 | echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
10363 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
|
|
10364 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10365 | /* confdefs.h. */ |
|
|
10366 | _ACEOF |
|
|
10367 | cat confdefs.h >>conftest.$ac_ext |
|
|
10368 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10369 | /* end confdefs.h. */ |
|
|
10370 | #include <utmp.h> |
|
|
10371 | _ACEOF |
|
|
10372 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10373 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10374 | ac_status=$? |
|
|
10375 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10376 | rm -f conftest.er1 |
|
|
10377 | cat conftest.err >&5 |
|
|
10378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10379 | (exit $ac_status); } >/dev/null; then |
|
|
10380 | if test -s conftest.err; then |
|
|
10381 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10382 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10383 | else |
|
|
10384 | ac_cpp_err= |
|
|
10385 | fi |
|
|
10386 | else |
|
|
10387 | ac_cpp_err=yes |
|
|
10388 | fi |
|
|
10389 | if test -z "$ac_cpp_err"; then |
|
|
10390 | ac_header_preproc=yes |
|
|
10391 | else |
|
|
10392 | echo "$as_me: failed program was:" >&5 |
|
|
10393 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10394 | |
|
|
10395 | ac_header_preproc=no |
|
|
10396 | fi |
|
|
10397 | rm -f conftest.err conftest.$ac_ext |
|
|
10398 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10399 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10400 | |
|
|
10401 | # So? What about this header? |
|
|
10402 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10403 | yes:no: ) |
|
|
10404 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10405 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10406 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
10407 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
10408 | ac_header_preproc=yes |
|
|
10409 | ;; |
|
|
10410 | no:yes:* ) |
|
|
10411 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
10412 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
10413 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
10414 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
10415 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
10416 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
10417 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10418 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10419 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
10420 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
10421 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
10422 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
10423 | ( |
|
|
10424 | cat <<\_ASBOX |
|
|
10425 | ## ------------------------------------------ ## |
|
|
10426 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10427 | ## ------------------------------------------ ## |
|
|
10428 | _ASBOX |
|
|
10429 | ) | |
|
|
10430 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10431 | ;; |
|
|
10432 | esac |
|
|
10433 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10434 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10435 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10437 | else |
|
|
10438 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
10439 | fi |
|
|
10440 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10441 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10442 | |
|
|
10443 | fi |
|
|
10444 | if test $ac_cv_header_utmp_h = yes; then |
|
|
10445 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
10446 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
|
|
10447 | if test "${rxvt_cv_struct_utmp+set}" = set; then |
|
|
10448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10449 | else |
|
|
10450 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10451 | /* confdefs.h. */ |
|
|
10452 | _ACEOF |
|
|
10453 | cat confdefs.h >>conftest.$ac_ext |
|
|
10454 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10455 | /* end confdefs.h. */ |
|
|
10456 | #include <sys/types.h> |
|
|
10457 | #include <stdint.h> |
|
|
10458 | #include <utmp.h> |
|
|
10459 | int |
|
|
10460 | main () |
|
|
10461 | { |
|
|
10462 | struct utmp ut; |
|
|
10463 | ; |
|
|
10464 | return 0; |
|
|
10465 | } |
|
|
10466 | _ACEOF |
|
|
10467 | rm -f conftest.$ac_objext |
|
|
10468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10469 | (eval $ac_compile) 2>conftest.er1 |
|
|
10470 | ac_status=$? |
|
|
10471 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10472 | rm -f conftest.er1 |
|
|
10473 | cat conftest.err >&5 |
|
|
10474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10475 | (exit $ac_status); } && |
|
|
10476 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10478 | (eval $ac_try) 2>&5 |
|
|
10479 | ac_status=$? |
|
|
10480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10481 | (exit $ac_status); }; } && |
|
|
10482 | { ac_try='test -s conftest.$ac_objext' |
|
|
10483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10484 | (eval $ac_try) 2>&5 |
|
|
10485 | ac_status=$? |
|
|
10486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10487 | (exit $ac_status); }; }; then |
|
|
10488 | rxvt_cv_struct_utmp=yes |
|
|
10489 | else |
|
|
10490 | echo "$as_me: failed program was:" >&5 |
|
|
10491 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10492 | |
|
|
10493 | rxvt_cv_struct_utmp=no |
|
|
10494 | fi |
|
|
10495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10496 | fi |
|
|
10497 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 |
|
|
10498 | echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 |
|
|
10499 | if test x$rxvt_cv_struct_utmp = xyes; then |
|
|
10500 | |
|
|
10501 | cat >>confdefs.h <<\_ACEOF |
|
|
10502 | #define HAVE_STRUCT_UTMP 1 |
|
|
10503 | _ACEOF |
|
|
10504 | |
|
|
10505 | fi |
|
|
10506 | |
|
|
10507 | |
|
|
10508 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
10509 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
|
|
10510 | if test "${rxvt_cv_struct_utmp_host+set}" = set; then |
|
|
10511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10512 | else |
|
|
10513 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10514 | /* confdefs.h. */ |
|
|
10515 | _ACEOF |
|
|
10516 | cat confdefs.h >>conftest.$ac_ext |
|
|
10517 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10518 | /* end confdefs.h. */ |
|
|
10519 | #include <sys/types.h> |
|
|
10520 | #include <utmp.h> |
|
|
10521 | int |
|
|
10522 | main () |
|
|
10523 | { |
|
|
10524 | struct utmp ut; ut.ut_host; |
|
|
10525 | ; |
|
|
10526 | return 0; |
|
|
10527 | } |
|
|
10528 | _ACEOF |
|
|
10529 | rm -f conftest.$ac_objext |
|
|
10530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10531 | (eval $ac_compile) 2>conftest.er1 |
|
|
10532 | ac_status=$? |
|
|
10533 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10534 | rm -f conftest.er1 |
|
|
10535 | cat conftest.err >&5 |
|
|
10536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10537 | (exit $ac_status); } && |
|
|
10538 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10540 | (eval $ac_try) 2>&5 |
|
|
10541 | ac_status=$? |
|
|
10542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10543 | (exit $ac_status); }; } && |
|
|
10544 | { ac_try='test -s conftest.$ac_objext' |
|
|
10545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10546 | (eval $ac_try) 2>&5 |
|
|
10547 | ac_status=$? |
|
|
10548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10549 | (exit $ac_status); }; }; then |
|
|
10550 | rxvt_cv_struct_utmp_host=yes |
|
|
10551 | else |
|
|
10552 | echo "$as_me: failed program was:" >&5 |
|
|
10553 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10554 | |
|
|
10555 | rxvt_cv_struct_utmp_host=no |
|
|
10556 | fi |
|
|
10557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10558 | fi |
|
|
10559 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 |
|
|
10560 | echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 |
|
|
10561 | if test x$rxvt_cv_struct_utmp_host = xyes; then |
|
|
10562 | |
|
|
10563 | cat >>confdefs.h <<\_ACEOF |
|
|
10564 | #define HAVE_UTMP_HOST 1 |
|
|
10565 | _ACEOF |
|
|
10566 | |
|
|
10567 | fi |
|
|
10568 | |
|
|
10569 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
10570 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
|
|
10571 | if test "${rxvt_cv_struct_utmp_pid+set}" = set; then |
|
|
10572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10573 | else |
|
|
10574 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10575 | /* confdefs.h. */ |
|
|
10576 | _ACEOF |
|
|
10577 | cat confdefs.h >>conftest.$ac_ext |
|
|
10578 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10579 | /* end confdefs.h. */ |
|
|
10580 | #include <sys/types.h> |
|
|
10581 | #include <utmp.h> |
|
|
10582 | int |
|
|
10583 | main () |
|
|
10584 | { |
|
|
10585 | struct utmp ut; ut.ut_pid; |
|
|
10586 | ; |
|
|
10587 | return 0; |
|
|
10588 | } |
|
|
10589 | _ACEOF |
|
|
10590 | rm -f conftest.$ac_objext |
|
|
10591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10592 | (eval $ac_compile) 2>conftest.er1 |
|
|
10593 | ac_status=$? |
|
|
10594 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10595 | rm -f conftest.er1 |
|
|
10596 | cat conftest.err >&5 |
|
|
10597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10598 | (exit $ac_status); } && |
|
|
10599 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10601 | (eval $ac_try) 2>&5 |
|
|
10602 | ac_status=$? |
|
|
10603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10604 | (exit $ac_status); }; } && |
|
|
10605 | { ac_try='test -s conftest.$ac_objext' |
|
|
10606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10607 | (eval $ac_try) 2>&5 |
|
|
10608 | ac_status=$? |
|
|
10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10610 | (exit $ac_status); }; }; then |
|
|
10611 | rxvt_cv_struct_utmp_pid=yes |
|
|
10612 | else |
|
|
10613 | echo "$as_me: failed program was:" >&5 |
|
|
10614 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10615 | |
|
|
10616 | rxvt_cv_struct_utmp_pid=no |
|
|
10617 | fi |
|
|
10618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10619 | fi |
|
|
10620 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 |
|
|
10621 | echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 |
|
|
10622 | if test x$rxvt_cv_struct_utmp_pid = xyes; then |
|
|
10623 | |
|
|
10624 | cat >>confdefs.h <<\_ACEOF |
|
|
10625 | #define HAVE_UTMP_PID 1 |
|
|
10626 | _ACEOF |
|
|
10627 | |
|
|
10628 | fi |
|
|
10629 | |
|
|
10630 | fi |
|
|
10631 | |
|
|
10632 | |
|
|
10633 | |
|
|
10634 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10635 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10636 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10637 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10639 | fi |
|
|
10640 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10641 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10642 | else |
|
|
10643 | # Is the header compilable? |
|
|
10644 | echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
10645 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
|
|
10646 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10647 | /* confdefs.h. */ |
|
|
10648 | _ACEOF |
|
|
10649 | cat confdefs.h >>conftest.$ac_ext |
|
|
10650 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10651 | /* end confdefs.h. */ |
|
|
10652 | $ac_includes_default |
|
|
10653 | #include <utmpx.h> |
|
|
10654 | _ACEOF |
|
|
10655 | rm -f conftest.$ac_objext |
|
|
10656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10657 | (eval $ac_compile) 2>conftest.er1 |
|
|
10658 | ac_status=$? |
|
|
10659 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10660 | rm -f conftest.er1 |
|
|
10661 | cat conftest.err >&5 |
|
|
10662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10663 | (exit $ac_status); } && |
|
|
10664 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10666 | (eval $ac_try) 2>&5 |
|
|
10667 | ac_status=$? |
|
|
10668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10669 | (exit $ac_status); }; } && |
|
|
10670 | { ac_try='test -s conftest.$ac_objext' |
|
|
10671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10672 | (eval $ac_try) 2>&5 |
|
|
10673 | ac_status=$? |
|
|
10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10675 | (exit $ac_status); }; }; then |
|
|
10676 | ac_header_compiler=yes |
|
|
10677 | else |
|
|
10678 | echo "$as_me: failed program was:" >&5 |
|
|
10679 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10680 | |
|
|
10681 | ac_header_compiler=no |
|
|
10682 | fi |
|
|
10683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10684 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10685 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10686 | |
|
|
10687 | # Is the header present? |
|
|
10688 | echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
10689 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
|
|
10690 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10691 | /* confdefs.h. */ |
|
|
10692 | _ACEOF |
|
|
10693 | cat confdefs.h >>conftest.$ac_ext |
|
|
10694 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10695 | /* end confdefs.h. */ |
|
|
10696 | #include <utmpx.h> |
|
|
10697 | _ACEOF |
|
|
10698 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10699 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10700 | ac_status=$? |
|
|
10701 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10702 | rm -f conftest.er1 |
|
|
10703 | cat conftest.err >&5 |
|
|
10704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10705 | (exit $ac_status); } >/dev/null; then |
|
|
10706 | if test -s conftest.err; then |
|
|
10707 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10708 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10709 | else |
|
|
10710 | ac_cpp_err= |
|
|
10711 | fi |
|
|
10712 | else |
|
|
10713 | ac_cpp_err=yes |
|
|
10714 | fi |
|
|
10715 | if test -z "$ac_cpp_err"; then |
|
|
10716 | ac_header_preproc=yes |
|
|
10717 | else |
|
|
10718 | echo "$as_me: failed program was:" >&5 |
|
|
10719 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10720 | |
|
|
10721 | ac_header_preproc=no |
|
|
10722 | fi |
|
|
10723 | rm -f conftest.err conftest.$ac_ext |
|
|
10724 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10725 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10726 | |
|
|
10727 | # So? What about this header? |
|
|
10728 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10729 | yes:no: ) |
|
|
10730 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10731 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10732 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
10733 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
10734 | ac_header_preproc=yes |
|
|
10735 | ;; |
|
|
10736 | no:yes:* ) |
|
|
10737 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
10738 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
10739 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
10740 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
10741 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
10742 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
10743 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10744 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10745 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
10746 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
10747 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
10748 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
10749 | ( |
|
|
10750 | cat <<\_ASBOX |
|
|
10751 | ## ------------------------------------------ ## |
|
|
10752 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10753 | ## ------------------------------------------ ## |
|
|
10754 | _ASBOX |
|
|
10755 | ) | |
|
|
10756 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10757 | ;; |
|
|
10758 | esac |
|
|
10759 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10760 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10761 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10763 | else |
|
|
10764 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
10765 | fi |
|
|
10766 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10767 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10768 | |
|
|
10769 | fi |
|
|
10770 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
10771 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
10772 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
|
|
10773 | if test "${rxvt_cv_struct_utmpx+set}" = set; then |
|
|
10774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10775 | else |
|
|
10776 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10777 | /* confdefs.h. */ |
|
|
10778 | _ACEOF |
|
|
10779 | cat confdefs.h >>conftest.$ac_ext |
|
|
10780 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10781 | /* end confdefs.h. */ |
|
|
10782 | #include <sys/types.h> |
|
|
10783 | #include <utmpx.h> |
|
|
10784 | int |
|
|
10785 | main () |
|
|
10786 | { |
|
|
10787 | struct utmpx ut; |
|
|
10788 | ; |
|
|
10789 | return 0; |
|
|
10790 | } |
|
|
10791 | _ACEOF |
|
|
10792 | rm -f conftest.$ac_objext |
|
|
10793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10794 | (eval $ac_compile) 2>conftest.er1 |
|
|
10795 | ac_status=$? |
|
|
10796 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10797 | rm -f conftest.er1 |
|
|
10798 | cat conftest.err >&5 |
|
|
10799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10800 | (exit $ac_status); } && |
|
|
10801 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10803 | (eval $ac_try) 2>&5 |
|
|
10804 | ac_status=$? |
|
|
10805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10806 | (exit $ac_status); }; } && |
|
|
10807 | { ac_try='test -s conftest.$ac_objext' |
|
|
10808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10809 | (eval $ac_try) 2>&5 |
|
|
10810 | ac_status=$? |
|
|
10811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10812 | (exit $ac_status); }; }; then |
|
|
10813 | rxvt_cv_struct_utmpx=yes |
|
|
10814 | else |
|
|
10815 | echo "$as_me: failed program was:" >&5 |
|
|
10816 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10817 | |
|
|
10818 | rxvt_cv_struct_utmpx=no |
|
|
10819 | fi |
|
|
10820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10821 | fi |
|
|
10822 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 |
|
|
10823 | echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 |
|
|
10824 | if test x$rxvt_cv_struct_utmpx = xyes; then |
|
|
10825 | |
|
|
10826 | cat >>confdefs.h <<\_ACEOF |
|
|
10827 | #define HAVE_STRUCT_UTMPX 1 |
|
|
10828 | _ACEOF |
|
|
10829 | |
|
|
10830 | fi |
|
|
10831 | |
|
|
10832 | |
|
|
10833 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
10834 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
|
|
10835 | if test "${rxvt_cv_struct_utmpx_host+set}" = set; then |
|
|
10836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10837 | else |
|
|
10838 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10839 | /* confdefs.h. */ |
|
|
10840 | _ACEOF |
|
|
10841 | cat confdefs.h >>conftest.$ac_ext |
|
|
10842 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10843 | /* end confdefs.h. */ |
|
|
10844 | #include <sys/types.h> |
|
|
10845 | #include <utmpx.h> |
|
|
10846 | int |
|
|
10847 | main () |
|
|
10848 | { |
|
|
10849 | struct utmpx utx; utx.ut_host; |
|
|
10850 | ; |
|
|
10851 | return 0; |
|
|
10852 | } |
|
|
10853 | _ACEOF |
|
|
10854 | rm -f conftest.$ac_objext |
|
|
10855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10856 | (eval $ac_compile) 2>conftest.er1 |
|
|
10857 | ac_status=$? |
|
|
10858 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10859 | rm -f conftest.er1 |
|
|
10860 | cat conftest.err >&5 |
|
|
10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10862 | (exit $ac_status); } && |
|
|
10863 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10865 | (eval $ac_try) 2>&5 |
|
|
10866 | ac_status=$? |
|
|
10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10868 | (exit $ac_status); }; } && |
|
|
10869 | { ac_try='test -s conftest.$ac_objext' |
|
|
10870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10871 | (eval $ac_try) 2>&5 |
|
|
10872 | ac_status=$? |
|
|
10873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10874 | (exit $ac_status); }; }; then |
|
|
10875 | rxvt_cv_struct_utmpx_host=yes |
|
|
10876 | else |
|
|
10877 | echo "$as_me: failed program was:" >&5 |
|
|
10878 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10879 | |
|
|
10880 | rxvt_cv_struct_utmpx_host=no |
|
|
10881 | fi |
|
|
10882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10883 | fi |
|
|
10884 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 |
|
|
10885 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 |
|
|
10886 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
|
|
10887 | |
|
|
10888 | cat >>confdefs.h <<\_ACEOF |
|
|
10889 | #define HAVE_UTMPX_HOST 1 |
|
|
10890 | _ACEOF |
|
|
10891 | |
|
|
10892 | fi |
|
|
10893 | |
|
|
10894 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
10895 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
10896 | if test "${rxvt_cv_struct_utmpx_session+set}" = set; then |
|
|
10897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10898 | else |
|
|
10899 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10900 | /* confdefs.h. */ |
|
|
10901 | _ACEOF |
|
|
10902 | cat confdefs.h >>conftest.$ac_ext |
|
|
10903 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10904 | /* end confdefs.h. */ |
|
|
10905 | #include <sys/types.h> |
|
|
10906 | #include <utmpx.h> |
|
|
10907 | int |
|
|
10908 | main () |
|
|
10909 | { |
|
|
10910 | struct utmpx utx; utx.ut_session; |
|
|
10911 | ; |
|
|
10912 | return 0; |
|
|
10913 | } |
|
|
10914 | _ACEOF |
|
|
10915 | rm -f conftest.$ac_objext |
|
|
10916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10917 | (eval $ac_compile) 2>conftest.er1 |
|
|
10918 | ac_status=$? |
|
|
10919 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10920 | rm -f conftest.er1 |
|
|
10921 | cat conftest.err >&5 |
|
|
10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10923 | (exit $ac_status); } && |
|
|
10924 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10926 | (eval $ac_try) 2>&5 |
|
|
10927 | ac_status=$? |
|
|
10928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10929 | (exit $ac_status); }; } && |
|
|
10930 | { ac_try='test -s conftest.$ac_objext' |
|
|
10931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10932 | (eval $ac_try) 2>&5 |
|
|
10933 | ac_status=$? |
|
|
10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10935 | (exit $ac_status); }; }; then |
|
|
10936 | rxvt_cv_struct_utmpx_session=yes |
|
|
10937 | else |
|
|
10938 | echo "$as_me: failed program was:" >&5 |
|
|
10939 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10940 | |
|
|
10941 | rxvt_cv_struct_utmpx_session=no |
|
|
10942 | fi |
|
|
10943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10944 | fi |
|
|
10945 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 |
|
|
10946 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 |
|
|
10947 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
10948 | |
|
|
10949 | cat >>confdefs.h <<\_ACEOF |
|
|
10950 | #define HAVE_UTMPX_SESSION 1 |
|
|
10951 | _ACEOF |
|
|
10952 | |
|
|
10953 | fi |
|
|
10954 | |
|
|
10955 | fi |
|
|
10956 | |
|
|
10957 | |
|
|
10958 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
10959 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
|
|
10960 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
|
|
10961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10962 | else |
|
|
10963 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10964 | /* confdefs.h. */ |
|
|
10965 | _ACEOF |
|
|
10966 | cat confdefs.h >>conftest.$ac_ext |
|
|
10967 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10968 | /* end confdefs.h. */ |
|
|
10969 | #include <sys/types.h> |
|
|
10970 | #include <utmp.h> |
|
|
10971 | #ifdef HAVE_LASTLOG_H |
|
|
10972 | #include <lastlog.h> |
|
|
10973 | #endif |
|
|
10974 | |
|
|
10975 | int |
|
|
10976 | main () |
|
|
10977 | { |
|
|
10978 | struct lastlog ll; |
|
|
10979 | ; |
|
|
10980 | return 0; |
|
|
10981 | } |
|
|
10982 | _ACEOF |
|
|
10983 | rm -f conftest.$ac_objext |
|
|
10984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10985 | (eval $ac_compile) 2>conftest.er1 |
|
|
10986 | ac_status=$? |
|
|
10987 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10988 | rm -f conftest.er1 |
|
|
10989 | cat conftest.err >&5 |
|
|
10990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10991 | (exit $ac_status); } && |
|
|
10992 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10994 | (eval $ac_try) 2>&5 |
|
|
10995 | ac_status=$? |
|
|
10996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10997 | (exit $ac_status); }; } && |
|
|
10998 | { ac_try='test -s conftest.$ac_objext' |
|
|
10999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11000 | (eval $ac_try) 2>&5 |
|
|
11001 | ac_status=$? |
|
|
11002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11003 | (exit $ac_status); }; }; then |
|
|
11004 | rxvt_cv_struct_lastlog=yes |
|
|
11005 | else |
|
|
11006 | echo "$as_me: failed program was:" >&5 |
|
|
11007 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11008 | |
|
|
11009 | rxvt_cv_struct_lastlog=no |
|
|
11010 | fi |
|
|
11011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11012 | fi |
|
|
11013 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 |
|
|
11014 | echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 |
|
|
11015 | if test x$rxvt_cv_struct_lastlog = xyes; then |
|
|
11016 | |
|
|
11017 | cat >>confdefs.h <<\_ACEOF |
|
|
11018 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
11019 | _ACEOF |
|
|
11020 | |
|
|
11021 | fi |
|
|
11022 | |
|
|
11023 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
11024 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
|
|
11025 | if test "${rxvt_cv_struct_lastlogx+set}" = set; then |
|
|
11026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11027 | else |
|
|
11028 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11029 | /* confdefs.h. */ |
|
|
11030 | _ACEOF |
|
|
11031 | cat confdefs.h >>conftest.$ac_ext |
|
|
11032 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11033 | /* end confdefs.h. */ |
|
|
11034 | #include <sys/types.h> |
|
|
11035 | #include <utmpx.h> |
|
|
11036 | #ifdef HAVE_LASTLOG_H |
|
|
11037 | #include <lastlog.h> |
|
|
11038 | #endif |
|
|
11039 | |
|
|
11040 | int |
|
|
11041 | main () |
|
|
11042 | { |
|
|
11043 | struct lastlogx ll; |
|
|
11044 | ; |
|
|
11045 | return 0; |
|
|
11046 | } |
|
|
11047 | _ACEOF |
|
|
11048 | rm -f conftest.$ac_objext |
|
|
11049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11050 | (eval $ac_compile) 2>conftest.er1 |
|
|
11051 | ac_status=$? |
|
|
11052 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11053 | rm -f conftest.er1 |
|
|
11054 | cat conftest.err >&5 |
|
|
11055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11056 | (exit $ac_status); } && |
|
|
11057 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11059 | (eval $ac_try) 2>&5 |
|
|
11060 | ac_status=$? |
|
|
11061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11062 | (exit $ac_status); }; } && |
|
|
11063 | { ac_try='test -s conftest.$ac_objext' |
|
|
11064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11065 | (eval $ac_try) 2>&5 |
|
|
11066 | ac_status=$? |
|
|
11067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11068 | (exit $ac_status); }; }; then |
|
|
11069 | rxvt_cv_struct_lastlogx=yes |
|
|
11070 | else |
|
|
11071 | echo "$as_me: failed program was:" >&5 |
|
|
11072 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11073 | |
|
|
11074 | rxvt_cv_struct_lastlogx=no |
|
|
11075 | fi |
|
|
11076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11077 | fi |
|
|
11078 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 |
|
|
11079 | echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 |
|
|
11080 | if test x$rxvt_cv_struct_lastlogx = xyes; then |
|
|
11081 | |
|
|
11082 | cat >>confdefs.h <<\_ACEOF |
|
|
11083 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
11084 | _ACEOF |
|
|
11085 | |
|
|
11086 | fi |
|
|
11087 | |
|
|
11088 | |
|
|
11089 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
11090 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
|
|
11091 | if test "${rxvt_cv_path_utmp+set}" = set; then |
|
|
11092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11093 | else |
|
|
11094 | if test "$cross_compiling" = yes; then |
|
|
11095 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 |
|
|
11096 | echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} |
|
|
11097 | else |
|
|
11098 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11099 | /* confdefs.h. */ |
|
|
11100 | _ACEOF |
|
|
11101 | cat confdefs.h >>conftest.$ac_ext |
|
|
11102 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11103 | /* end confdefs.h. */ |
|
|
11104 | #include <stdio.h> |
|
|
11105 | #include <sys/types.h> |
|
|
11106 | #include <utmp.h> |
|
|
11107 | #include <errno.h> |
|
|
11108 | main() |
|
|
11109 | { |
|
|
11110 | char **u, *utmplist[] = { |
|
|
11111 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
11112 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11113 | if (!f) exit(1); |
|
|
11114 | #ifdef UTMP_FILE |
|
|
11115 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
11116 | exit(0); |
|
|
11117 | #endif |
|
|
11118 | #ifdef _PATH_UTMP |
|
|
11119 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
11120 | exit(0); |
|
|
11121 | #endif |
|
|
11122 | for (u = utmplist; *u; u++) { |
|
|
11123 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11124 | fprintf(f, "%s\n", *u); |
|
|
11125 | exit(0); |
|
|
11126 | } |
|
|
11127 | } |
|
|
11128 | exit(0); |
|
|
11129 | } |
|
|
11130 | _ACEOF |
|
|
11131 | rm -f conftest$ac_exeext |
|
|
11132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11133 | (eval $ac_link) 2>&5 |
|
|
11134 | ac_status=$? |
|
|
11135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11136 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11138 | (eval $ac_try) 2>&5 |
|
|
11139 | ac_status=$? |
|
|
11140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11141 | (exit $ac_status); }; }; then |
|
|
11142 | rxvt_cv_path_utmp=`cat conftestval` |
|
|
11143 | else |
|
|
11144 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11145 | echo "$as_me: failed program was:" >&5 |
|
|
11146 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11147 | |
|
|
11148 | ( exit $ac_status ) |
|
|
11149 | rxvt_cv_path_utmp= |
|
|
11150 | fi |
|
|
11151 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11152 | fi |
|
|
11153 | fi |
|
|
11154 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 |
|
|
11155 | echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 |
|
|
11156 | if test x$rxvt_cv_path_utmp != x; then |
|
|
11157 | |
|
|
11158 | cat >>confdefs.h <<_ACEOF |
|
|
11159 | #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" |
|
|
11160 | _ACEOF |
|
|
11161 | |
|
|
11162 | fi |
|
|
11163 | |
|
|
11164 | |
|
|
11165 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
11166 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
|
|
11167 | if test "${rxvt_cv_path_utmpx+set}" = set; then |
|
|
11168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11169 | else |
|
|
11170 | if test "$cross_compiling" = yes; then |
|
|
11171 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 |
|
|
11172 | echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} |
|
|
11173 | else |
|
|
11174 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11175 | /* confdefs.h. */ |
|
|
11176 | _ACEOF |
|
|
11177 | cat confdefs.h >>conftest.$ac_ext |
|
|
11178 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11179 | /* end confdefs.h. */ |
|
|
11180 | #include <stdio.h> |
|
|
11181 | #include <sys/types.h> |
|
|
11182 | #include <utmpx.h> |
|
|
11183 | #include <errno.h> |
|
|
11184 | #include <sys/stat.h> |
|
|
11185 | #ifdef HAVE_STRING_H |
|
|
11186 | #include <string.h> |
|
|
11187 | #endif |
|
|
11188 | main() |
|
|
11189 | { |
|
|
11190 | char **u, *p, *utmplist[] = { |
|
|
11191 | #ifdef UTMPX_FILE |
|
|
11192 | UTMPX_FILE, |
|
|
11193 | #endif |
|
|
11194 | #ifdef _PATH_UTMPX |
|
|
11195 | _PATH_UTMPX, |
|
|
11196 | #endif |
|
|
11197 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
11198 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11199 | struct stat statu, statux; |
|
|
11200 | if (!f) exit(1); |
|
|
11201 | for (u = utmplist; *u; u++) { |
|
|
11202 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11203 | if (stat(*u, &statux) < 0) |
|
|
11204 | continue; |
|
|
11205 | p = strdup(*u); |
|
|
11206 | p[strlen(p) - 1] = '\0'; |
|
|
11207 | if (stat(p, &statu) >= 0 |
|
|
11208 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
11209 | continue; |
|
|
11210 | fprintf(f, "%s\n", *u); |
|
|
11211 | exit(0); |
|
|
11212 | } |
|
|
11213 | } |
|
|
11214 | exit(0); |
|
|
11215 | } |
|
|
11216 | _ACEOF |
|
|
11217 | rm -f conftest$ac_exeext |
|
|
11218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11219 | (eval $ac_link) 2>&5 |
|
|
11220 | ac_status=$? |
|
|
11221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11224 | (eval $ac_try) 2>&5 |
|
|
11225 | ac_status=$? |
|
|
11226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11227 | (exit $ac_status); }; }; then |
|
|
11228 | rxvt_cv_path_utmpx=`cat conftestval` |
|
|
11229 | else |
|
|
11230 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11231 | echo "$as_me: failed program was:" >&5 |
|
|
11232 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11233 | |
|
|
11234 | ( exit $ac_status ) |
|
|
11235 | rxvt_cv_path_utmpx= |
|
|
11236 | fi |
|
|
11237 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11238 | fi |
|
|
11239 | fi |
|
|
11240 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 |
|
|
11241 | echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 |
|
|
11242 | if test x$rxvt_cv_path_utmpx != x; then |
|
|
11243 | |
|
|
11244 | cat >>confdefs.h <<_ACEOF |
|
|
11245 | #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" |
|
|
11246 | _ACEOF |
|
|
11247 | |
|
|
11248 | fi |
|
|
11249 | |
|
|
11250 | |
|
|
11251 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
11252 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
|
|
11253 | if test "${rxvt_cv_path_wtmp+set}" = set; then |
|
|
11254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11255 | else |
|
|
11256 | if test "$cross_compiling" = yes; then |
|
|
11257 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 |
|
|
11258 | echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} |
|
|
11259 | else |
|
|
11260 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11261 | /* confdefs.h. */ |
|
|
11262 | _ACEOF |
|
|
11263 | cat confdefs.h >>conftest.$ac_ext |
|
|
11264 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11265 | /* end confdefs.h. */ |
|
|
11266 | #include <stdio.h> |
|
|
11267 | #include <sys/types.h> |
|
|
11268 | #ifdef HAVE_UTMP_H |
|
|
11269 | #include <utmp.h> |
|
|
11270 | #endif |
|
|
11271 | #include <errno.h> |
|
|
11272 | main() |
|
|
11273 | { |
|
|
11274 | char **w, *wtmplist[] = { |
|
|
11275 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
11276 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11277 | if (!f) exit(1); |
|
|
11278 | #ifdef WTMP_FILE |
|
|
11279 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
11280 | exit(0); |
|
|
11281 | #endif |
|
|
11282 | #ifdef _PATH_WTMP |
|
|
11283 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
11284 | exit(0); |
|
|
11285 | #endif |
|
|
11286 | for (w = wtmplist; *w; w++) { |
|
|
11287 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11288 | fprintf(f, "%s\n", *w); |
|
|
11289 | exit(0); |
|
|
11290 | } |
|
|
11291 | } |
|
|
11292 | exit(0); |
|
|
11293 | } |
|
|
11294 | _ACEOF |
|
|
11295 | rm -f conftest$ac_exeext |
|
|
11296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11297 | (eval $ac_link) 2>&5 |
|
|
11298 | ac_status=$? |
|
|
11299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11300 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11302 | (eval $ac_try) 2>&5 |
|
|
11303 | ac_status=$? |
|
|
11304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11305 | (exit $ac_status); }; }; then |
|
|
11306 | rxvt_cv_path_wtmp=`cat conftestval` |
|
|
11307 | else |
|
|
11308 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11309 | echo "$as_me: failed program was:" >&5 |
|
|
11310 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11311 | |
|
|
11312 | ( exit $ac_status ) |
|
|
11313 | rxvt_cv_path_wtmp= |
|
|
11314 | fi |
|
|
11315 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11316 | fi |
|
|
11317 | fi |
|
|
11318 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 |
|
|
11319 | echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 |
|
|
11320 | if test x$rxvt_cv_path_wtmp != x; then |
|
|
11321 | |
|
|
11322 | cat >>confdefs.h <<_ACEOF |
|
|
11323 | #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" |
|
|
11324 | _ACEOF |
|
|
11325 | |
|
|
11326 | fi |
|
|
11327 | |
|
|
11328 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
11329 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
|
|
11330 | if test "${rxvt_cv_path_wtmpx+set}" = set; then |
|
|
11331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11332 | else |
|
|
11333 | if test "$cross_compiling" = yes; then |
|
|
11334 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 |
|
|
11335 | echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} |
|
|
11336 | else |
|
|
11337 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11338 | /* confdefs.h. */ |
|
|
11339 | _ACEOF |
|
|
11340 | cat confdefs.h >>conftest.$ac_ext |
|
|
11341 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11342 | /* end confdefs.h. */ |
|
|
11343 | #include <stdio.h> |
|
|
11344 | #ifdef HAVE_UTMPX_H |
|
|
11345 | #include <utmpx.h> |
|
|
11346 | #endif |
|
|
11347 | #include <errno.h> |
|
|
11348 | main() |
|
|
11349 | { |
|
|
11350 | char **w, *wtmplist[] = { |
|
|
11351 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
11352 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11353 | if (!f) exit(1); |
|
|
11354 | #ifdef WTMPX_FILE |
|
|
11355 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
11356 | exit(0); |
|
|
11357 | #endif |
|
|
11358 | #ifdef _PATH_WTMPX |
|
|
11359 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
11360 | exit(0); |
|
|
11361 | #endif |
|
|
11362 | for (w = wtmplist; *w; w++) { |
|
|
11363 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11364 | fprintf(f, "%s\n", *w); |
|
|
11365 | exit(0); |
|
|
11366 | } |
|
|
11367 | } |
|
|
11368 | exit(0); |
|
|
11369 | } |
|
|
11370 | _ACEOF |
|
|
11371 | rm -f conftest$ac_exeext |
|
|
11372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11373 | (eval $ac_link) 2>&5 |
|
|
11374 | ac_status=$? |
|
|
11375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11378 | (eval $ac_try) 2>&5 |
|
|
11379 | ac_status=$? |
|
|
11380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11381 | (exit $ac_status); }; }; then |
|
|
11382 | rxvt_cv_path_wtmpx=`cat conftestval` |
|
|
11383 | else |
|
|
11384 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11385 | echo "$as_me: failed program was:" >&5 |
|
|
11386 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11387 | |
|
|
11388 | ( exit $ac_status ) |
|
|
11389 | rxvt_cv_path_wtmpx= |
|
|
11390 | fi |
|
|
11391 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11392 | fi |
|
|
11393 | fi |
|
|
11394 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 |
|
|
11395 | echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 |
|
|
11396 | if test x$rxvt_cv_path_wtmpx != x; then |
|
|
11397 | |
|
|
11398 | cat >>confdefs.h <<_ACEOF |
|
|
11399 | #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" |
|
|
11400 | _ACEOF |
|
|
11401 | |
|
|
11402 | fi |
|
|
11403 | |
|
|
11404 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
11405 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
|
|
11406 | if test "${rxvt_cv_path_lastlog+set}" = set; then |
|
|
11407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11408 | else |
|
|
11409 | if test "$cross_compiling" = yes; then |
|
|
11410 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 |
|
|
11411 | echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
11412 | else |
|
|
11413 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11414 | /* confdefs.h. */ |
|
|
11415 | _ACEOF |
|
|
11416 | cat confdefs.h >>conftest.$ac_ext |
|
|
11417 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11418 | /* end confdefs.h. */ |
|
|
11419 | #include <stdio.h> |
|
|
11420 | #include <sys/types.h> |
|
|
11421 | #ifdef HAVE_UTMPX_H |
|
|
11422 | #include <utmpx.h> |
|
|
11423 | #elif defined(HAVE_UTMP_H) |
|
|
11424 | #include <utmp.h> |
|
|
11425 | #endif |
|
|
11426 | #ifdef HAVE_LASTLOG_H |
|
|
11427 | #include <lastlog.h> |
|
|
11428 | #endif |
|
|
11429 | #include <errno.h> |
|
|
11430 | main() |
|
|
11431 | { |
|
|
11432 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
11433 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11434 | if (!f) exit(1); |
|
|
11435 | #ifdef LASTLOG_FILE |
|
|
11436 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
11437 | exit(0); |
|
|
11438 | #endif |
|
|
11439 | #ifdef _PATH_LASTLOG |
|
|
11440 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
11441 | exit(0); |
|
|
11442 | #endif |
|
|
11443 | for (w = lastloglist; *w; w++) { |
|
|
11444 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11445 | fprintf(f, "%s\n", *w); |
|
|
11446 | exit(0); |
|
|
11447 | } |
|
|
11448 | } |
|
|
11449 | exit(0); |
|
|
11450 | } |
|
|
11451 | _ACEOF |
|
|
11452 | rm -f conftest$ac_exeext |
|
|
11453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11454 | (eval $ac_link) 2>&5 |
|
|
11455 | ac_status=$? |
|
|
11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11457 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11459 | (eval $ac_try) 2>&5 |
|
|
11460 | ac_status=$? |
|
|
11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11462 | (exit $ac_status); }; }; then |
|
|
11463 | rxvt_cv_path_lastlog=`cat conftestval` |
|
|
11464 | else |
|
|
11465 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11466 | echo "$as_me: failed program was:" >&5 |
|
|
11467 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11468 | |
|
|
11469 | ( exit $ac_status ) |
|
|
11470 | rxvt_cv_path_lastlog= |
|
|
11471 | fi |
|
|
11472 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11473 | fi |
|
|
11474 | fi |
|
|
11475 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 |
|
|
11476 | echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 |
|
|
11477 | if test x$rxvt_cv_path_lastlog != x; then |
|
|
11478 | |
|
|
11479 | cat >>confdefs.h <<_ACEOF |
|
|
11480 | #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" |
|
|
11481 | _ACEOF |
|
|
11482 | |
|
|
11483 | if test -d "$rxvt_cv_path_lastlog"; then |
|
|
11484 | |
|
|
11485 | cat >>confdefs.h <<\_ACEOF |
|
|
11486 | #define LASTLOG_IS_DIR 1 |
|
|
11487 | _ACEOF |
|
|
11488 | |
|
|
11489 | fi |
|
|
11490 | fi |
|
|
11491 | |
|
|
11492 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
11493 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
|
|
11494 | if test "${rxvt_cv_path_lastlogx+set}" = set; then |
|
|
11495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11496 | else |
|
|
11497 | if test "$cross_compiling" = yes; then |
|
|
11498 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
11499 | echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
11500 | else |
|
|
11501 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11502 | /* confdefs.h. */ |
|
|
11503 | _ACEOF |
|
|
11504 | cat confdefs.h >>conftest.$ac_ext |
|
|
11505 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11506 | /* end confdefs.h. */ |
|
|
11507 | #include <stdio.h> |
|
|
11508 | #ifdef HAVE_UTMPX_H |
|
|
11509 | #include <utmpx.h> |
|
|
11510 | #endif |
|
|
11511 | #include <errno.h> |
|
|
11512 | main() |
|
|
11513 | { |
|
|
11514 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
11515 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11516 | if (!f) exit(1); |
|
|
11517 | #ifdef LASTLOGX_FILE |
|
|
11518 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
11519 | exit(0); |
|
|
11520 | #endif |
|
|
11521 | #ifdef _PATH_LASTLOGX |
|
|
11522 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
11523 | exit(0); |
|
|
11524 | #endif |
|
|
11525 | for (w = wtmplist; *w; w++) { |
|
|
11526 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11527 | fprintf(f, "%s\n", *w); |
|
|
11528 | exit(0); |
|
|
11529 | } |
|
|
11530 | } |
|
|
11531 | exit(0); |
|
|
11532 | } |
|
|
11533 | _ACEOF |
|
|
11534 | rm -f conftest$ac_exeext |
|
|
11535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11536 | (eval $ac_link) 2>&5 |
|
|
11537 | ac_status=$? |
|
|
11538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11539 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11541 | (eval $ac_try) 2>&5 |
|
|
11542 | ac_status=$? |
|
|
11543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11544 | (exit $ac_status); }; }; then |
|
|
11545 | rxvt_cv_path_lastlogx=`cat conftestval` |
|
|
11546 | else |
|
|
11547 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11548 | echo "$as_me: failed program was:" >&5 |
|
|
11549 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11550 | |
|
|
11551 | ( exit $ac_status ) |
|
|
11552 | rxvt_cv_path_lastlogx= |
|
|
11553 | fi |
|
|
11554 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11555 | fi |
|
|
11556 | fi |
|
|
11557 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 |
|
|
11558 | echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 |
|
|
11559 | if test x$rxvt_cv_path_lastlogx != x; then |
|
|
11560 | |
|
|
11561 | cat >>confdefs.h <<_ACEOF |
|
|
11562 | #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" |
|
|
11563 | _ACEOF |
|
|
11564 | |
|
|
11565 | fi |
|
|
11566 | |
10187 | |
11567 | |
10188 | |
11568 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
10189 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11569 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
10190 | echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 |
11570 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
10191 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
… | |
… | |
11837 | #define HAVE_NL_LANGINFO 1 |
10458 | #define HAVE_NL_LANGINFO 1 |
11838 | _ACEOF |
10459 | _ACEOF |
11839 | |
10460 | |
11840 | fi |
10461 | fi |
11841 | |
10462 | |
11842 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
10463 | SCM_RIGHTS_CHECK |
11843 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11844 | if test "${rxvt_can_pass_fds+set}" = set; then |
|
|
11845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11846 | else |
|
|
11847 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11848 | /* confdefs.h. */ |
|
|
11849 | _ACEOF |
|
|
11850 | cat confdefs.h >>conftest.$ac_ext |
|
|
11851 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11852 | /* end confdefs.h. */ |
|
|
11853 | |
|
|
11854 | #include <sys/types.h> |
|
|
11855 | #include <sys/socket.h> |
|
|
11856 | |
|
|
11857 | int |
|
|
11858 | main () |
|
|
11859 | { |
|
|
11860 | |
|
|
11861 | { |
|
|
11862 | msghdr msg; |
|
|
11863 | iovec iov; |
|
|
11864 | char buf [100]; |
|
|
11865 | char data = 0; |
|
|
11866 | |
|
|
11867 | iov.iov_base = &data; |
|
|
11868 | iov.iov_len = 1; |
|
|
11869 | |
|
|
11870 | msg.msg_iov = &iov; |
|
|
11871 | msg.msg_iovlen = 1; |
|
|
11872 | msg.msg_control = buf; |
|
|
11873 | msg.msg_controllen = sizeof buf; |
|
|
11874 | |
|
|
11875 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11876 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11877 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11878 | cmsg->cmsg_len = 100; |
|
|
11879 | |
|
|
11880 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11881 | |
|
|
11882 | return sendmsg (3, &msg, 0); |
|
|
11883 | } |
|
|
11884 | |
|
|
11885 | ; |
|
|
11886 | return 0; |
|
|
11887 | } |
|
|
11888 | _ACEOF |
|
|
11889 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11890 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11891 | (eval $ac_link) 2>conftest.er1 |
|
|
11892 | ac_status=$? |
|
|
11893 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11894 | rm -f conftest.er1 |
|
|
11895 | cat conftest.err >&5 |
|
|
11896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11897 | (exit $ac_status); } && |
|
|
11898 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11900 | (eval $ac_try) 2>&5 |
|
|
11901 | ac_status=$? |
|
|
11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11903 | (exit $ac_status); }; } && |
|
|
11904 | { ac_try='test -s conftest$ac_exeext' |
|
|
11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11906 | (eval $ac_try) 2>&5 |
|
|
11907 | ac_status=$? |
|
|
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11909 | (exit $ac_status); }; }; then |
|
|
11910 | rxvt_can_pass_fds=yes |
|
|
11911 | else |
|
|
11912 | echo "$as_me: failed program was:" >&5 |
|
|
11913 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11914 | |
|
|
11915 | rxvt_can_pass_fds=no |
|
|
11916 | fi |
|
|
11917 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11918 | conftest$ac_exeext conftest.$ac_ext |
|
|
11919 | fi |
|
|
11920 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
|
|
11921 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
|
|
11922 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
11923 | |
|
|
11924 | cat >>confdefs.h <<\_ACEOF |
|
|
11925 | #define HAVE_UNIX_FDPASS 1 |
|
|
11926 | _ACEOF |
|
|
11927 | |
|
|
11928 | fi |
|
|
11929 | |
10464 | |
11930 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
10465 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
11931 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
10466 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
11932 | if test "${rxvt_broken_ximcb+set}" = set; then |
10467 | if test "${rxvt_broken_ximcb+set}" = set; then |
11933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11983 | #define XIMCB_PROTO_BROKEN 1 |
10518 | #define XIMCB_PROTO_BROKEN 1 |
11984 | _ACEOF |
10519 | _ACEOF |
11985 | |
10520 | |
11986 | fi |
10521 | fi |
11987 | |
10522 | |
|
|
10523 | PTY_CHECK |
|
|
10524 | |
|
|
10525 | if test x$support_xft = xyes; then |
|
|
10526 | # Extract the first word of "pkg-config", so it can be a program name with args. |
|
|
10527 | set dummy pkg-config; ac_word=$2 |
11988 | echo "$as_me:$LINENO: checking for getpt" >&5 |
10528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11989 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
10529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
11990 | if test "${rxvt_cv_func_getpt+set}" = set; then |
10530 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
11991 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11992 | else |
10532 | else |
11993 | cat >conftest.$ac_ext <<_ACEOF |
10533 | case $PKG_CONFIG in |
11994 | /* confdefs.h. */ |
10534 | [\\/]* | ?:[\\/]*) |
11995 | _ACEOF |
10535 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11996 | cat confdefs.h >>conftest.$ac_ext |
|
|
11997 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11998 | /* end confdefs.h. */ |
|
|
11999 | #define _GNU_SOURCE |
|
|
12000 | #ifdef HAVE_STDLIB_H |
|
|
12001 | # include <cstdlib> |
|
|
12002 | #endif |
|
|
12003 | int |
|
|
12004 | main () |
|
|
12005 | { |
|
|
12006 | (void)getpt(); |
|
|
12007 | ; |
10536 | ;; |
12008 | return 0; |
10537 | *) |
12009 | } |
10538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12010 | _ACEOF |
10539 | for as_dir in $PATH |
12011 | rm -f conftest.$ac_objext conftest$ac_exeext |
10540 | do |
12012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10541 | IFS=$as_save_IFS |
12013 | (eval $ac_link) 2>conftest.er1 |
10542 | test -z "$as_dir" && as_dir=. |
12014 | ac_status=$? |
10543 | for ac_exec_ext in '' $ac_executable_extensions; do |
12015 | grep -v '^ *+' conftest.er1 >conftest.err |
10544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12016 | rm -f conftest.er1 |
10545 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12017 | cat conftest.err >&5 |
10546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10547 | break 2 |
12019 | (exit $ac_status); } && |
10548 | fi |
12020 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10549 | done |
12021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10550 | done |
12022 | (eval $ac_try) 2>&5 |
|
|
12023 | ac_status=$? |
|
|
12024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12025 | (exit $ac_status); }; } && |
|
|
12026 | { ac_try='test -s conftest$ac_exeext' |
|
|
12027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12028 | (eval $ac_try) 2>&5 |
|
|
12029 | ac_status=$? |
|
|
12030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12031 | (exit $ac_status); }; }; then |
|
|
12032 | rxvt_cv_func_getpt=yes |
|
|
12033 | else |
|
|
12034 | echo "$as_me: failed program was:" >&5 |
|
|
12035 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12036 | |
10551 | |
12037 | rxvt_cv_func_getpt=no |
10552 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
10553 | ;; |
|
|
10554 | esac |
12038 | fi |
10555 | fi |
12039 | rm -f conftest.err conftest.$ac_objext \ |
10556 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
12040 | conftest$ac_exeext conftest.$ac_ext |
10557 | |
12041 | fi |
10558 | if test -n "$PKG_CONFIG"; then |
|
|
10559 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
|
|
10560 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
|
|
10561 | else |
12042 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
10562 | echo "$as_me:$LINENO: result: no" >&5 |
12043 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
10563 | echo "${ECHO_T}no" >&6 |
12044 | if test x$rxvt_cv_func_getpt = xyes; then |
|
|
12045 | |
|
|
12046 | cat >>confdefs.h <<\_ACEOF |
|
|
12047 | #define HAVE_GETPT 1 |
|
|
12048 | _ACEOF |
|
|
12049 | |
|
|
12050 | fi |
10564 | fi |
12051 | |
10565 | |
|
|
10566 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
10567 | set dummy xft-config; ac_word=$2 |
12052 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
10568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12053 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
10569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
12054 | if test "${rxvt_cv_ptys+set}" = set; then |
10570 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
12055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12056 | else |
10572 | else |
12057 | if test x$ac_cv_func_openpty = xyes; then |
10573 | case $XFT_CONFIG in |
12058 | rxvt_cv_ptys=OPENPTY |
10574 | [\\/]* | ?:[\\/]*) |
12059 | else if test x$ac_cv_func__getpty = xyes; then |
10575 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
12060 | rxvt_cv_ptys=SGI4 |
10576 | ;; |
12061 | else if test -c /dev/ttyp20; then |
10577 | *) |
12062 | rxvt_cv_ptys=SCO |
10578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12063 | else if test -c /dev/ptym/clone; then |
10579 | for as_dir in $PATH |
12064 | rxvt_cv_ptys=HPUX |
10580 | do |
12065 | else if test x$rxvt_cv_func_getpt = xyes; then |
10581 | IFS=$as_save_IFS |
12066 | rxvt_cv_ptys=GLIBC |
10582 | test -z "$as_dir" && as_dir=. |
12067 | else if test -c /dev/ptc -a -c /dev/pts; then |
10583 | for ac_exec_ext in '' $ac_executable_extensions; do |
12068 | rxvt_cv_ptys=PTC |
10584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
12069 | else if test -c /dev/ptc -a -d /dev/pts; then |
10585 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12070 | rxvt_cv_ptys=PTC |
10586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
12071 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
10587 | break 2 |
12072 | rxvt_cv_ptys=STREAMS |
10588 | fi |
12073 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
10589 | done |
12074 | rxvt_cv_ptys=STREAMS |
10590 | done |
|
|
10591 | |
|
|
10592 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
10593 | ;; |
|
|
10594 | esac |
|
|
10595 | fi |
|
|
10596 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
10597 | |
|
|
10598 | if test -n "$XFT_CONFIG"; then |
|
|
10599 | echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 |
|
|
10600 | echo "${ECHO_T}$XFT_CONFIG" >&6 |
|
|
10601 | else |
|
|
10602 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
10603 | echo "${ECHO_T}no" >&6 |
|
|
10604 | fi |
|
|
10605 | |
|
|
10606 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
|
|
10607 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
|
|
10608 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
12075 | else |
10609 | else |
12076 | rxvt_cv_ptys=BSD |
10610 | if test $XFT_CONFIG != no; then |
12077 | fi |
10611 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
12078 | fi |
10612 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
12079 | fi |
10613 | fi |
12080 | fi |
10614 | fi |
12081 | fi |
|
|
12082 | fi |
|
|
12083 | fi |
|
|
12084 | fi |
|
|
12085 | fi |
|
|
12086 | |
|
|
12087 | fi |
|
|
12088 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
|
|
12089 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
|
|
12090 | |
|
|
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 = xCONVEX; then |
|
|
12127 | |
|
|
12128 | cat >>confdefs.h <<\_ACEOF |
|
|
12129 | #define PTYS_ARE_GETPTY 1 |
|
|
12130 | _ACEOF |
|
|
12131 | |
|
|
12132 | fi |
|
|
12133 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
12134 | |
|
|
12135 | cat >>confdefs.h <<\_ACEOF |
|
|
12136 | #define PTYS_ARE_GETPT 1 |
|
|
12137 | _ACEOF |
|
|
12138 | |
|
|
12139 | fi |
|
|
12140 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
12141 | |
|
|
12142 | cat >>confdefs.h <<\_ACEOF |
|
|
12143 | #define PTYS_ARE_CLONE 1 |
|
|
12144 | _ACEOF |
|
|
12145 | |
|
|
12146 | fi |
|
|
12147 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
|
|
12148 | |
|
|
12149 | cat >>confdefs.h <<\_ACEOF |
|
|
12150 | #define PTYS_ARE_SEARCHED 1 |
|
|
12151 | _ACEOF |
|
|
12152 | |
|
|
12153 | fi |
|
|
12154 | |
|
|
12155 | |
|
|
12156 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
12157 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
12158 | ptys=`echo /dev/pty??` |
|
|
12159 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
12160 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
12161 | if test x$pch1 != x; then |
|
|
12162 | |
|
|
12163 | cat >>confdefs.h <<_ACEOF |
|
|
12164 | #define PTYCHAR1 "$pch1" |
|
|
12165 | _ACEOF |
|
|
12166 | |
|
|
12167 | fi |
|
|
12168 | if test x$pch2 != x; then |
|
|
12169 | |
|
|
12170 | cat >>confdefs.h <<_ACEOF |
|
|
12171 | #define PTYCHAR2 "$pch2" |
|
|
12172 | _ACEOF |
|
|
12173 | |
|
|
12174 | fi |
|
|
12175 | |
|
|
12176 | if test x$support_xft = xyes; then |
|
|
12177 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
12178 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
12179 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
12180 | |
10615 | |
12181 | |
10616 | |
12182 | for ac_header in X11/Xft/Xft.h |
10617 | for ac_header in X11/Xft/Xft.h |
12183 | do |
10618 | do |
12184 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10619 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
… | |
… | |
12467 | cat >>confdefs.h <<\_ACEOF |
10902 | cat >>confdefs.h <<\_ACEOF |
12468 | #define SELECTION_SCROLLING 1 |
10903 | #define SELECTION_SCROLLING 1 |
12469 | _ACEOF |
10904 | _ACEOF |
12470 | |
10905 | |
12471 | fi |
10906 | fi |
12472 | if test x$support_menubar = xyes; then |
|
|
12473 | |
|
|
12474 | cat >>confdefs.h <<\_ACEOF |
|
|
12475 | #define MENUBAR 1 |
|
|
12476 | _ACEOF |
|
|
12477 | |
|
|
12478 | fi |
|
|
12479 | if test x$support_frills = xyes; then |
10907 | if test x$support_frills = xyes; then |
12480 | |
10908 | |
12481 | cat >>confdefs.h <<\_ACEOF |
10909 | cat >>confdefs.h <<\_ACEOF |
12482 | #define ENABLE_FRILLS 1 |
10910 | #define ENABLE_FRILLS 1 |
12483 | _ACEOF |
10911 | _ACEOF |
… | |
… | |
12641 | #define ENCODING_ZH_EXT 1 |
11069 | #define ENCODING_ZH_EXT 1 |
12642 | _ACEOF |
11070 | _ACEOF |
12643 | ;; |
11071 | ;; |
12644 | esac |
11072 | esac |
12645 | done |
11073 | done |
|
|
11074 | |
|
|
11075 | IF_PERL=\# |
|
|
11076 | if test x$support_perl = xyes; then |
|
|
11077 | # Extract the first word of "perl5", so it can be a program name with args. |
|
|
11078 | set dummy perl5; ac_word=$2 |
|
|
11079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
11080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
11081 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
11082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11083 | else |
|
|
11084 | case $PERL in |
|
|
11085 | [\\/]* | ?:[\\/]*) |
|
|
11086 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
11087 | ;; |
|
|
11088 | *) |
|
|
11089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
11090 | for as_dir in $PATH |
|
|
11091 | do |
|
|
11092 | IFS=$as_save_IFS |
|
|
11093 | test -z "$as_dir" && as_dir=. |
|
|
11094 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
11095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
11096 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
11097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
11098 | break 2 |
|
|
11099 | fi |
|
|
11100 | done |
|
|
11101 | done |
|
|
11102 | |
|
|
11103 | ;; |
|
|
11104 | esac |
|
|
11105 | fi |
|
|
11106 | PERL=$ac_cv_path_PERL |
|
|
11107 | |
|
|
11108 | if test -n "$PERL"; then |
|
|
11109 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
11110 | echo "${ECHO_T}$PERL" >&6 |
|
|
11111 | else |
|
|
11112 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
11113 | echo "${ECHO_T}no" >&6 |
|
|
11114 | fi |
|
|
11115 | |
|
|
11116 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
11117 | set dummy perl; ac_word=$2 |
|
|
11118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
11119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
11120 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
11121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11122 | else |
|
|
11123 | case $PERL in |
|
|
11124 | [\\/]* | ?:[\\/]*) |
|
|
11125 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
11126 | ;; |
|
|
11127 | *) |
|
|
11128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
11129 | for as_dir in $PATH |
|
|
11130 | do |
|
|
11131 | IFS=$as_save_IFS |
|
|
11132 | test -z "$as_dir" && as_dir=. |
|
|
11133 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
11134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
11135 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
11136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
11137 | break 2 |
|
|
11138 | fi |
|
|
11139 | done |
|
|
11140 | done |
|
|
11141 | |
|
|
11142 | ;; |
|
|
11143 | esac |
|
|
11144 | fi |
|
|
11145 | PERL=$ac_cv_path_PERL |
|
|
11146 | |
|
|
11147 | if test -n "$PERL"; then |
|
|
11148 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
11149 | echo "${ECHO_T}$PERL" >&6 |
|
|
11150 | else |
|
|
11151 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
11152 | echo "${ECHO_T}no" >&6 |
|
|
11153 | fi |
|
|
11154 | |
|
|
11155 | |
|
|
11156 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
|
|
11157 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
|
|
11158 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
|
|
11159 | |
|
|
11160 | save_CXXFLAGS="$CXXFLAGS" |
|
|
11161 | save_LIBS="$LIBS" |
|
|
11162 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
|
|
11163 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
|
|
11164 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11165 | /* confdefs.h. */ |
|
|
11166 | _ACEOF |
|
|
11167 | cat confdefs.h >>conftest.$ac_ext |
|
|
11168 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11169 | /* end confdefs.h. */ |
|
|
11170 | |
|
|
11171 | #include <EXTERN.h> |
|
|
11172 | #include <perl.h> |
|
|
11173 | #include <XSUB.h> |
|
|
11174 | |
|
|
11175 | int |
|
|
11176 | main () |
|
|
11177 | { |
|
|
11178 | |
|
|
11179 | PerlInterpreter *perl = perl_alloc (); |
|
|
11180 | |
|
|
11181 | ; |
|
|
11182 | return 0; |
|
|
11183 | } |
|
|
11184 | _ACEOF |
|
|
11185 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11187 | (eval $ac_link) 2>conftest.er1 |
|
|
11188 | ac_status=$? |
|
|
11189 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11190 | rm -f conftest.er1 |
|
|
11191 | cat conftest.err >&5 |
|
|
11192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11193 | (exit $ac_status); } && |
|
|
11194 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11196 | (eval $ac_try) 2>&5 |
|
|
11197 | ac_status=$? |
|
|
11198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11199 | (exit $ac_status); }; } && |
|
|
11200 | { ac_try='test -s conftest$ac_exeext' |
|
|
11201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11202 | (eval $ac_try) 2>&5 |
|
|
11203 | ac_status=$? |
|
|
11204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11205 | (exit $ac_status); }; }; then |
|
|
11206 | rxvt_perl_link=yes |
|
|
11207 | else |
|
|
11208 | echo "$as_me: failed program was:" >&5 |
|
|
11209 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11210 | |
|
|
11211 | rxvt_perl_link=no |
|
|
11212 | fi |
|
|
11213 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11214 | conftest$ac_exeext conftest.$ac_ext |
|
|
11215 | CXXFLAGS="$save_CXXFLAGS" |
|
|
11216 | LIBS="$save_LIBS" |
|
|
11217 | |
|
|
11218 | if test x$rxvt_perl_link = xyes; then |
|
|
11219 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
11220 | echo "${ECHO_T}ok" >&6 |
|
|
11221 | |
|
|
11222 | cat >>confdefs.h <<\_ACEOF |
|
|
11223 | #define ENABLE_PERL 1 |
|
|
11224 | _ACEOF |
|
|
11225 | |
|
|
11226 | IF_PERL= |
|
|
11227 | PERL_O=rxvtperl.o |
|
|
11228 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
|
|
11229 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
|
|
11230 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
|
|
11231 | else |
|
|
11232 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
|
|
11233 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
11234 | { (exit 1); exit 1; }; } |
|
|
11235 | fi |
|
|
11236 | else |
|
|
11237 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
|
|
11238 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
|
|
11239 | { (exit 1); exit 1; }; } |
|
|
11240 | fi |
|
|
11241 | fi |
|
|
11242 | |
|
|
11243 | |
|
|
11244 | |
|
|
11245 | |
|
|
11246 | |
|
|
11247 | |
|
|
11248 | |
|
|
11249 | if test x$support_perl = xyes; then |
|
|
11250 | support_frills=yes |
|
|
11251 | fi |
12646 | |
11252 | |
12647 | |
11253 | |
12648 | CFLAGS=${CFLAGS--O} |
11254 | CFLAGS=${CFLAGS--O} |
12649 | LDFLAGS=${LDFLAGS--O} |
11255 | LDFLAGS=${LDFLAGS--O} |
12650 | |
11256 | |
… | |
… | |
12664 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
11270 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
12665 | fi |
11271 | fi |
12666 | |
11272 | |
12667 | |
11273 | |
12668 | |
11274 | |
12669 | |
|
|
12670 | |
|
|
12671 | if test x$support_addstrings = xno; then |
|
|
12672 | |
|
|
12673 | cat >>confdefs.h <<\_ACEOF |
|
|
12674 | #define NO_STRINGS 1 |
|
|
12675 | _ACEOF |
|
|
12676 | |
|
|
12677 | fi |
|
|
12678 | |
|
|
12679 | MCOMMON=./autoconf/Make.common |
|
|
12680 | |
11275 | |
12681 | |
11276 | |
12682 | test "$program_prefix" != NONE && |
11277 | test "$program_prefix" != NONE && |
12683 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
11278 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
12684 | # Use a double $ so make ignores it. |
11279 | # Use a double $ so make ignores it. |
… | |
… | |
12760 | include_time_h="#include <time.h>" |
11355 | include_time_h="#include <time.h>" |
12761 | else |
11356 | else |
12762 | include_time_h="/* #include <time.h> */" |
11357 | include_time_h="/* #include <time.h> */" |
12763 | fi |
11358 | fi |
12764 | |
11359 | |
12765 | ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
11360 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
12766 | |
11361 | |
12767 | cat >confcache <<\_ACEOF |
11362 | cat >confcache <<\_ACEOF |
12768 | # This file is a shell script that caches the results of configure |
11363 | # This file is a shell script that caches the results of configure |
12769 | # tests run on this system so they can be shared between configure |
11364 | # tests run on this system so they can be shared between configure |
12770 | # scripts and configure runs, see configure's option --config-cache. |
11365 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13287 | cat >>$CONFIG_STATUS <<\_ACEOF |
11882 | cat >>$CONFIG_STATUS <<\_ACEOF |
13288 | for ac_config_target in $ac_config_targets |
11883 | for ac_config_target in $ac_config_targets |
13289 | do |
11884 | do |
13290 | case "$ac_config_target" in |
11885 | case "$ac_config_target" in |
13291 | # Handling of arguments. |
11886 | # Handling of arguments. |
13292 | "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; |
|
|
13293 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
11887 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13294 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
11888 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13295 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
11889 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13296 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
11890 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
13297 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; |
11891 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
13298 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11892 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13299 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
11893 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13300 | { (exit 1); exit 1; }; };; |
11894 | { (exit 1); exit 1; }; };; |
13301 | esac |
11895 | esac |
13302 | done |
11896 | done |
… | |
… | |
13403 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
11997 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
13404 | s,@CPP@,$CPP,;t t |
11998 | s,@CPP@,$CPP,;t t |
13405 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
11999 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
13406 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
12000 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
13407 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
12001 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
13408 | s,@AWK@,$AWK,;t t |
12002 | s,@EGREP@,$EGREP,;t t |
13409 | s,@LINKER@,$LINKER,;t t |
12003 | s,@LINKER@,$LINKER,;t t |
13410 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
13411 | s,@EGREP@,$EGREP,;t t |
|
|
13412 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
12004 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
13413 | s,@RXVTNAME@,$RXVTNAME,;t t |
12005 | s,@RXVTNAME@,$RXVTNAME,;t t |
13414 | s,@MV@,$MV,;t t |
12006 | s,@MV@,$MV,;t t |
13415 | s,@RM@,$RM,;t t |
12007 | s,@RM@,$RM,;t t |
13416 | s,@CP@,$CP,;t t |
12008 | s,@CP@,$CP,;t t |
13417 | s,@LN@,$LN,;t t |
12009 | s,@LN@,$LN,;t t |
13418 | s,@SED@,$SED,;t t |
12010 | s,@SED@,$SED,;t t |
13419 | s,@ECHO@,$ECHO,;t t |
12011 | s,@ECHO@,$ECHO,;t t |
13420 | s,@CMP@,$CMP,;t t |
12012 | s,@CMP@,$CMP,;t t |
13421 | s,@TBL@,$TBL,;t t |
|
|
13422 | s,@TIC@,$TIC,;t t |
12013 | s,@TIC@,$TIC,;t t |
|
|
12014 | s,@CXXCPP@,$CXXCPP,;t t |
13423 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
12015 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
13424 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
12016 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
13425 | s,@X_LIBS@,$X_LIBS,;t t |
12017 | s,@X_LIBS@,$X_LIBS,;t t |
13426 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
12018 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
13427 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
12019 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
… | |
… | |
13431 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
12023 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
13432 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
12024 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
13433 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
12025 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
13434 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
12026 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
13435 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
12027 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
|
|
12028 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
|
|
12029 | s,@XFT_CONFIG@,$XFT_CONFIG,;t t |
|
|
12030 | s,@PERL@,$PERL,;t t |
|
|
12031 | s,@PERLLIB@,$PERLLIB,;t t |
|
|
12032 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
|
|
12033 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
|
|
12034 | s,@IF_PERL@,$IF_PERL,;t t |
|
|
12035 | s,@PERL_O@,$PERL_O,;t t |
13436 | s,@DEBUG@,$DEBUG,;t t |
12036 | s,@DEBUG@,$DEBUG,;t t |
13437 | s,@DINCLUDE@,$DINCLUDE,;t t |
12037 | s,@DINCLUDE@,$DINCLUDE,;t t |
13438 | s,@DLIB@,$DLIB,;t t |
12038 | s,@DLIB@,$DLIB,;t t |
13439 | s,@include_stdint_h@,$include_stdint_h,;t t |
12039 | s,@include_stdint_h@,$include_stdint_h,;t t |
13440 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
12040 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
… | |
… | |
13449 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
12049 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
13450 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
12050 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
13451 | s,@include_time_h@,$include_time_h,;t t |
12051 | s,@include_time_h@,$include_time_h,;t t |
13452 | s,@LIBOBJS@,$LIBOBJS,;t t |
12052 | s,@LIBOBJS@,$LIBOBJS,;t t |
13453 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
12053 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
13454 | /@MCOMMON@/r $MCOMMON |
|
|
13455 | s,@MCOMMON@,,;t t |
|
|
13456 | CEOF |
12054 | CEOF |
13457 | |
12055 | |
13458 | _ACEOF |
12056 | _ACEOF |
13459 | |
12057 | |
13460 | cat >>$CONFIG_STATUS <<\_ACEOF |
12058 | cat >>$CONFIG_STATUS <<\_ACEOF |
… | |
… | |
13970 | fi |
12568 | fi |
13971 | |
12569 | |
13972 | echo " |
12570 | echo " |
13973 | The following are set in config.h |
12571 | The following are set in config.h |
13974 | " |
12572 | " |
13975 | echo " pty/tty type: "$rxvt_cv_ptys |
|
|
13976 | if test x$support_utmp != xyes; then |
12573 | if test x$support_utmp != xyes; then |
13977 | echo " utmp support: disabled" |
12574 | echo " utmp support: disabled" |
13978 | echo |
12575 | echo |
13979 | else |
12576 | else |
13980 | echo " utmp support: enabled |
12577 | echo " utmp support: enabled |
13981 | utmp file: $rxvt_cv_path_utmp |
12578 | utmp file: $rxvt_cv_path_utmp |
13982 | utmpx file: $rxvt_cv_path_utmpx |
12579 | utmpx file: $rxvt_cv_path_utmpx |
13983 | wtmp file: $rxvt_cv_path_wtmp |
12580 | wtmp file: $rxvt_cv_path_wtmp |
13984 | wtmpx file: $rxvt_cv_path_wtmpx |
12581 | wtmpx file: $rxvt_cv_path_wtmpx |
13985 | lastlog file: $rxvt_cv_path_lastlog |
12582 | lastlog file: $rxvt_cv_path_lastlog |
13986 | ttys/ttytab file: $rxvt_cv_path_ttytab" |
12583 | ttys/ttytab file: $rxvt_cv_path_ttytab |
|
|
12584 | embedded perl: $support_perl" |
13987 | echo |
12585 | echo |
13988 | fi |
12586 | fi |
13989 | if test x$term != x; then |
12587 | if test x$term != x; then |
13990 | echo " set TERM to: $term" |
12588 | echo " set TERM to: $term" |
13991 | fi |
12589 | fi |
… | |
… | |
13996 | echo " resource class: $RESCLASS" |
12594 | echo " resource class: $RESCLASS" |
13997 | if test x$RESFALLBACK != x; then |
12595 | if test x$RESFALLBACK != x; then |
13998 | echo " resource class fallback: $RESFALLBACK" |
12596 | echo " resource class fallback: $RESFALLBACK" |
13999 | fi |
12597 | fi |
14000 | echo |
12598 | echo |
14001 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
|
|
14002 | echo ".----------------------------------------------------------------." |
|
|
14003 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
|
|
14004 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
14005 | echo ".----------------------------------------------------------------." |
|
|
14006 | fi |
|
|
14007 | if test x$support_xpm = xneedsmanualspecification; then |
12599 | if test x$support_xpm = xneedsmanualspecification; then |
14008 | echo ".----------------------------------------------------------------." |
12600 | echo ".----------------------------------------------------------------." |
14009 | echo ". WARNING: --enable-xpm-background was specified however the ." |
12601 | echo ". WARNING: --enable-xpm-background was specified however the ." |
14010 | echo ". XPM includes files and libraries could not be found. ." |
12602 | echo ". XPM includes files and libraries could not be found. ." |
14011 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
12603 | echo ". XPM backgrounds are now being DISABLED! If you want ." |