… | |
… | |
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 |
… | |
… | |
4097 | fi |
3865 | fi |
4098 | |
3866 | |
4099 | fi |
3867 | fi |
4100 | |
3868 | |
4101 | |
3869 | |
|
|
3870 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
|
|
3871 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 |
|
|
3872 | if test "${ac_cv_func_sched_yield+set}" = set; then |
|
|
3873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3874 | else |
|
|
3875 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3876 | /* confdefs.h. */ |
|
|
3877 | _ACEOF |
|
|
3878 | cat confdefs.h >>conftest.$ac_ext |
|
|
3879 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3880 | /* end confdefs.h. */ |
|
|
3881 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
|
|
3882 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3883 | #define sched_yield innocuous_sched_yield |
|
|
3884 | |
|
|
3885 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3886 | which can conflict with char sched_yield (); below. |
|
|
3887 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3888 | <limits.h> exists even on freestanding compilers. */ |
|
|
3889 | |
|
|
3890 | #ifdef __STDC__ |
|
|
3891 | # include <limits.h> |
|
|
3892 | #else |
|
|
3893 | # include <assert.h> |
|
|
3894 | #endif |
|
|
3895 | |
|
|
3896 | #undef sched_yield |
|
|
3897 | |
|
|
3898 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3899 | #ifdef __cplusplus |
|
|
3900 | extern "C" |
|
|
3901 | { |
|
|
3902 | #endif |
|
|
3903 | /* We use char because int might match the return type of a gcc2 |
|
|
3904 | builtin and then its argument prototype would still apply. */ |
|
|
3905 | char sched_yield (); |
|
|
3906 | /* The GNU C library defines this for functions which it implements |
|
|
3907 | to always fail with ENOSYS. Some functions are actually named |
|
|
3908 | something starting with __ and the normal name is an alias. */ |
|
|
3909 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) |
|
|
3910 | choke me |
|
|
3911 | #else |
|
|
3912 | char (*f) () = sched_yield; |
|
|
3913 | #endif |
|
|
3914 | #ifdef __cplusplus |
|
|
3915 | } |
|
|
3916 | #endif |
|
|
3917 | |
|
|
3918 | int |
|
|
3919 | main () |
|
|
3920 | { |
|
|
3921 | return f != sched_yield; |
|
|
3922 | ; |
|
|
3923 | return 0; |
|
|
3924 | } |
|
|
3925 | _ACEOF |
|
|
3926 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3928 | (eval $ac_link) 2>conftest.er1 |
|
|
3929 | ac_status=$? |
|
|
3930 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3931 | rm -f conftest.er1 |
|
|
3932 | cat conftest.err >&5 |
|
|
3933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3934 | (exit $ac_status); } && |
|
|
3935 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3937 | (eval $ac_try) 2>&5 |
|
|
3938 | ac_status=$? |
|
|
3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3940 | (exit $ac_status); }; } && |
|
|
3941 | { ac_try='test -s conftest$ac_exeext' |
|
|
3942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3943 | (eval $ac_try) 2>&5 |
|
|
3944 | ac_status=$? |
|
|
3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3946 | (exit $ac_status); }; }; then |
|
|
3947 | ac_cv_func_sched_yield=yes |
|
|
3948 | else |
|
|
3949 | echo "$as_me: failed program was:" >&5 |
|
|
3950 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3951 | |
|
|
3952 | ac_cv_func_sched_yield=no |
|
|
3953 | fi |
|
|
3954 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3955 | conftest$ac_exeext conftest.$ac_ext |
|
|
3956 | fi |
|
|
3957 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
|
|
3958 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 |
|
|
3959 | if test $ac_cv_func_sched_yield = yes; then |
|
|
3960 | : |
|
|
3961 | else |
|
|
3962 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
|
|
3963 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 |
|
|
3964 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
|
|
3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3966 | else |
|
|
3967 | ac_check_lib_save_LIBS=$LIBS |
|
|
3968 | LIBS="-lrt $LIBS" |
|
|
3969 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3970 | /* confdefs.h. */ |
|
|
3971 | _ACEOF |
|
|
3972 | cat confdefs.h >>conftest.$ac_ext |
|
|
3973 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3974 | /* end confdefs.h. */ |
|
|
3975 | |
|
|
3976 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3977 | #ifdef __cplusplus |
|
|
3978 | extern "C" |
|
|
3979 | #endif |
|
|
3980 | /* We use char because int might match the return type of a gcc2 |
|
|
3981 | builtin and then its argument prototype would still apply. */ |
|
|
3982 | char sched_yield (); |
|
|
3983 | int |
|
|
3984 | main () |
|
|
3985 | { |
|
|
3986 | sched_yield (); |
|
|
3987 | ; |
|
|
3988 | return 0; |
|
|
3989 | } |
|
|
3990 | _ACEOF |
|
|
3991 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3993 | (eval $ac_link) 2>conftest.er1 |
|
|
3994 | ac_status=$? |
|
|
3995 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3996 | rm -f conftest.er1 |
|
|
3997 | cat conftest.err >&5 |
|
|
3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3999 | (exit $ac_status); } && |
|
|
4000 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4002 | (eval $ac_try) 2>&5 |
|
|
4003 | ac_status=$? |
|
|
4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4005 | (exit $ac_status); }; } && |
|
|
4006 | { ac_try='test -s conftest$ac_exeext' |
|
|
4007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4008 | (eval $ac_try) 2>&5 |
|
|
4009 | ac_status=$? |
|
|
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4011 | (exit $ac_status); }; }; then |
|
|
4012 | ac_cv_lib_rt_sched_yield=yes |
|
|
4013 | else |
|
|
4014 | echo "$as_me: failed program was:" >&5 |
|
|
4015 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4016 | |
|
|
4017 | ac_cv_lib_rt_sched_yield=no |
|
|
4018 | fi |
|
|
4019 | rm -f conftest.err conftest.$ac_objext \ |
|
|
4020 | conftest$ac_exeext conftest.$ac_ext |
|
|
4021 | LIBS=$ac_check_lib_save_LIBS |
|
|
4022 | fi |
|
|
4023 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
|
|
4024 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 |
|
|
4025 | if test $ac_cv_lib_rt_sched_yield = yes; then |
|
|
4026 | LIBS="$LIBS -lrt" |
|
|
4027 | fi |
|
|
4028 | |
|
|
4029 | fi |
|
|
4030 | |
|
|
4031 | |
4102 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
4032 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
4103 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
4033 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
4104 | cat >conftest.$ac_ext <<_ACEOF |
4034 | cat >conftest.$ac_ext <<_ACEOF |
4105 | /* confdefs.h. */ |
4035 | /* confdefs.h. */ |
4106 | _ACEOF |
4036 | _ACEOF |
… | |
… | |
4155 | conftest$ac_exeext conftest.$ac_ext |
4085 | conftest$ac_exeext conftest.$ac_ext |
4156 | |
4086 | |
4157 | |
4087 | |
4158 | MALLOC_TYPE=S |
4088 | MALLOC_TYPE=S |
4159 | |
4089 | |
4160 | support_addstrings=no |
|
|
4161 | support_frills=yes |
4090 | support_frills=yes |
4162 | support_inheritpixmap=no |
4091 | support_inheritpixmap=yes |
4163 | support_tinting=yes |
4092 | support_tinting=yes |
4164 | support_fading=yes |
4093 | support_fading=yes |
4165 | support_keepscrolling=yes |
4094 | support_keepscrolling=yes |
4166 | support_selectionscrolling=yes |
4095 | support_selectionscrolling=yes |
4167 | support_menubar=no |
|
|
4168 | support_mousewheel=yes |
4096 | support_mousewheel=yes |
4169 | support_mouseslipwheel=yes |
4097 | support_mouseslipwheel=yes |
4170 | support_utmp=yes |
4098 | support_utmp=yes |
4171 | support_wtmp=yes |
4099 | support_wtmp=yes |
4172 | support_lastlog=yes |
4100 | support_lastlog=yes |
… | |
… | |
4175 | support_scroll_rxvt=yes |
4103 | support_scroll_rxvt=yes |
4176 | support_scroll_next=yes |
4104 | support_scroll_next=yes |
4177 | support_scroll_xterm=yes |
4105 | support_scroll_xterm=yes |
4178 | support_scroll_plain=yes |
4106 | support_scroll_plain=yes |
4179 | support_xim=yes |
4107 | support_xim=yes |
4180 | support_xpm=no |
4108 | support_xpm=yes |
4181 | support_xft=yes |
4109 | support_xft=yes |
4182 | support_unicode3=no |
4110 | support_unicode3=no |
4183 | support_combining=yes |
4111 | support_combining=yes |
4184 | support_8bitctrls=no |
4112 | support_8bitctrls=no |
4185 | support_iso14755=yes |
4113 | support_iso14755=yes |
4186 | support_styles=yes |
4114 | support_styles=yes |
|
|
4115 | support_perl=yes |
4187 | codesets=all |
4116 | codesets=all |
4188 | |
4117 | |
4189 | |
4118 | |
4190 | if test "x$enable_shared" = xyes; then |
4119 | if test "x$enable_shared" = xyes; then |
4191 | |
4120 | |
… | |
… | |
4208 | support_tinting=no |
4137 | support_tinting=no |
4209 | support_fading=no |
4138 | support_fading=no |
4210 | support_keepscrolling=no |
4139 | support_keepscrolling=no |
4211 | support_selectionscrolling=no |
4140 | support_selectionscrolling=no |
4212 | support_lastlog=no |
4141 | support_lastlog=no |
4213 | support_menubar=no |
|
|
4214 | support_mousewheel=no |
4142 | support_mousewheel=no |
4215 | support_mouseslipwheel=no |
4143 | support_mouseslipwheel=no |
4216 | support_text_blink=no |
4144 | support_text_blink=no |
4217 | support_pointer_blank=no |
4145 | support_pointer_blank=no |
4218 | support_scroll_rxvt=no |
4146 | support_scroll_rxvt=no |
… | |
… | |
4227 | support_unicode3=no |
4155 | support_unicode3=no |
4228 | support_combining=no |
4156 | support_combining=no |
4229 | support_8bitctrls=no |
4157 | support_8bitctrls=no |
4230 | support_iso14755=no |
4158 | support_iso14755=no |
4231 | support_styles=no |
4159 | support_styles=no |
|
|
4160 | support_perl=no |
4232 | codesets= |
4161 | codesets= |
4233 | fi |
4162 | fi |
4234 | if test x$enableval = xyes; then |
4163 | if test x$enableval = xyes; then |
4235 | support_24bit=yes |
4164 | support_24bit=yes |
4236 | support_frills=yes |
4165 | support_frills=yes |
… | |
… | |
4238 | support_tinting=yes |
4167 | support_tinting=yes |
4239 | support_fading=yes |
4168 | support_fading=yes |
4240 | support_keepscrolling=yes |
4169 | support_keepscrolling=yes |
4241 | support_selectionscrolling=yes |
4170 | support_selectionscrolling=yes |
4242 | support_lastlog=yes |
4171 | support_lastlog=yes |
4243 | support_menubar=yes |
|
|
4244 | support_mousewheel=yes |
4172 | support_mousewheel=yes |
4245 | support_mouseslipwheel=yes |
4173 | support_mouseslipwheel=yes |
4246 | support_text_blink=yes |
4174 | support_text_blink=yes |
4247 | support_pointer_blank=yes |
4175 | support_pointer_blank=yes |
4248 | support_scroll_rxvt=yes |
4176 | support_scroll_rxvt=yes |
… | |
… | |
4257 | support_unicode3=yes |
4185 | support_unicode3=yes |
4258 | support_combining=yes |
4186 | support_combining=yes |
4259 | #support_8bitctrls=yes |
4187 | #support_8bitctrls=yes |
4260 | support_iso14755=yes |
4188 | support_iso14755=yes |
4261 | support_styles=yes |
4189 | support_styles=yes |
|
|
4190 | support_perl=yes |
4262 | codesets=all |
4191 | codesets=all |
4263 | fi |
4192 | fi |
4264 | |
4193 | |
4265 | fi; |
4194 | fi; |
4266 | |
4195 | |
… | |
… | |
4350 | if test x$enableval = xyes -o x$enableval = xno; then |
4279 | if test x$enableval = xyes -o x$enableval = xno; then |
4351 | support_fading=$enableval |
4280 | support_fading=$enableval |
4352 | fi |
4281 | fi |
4353 | fi; |
4282 | fi; |
4354 | |
4283 | |
4355 | # Check whether --enable-menubar or --disable-menubar was given. |
|
|
4356 | if test "${enable_menubar+set}" = set; then |
|
|
4357 | enableval="$enable_menubar" |
|
|
4358 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4359 | support_menubar=$enableval |
|
|
4360 | fi |
|
|
4361 | fi; |
|
|
4362 | |
|
|
4363 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
4284 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
4364 | if test "${enable_rxvt_scroll+set}" = set; then |
4285 | if test "${enable_rxvt_scroll+set}" = set; then |
4365 | enableval="$enable_rxvt_scroll" |
4286 | enableval="$enable_rxvt_scroll" |
4366 | if test x$enableval = xyes -o x$enableval = xno; then |
4287 | if test x$enableval = xyes -o x$enableval = xno; then |
4367 | support_scroll_rxvt=$enableval |
4288 | support_scroll_rxvt=$enableval |
… | |
… | |
4382 | if test x$enableval = xyes -o x$enableval = xno; then |
4303 | if test x$enableval = xyes -o x$enableval = xno; then |
4383 | support_scroll_xterm=$enableval |
4304 | support_scroll_xterm=$enableval |
4384 | fi |
4305 | fi |
4385 | fi; |
4306 | fi; |
4386 | |
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 | |
4387 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
4316 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
4388 | if test "${enable_plain_scroll+set}" = set; then |
4317 | if test "${enable_plain_scroll+set}" = set; then |
4389 | enableval="$enable_plain_scroll" |
4318 | enableval="$enable_plain_scroll" |
4390 | if test x$enableval = xyes -o x$enableval = xno; then |
4319 | if test x$enableval = xyes -o x$enableval = xno; then |
4391 | support_scroll_plain=$enableval |
4320 | support_scroll_plain=$enableval |
4392 | fi |
4321 | fi |
4393 | fi; |
4322 | fi; |
4394 | |
4323 | |
4395 | # Check whether --enable-half-shadow or --disable-half-shadow was given. |
|
|
4396 | if test "${enable_half_shadow+set}" = set; then |
|
|
4397 | enableval="$enable_half_shadow" |
|
|
4398 | if test x$enableval = xyes; then |
|
|
4399 | |
|
|
4400 | cat >>confdefs.h <<\_ACEOF |
|
|
4401 | #define HALFSHADOW 1 |
|
|
4402 | _ACEOF |
|
|
4403 | |
|
|
4404 | fi |
|
|
4405 | fi; |
|
|
4406 | |
4324 | |
4407 | |
4325 | |
4408 | # Check whether --with-codesets or --without-codesets was given. |
4326 | # Check whether --with-codesets or --without-codesets was given. |
4409 | if test "${with_codesets+set}" = set; then |
4327 | if test "${with_codesets+set}" = set; then |
4410 | withval="$with_codesets" |
4328 | withval="$with_codesets" |
… | |
… | |
4465 | _ACEOF |
4383 | _ACEOF |
4466 | |
4384 | |
4467 | fi |
4385 | fi |
4468 | fi; |
4386 | fi; |
4469 | |
4387 | |
4470 | # Check whether --enable-xgetdefault or --disable-xgetdefault was given. |
|
|
4471 | if test "${enable_xgetdefault+set}" = set; then |
|
|
4472 | enableval="$enable_xgetdefault" |
|
|
4473 | if test x$enableval = xyes; then |
|
|
4474 | |
|
|
4475 | cat >>confdefs.h <<\_ACEOF |
|
|
4476 | #define USE_XGETDEFAULT 1 |
|
|
4477 | _ACEOF |
|
|
4478 | |
|
|
4479 | fi |
|
|
4480 | fi; |
|
|
4481 | |
|
|
4482 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
4388 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
4483 | if test "${enable_8bitctrls+set}" = set; then |
4389 | if test "${enable_8bitctrls+set}" = set; then |
4484 | enableval="$enable_8bitctrls" |
4390 | enableval="$enable_8bitctrls" |
4485 | if test x$enableval = xyes -o x$enableval = xno; then |
4391 | if test x$enableval = xyes -o x$enableval = xno; then |
4486 | support_8bitctrls=$enableval |
4392 | support_8bitctrls=$enableval |
… | |
… | |
4545 | _ACEOF |
4451 | _ACEOF |
4546 | |
4452 | |
4547 | |
4453 | |
4548 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4454 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4549 | |
4455 | |
4550 | |
|
|
4551 | # Check whether --enable-strings or --disable-strings was given. |
|
|
4552 | if test "${enable_strings+set}" = set; then |
|
|
4553 | enableval="$enable_strings" |
|
|
4554 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4555 | support_addstrings=$enableval |
|
|
4556 | fi |
|
|
4557 | fi; |
|
|
4558 | |
4456 | |
4559 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4457 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4560 | if test "${enable_swapscreen+set}" = set; then |
4458 | if test "${enable_swapscreen+set}" = set; then |
4561 | enableval="$enable_swapscreen" |
4459 | enableval="$enable_swapscreen" |
4562 | if test x$enableval = xno; then |
4460 | if test x$enableval = xno; then |
… | |
… | |
4697 | #define RXVT_TERMINFO "$withval" |
4595 | #define RXVT_TERMINFO "$withval" |
4698 | _ACEOF |
4596 | _ACEOF |
4699 | terminfo="$withval" |
4597 | terminfo="$withval" |
4700 | fi |
4598 | fi |
4701 | fi; |
4599 | fi; |
4702 | |
|
|
4703 | |
|
|
4704 | |
|
|
4705 | cat >>confdefs.h <<\_ACEOF |
|
|
4706 | #define PROTOTYPES 1 |
|
|
4707 | _ACEOF |
|
|
4708 | |
4600 | |
4709 | |
4601 | |
4710 | # 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. |
4711 | set dummy mv; ac_word=$2 |
4603 | set dummy mv; ac_word=$2 |
4712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4604 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
… | |
… | |
4985 | else |
4877 | else |
4986 | echo "$as_me:$LINENO: result: no" >&5 |
4878 | echo "$as_me:$LINENO: result: no" >&5 |
4987 | echo "${ECHO_T}no" >&6 |
4879 | echo "${ECHO_T}no" >&6 |
4988 | fi |
4880 | fi |
4989 | |
4881 | |
4990 | # Extract the first word of "tbl", so it can be a program name with args. |
|
|
4991 | set dummy tbl; ac_word=$2 |
|
|
4992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4994 | if test "${ac_cv_path_TBL+set}" = set; then |
|
|
4995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4996 | else |
|
|
4997 | case $TBL in |
|
|
4998 | [\\/]* | ?:[\\/]*) |
|
|
4999 | ac_cv_path_TBL="$TBL" # Let the user override the test with a path. |
|
|
5000 | ;; |
|
|
5001 | *) |
|
|
5002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5003 | for as_dir in $PATH |
|
|
5004 | do |
|
|
5005 | IFS=$as_save_IFS |
|
|
5006 | test -z "$as_dir" && as_dir=. |
|
|
5007 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5008 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5009 | ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" |
|
|
5010 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5011 | break 2 |
|
|
5012 | fi |
|
|
5013 | done |
|
|
5014 | done |
|
|
5015 | |
|
|
5016 | ;; |
|
|
5017 | esac |
|
|
5018 | fi |
|
|
5019 | TBL=$ac_cv_path_TBL |
|
|
5020 | |
|
|
5021 | if test -n "$TBL"; then |
|
|
5022 | echo "$as_me:$LINENO: result: $TBL" >&5 |
|
|
5023 | echo "${ECHO_T}$TBL" >&6 |
|
|
5024 | else |
|
|
5025 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5026 | echo "${ECHO_T}no" >&6 |
|
|
5027 | fi |
|
|
5028 | |
|
|
5029 | # 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. |
5030 | set dummy tic; ac_word=$2 |
4883 | set dummy tic; ac_word=$2 |
5031 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4884 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5033 | if test "${ac_cv_path_TIC+set}" = set; then |
4886 | if test "${ac_cv_path_TIC+set}" = set; then |
… | |
… | |
5064 | echo "$as_me:$LINENO: result: no" >&5 |
4917 | echo "$as_me:$LINENO: result: no" >&5 |
5065 | echo "${ECHO_T}no" >&6 |
4918 | echo "${ECHO_T}no" >&6 |
5066 | fi |
4919 | fi |
5067 | |
4920 | |
5068 | |
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 |
5069 | |
5153 | |
5070 | |
5154 | |
5071 | |
5155 | |
5072 | if test "x$ac_path_x_has_been_run" != xyes; then |
5156 | if test "x$ac_path_x_has_been_run" != xyes; then |
5073 | echo "$as_me:$LINENO: checking for X" >&5 |
5157 | echo "$as_me:$LINENO: checking for X" >&5 |
… | |
… | |
7127 | |
7211 | |
7128 | |
7212 | |
7129 | |
7213 | |
7130 | |
7214 | |
7131 | |
7215 | |
7132 | |
|
|
7133 | |
|
|
7134 | |
|
|
7135 | |
|
|
7136 | |
|
|
7137 | |
|
|
7138 | |
|
|
7139 | for ac_header in \ |
7216 | for ac_header in \ |
7140 | assert.h \ |
7217 | assert.h \ |
7141 | fcntl.h \ |
7218 | fcntl.h \ |
7142 | grp.h \ |
|
|
7143 | libc.h \ |
|
|
7144 | lastlog.h \ |
|
|
7145 | stdarg.h \ |
7219 | stdarg.h \ |
7146 | stdlib.h \ |
7220 | stdlib.h \ |
7147 | string.h \ |
7221 | string.h \ |
7148 | termios.h \ |
7222 | termios.h \ |
7149 | unistd.h \ |
7223 | unistd.h \ |
7150 | sys/byteorder.h \ |
7224 | sys/byteorder.h \ |
7151 | sys/ioctl.h \ |
7225 | sys/ioctl.h \ |
7152 | sys/select.h \ |
7226 | sys/select.h \ |
7153 | sys/sockio.h \ |
7227 | sys/sockio.h \ |
7154 | sys/strredir.h \ |
7228 | sys/strredir.h \ |
7155 | sys/stropts.h \ |
|
|
7156 | sys/time.h \ |
7229 | sys/time.h \ |
7157 | utmp.h \ |
7230 | stdint.h \ |
7158 | utmpx.h \ |
7231 | wchar.h \ |
7159 | stdint.h \ |
7232 | cwchar \ |
7160 | pty.h \ |
7233 | clocale \ |
7161 | wchar.h \ |
|
|
7162 | cwchar \ |
|
|
7163 | clocale \ |
|
|
7164 | |
7234 | |
7165 | do |
7235 | do |
7166 | 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` |
7167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7237 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7168 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
9995 | #define RETSIGTYPE $ac_cv_type_signal |
10065 | #define RETSIGTYPE $ac_cv_type_signal |
9996 | _ACEOF |
10066 | _ACEOF |
9997 | |
10067 | |
9998 | |
10068 | |
9999 | |
10069 | |
10000 | case "$host_alias" in |
|
|
10001 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
10002 | *) break;; |
|
|
10003 | esac |
|
|
10004 | |
|
|
10005 | |
|
|
10006 | |
|
|
10007 | |
|
|
10008 | |
|
|
10009 | |
|
|
10010 | |
|
|
10011 | |
|
|
10012 | |
|
|
10013 | |
|
|
10014 | |
|
|
10015 | |
|
|
10016 | |
|
|
10017 | |
10070 | |
10018 | |
10071 | |
10019 | |
10072 | |
10020 | |
10073 | |
10021 | |
10074 | |
10022 | |
10075 | |
10023 | |
10076 | |
10024 | for ac_func in \ |
10077 | for ac_func in \ |
10025 | atexit \ |
|
|
10026 | revoke \ |
|
|
10027 | unsetenv \ |
10078 | unsetenv \ |
10028 | setutent \ |
10079 | setutent \ |
10029 | seteuid \ |
10080 | seteuid \ |
|
|
10081 | setresuid \ |
10030 | setreuid \ |
10082 | setreuid \ |
10031 | setsid \ |
|
|
10032 | setpgrp \ |
|
|
10033 | setpgid \ |
|
|
10034 | openpty \ |
|
|
10035 | _getpty \ |
|
|
10036 | grantpt \ |
|
|
10037 | unlockpt \ |
|
|
10038 | isastream \ |
|
|
10039 | on_exit \ |
10083 | on_exit \ |
10040 | nanosleep \ |
10084 | nanosleep \ |
10041 | updwtmp \ |
|
|
10042 | updwtmpx \ |
|
|
10043 | ttyslot \ |
|
|
10044 | |
10085 | |
10045 | do |
10086 | do |
10046 | 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` |
10047 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10088 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10048 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10089 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
… | |
… | |
10140 | |
10181 | |
10141 | fi |
10182 | fi |
10142 | done |
10183 | done |
10143 | |
10184 | |
10144 | |
10185 | |
10145 | |
10186 | UTMP_CHECK |
10146 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10147 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10148 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10149 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10151 | fi |
|
|
10152 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10153 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10154 | else |
|
|
10155 | # Is the header compilable? |
|
|
10156 | echo "$as_me:$LINENO: checking utmp.h usability" >&5 |
|
|
10157 | echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6 |
|
|
10158 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10159 | /* confdefs.h. */ |
|
|
10160 | _ACEOF |
|
|
10161 | cat confdefs.h >>conftest.$ac_ext |
|
|
10162 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10163 | /* end confdefs.h. */ |
|
|
10164 | $ac_includes_default |
|
|
10165 | #include <utmp.h> |
|
|
10166 | _ACEOF |
|
|
10167 | rm -f conftest.$ac_objext |
|
|
10168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10169 | (eval $ac_compile) 2>conftest.er1 |
|
|
10170 | ac_status=$? |
|
|
10171 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10172 | rm -f conftest.er1 |
|
|
10173 | cat conftest.err >&5 |
|
|
10174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10175 | (exit $ac_status); } && |
|
|
10176 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10178 | (eval $ac_try) 2>&5 |
|
|
10179 | ac_status=$? |
|
|
10180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10181 | (exit $ac_status); }; } && |
|
|
10182 | { ac_try='test -s conftest.$ac_objext' |
|
|
10183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10184 | (eval $ac_try) 2>&5 |
|
|
10185 | ac_status=$? |
|
|
10186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10187 | (exit $ac_status); }; }; then |
|
|
10188 | ac_header_compiler=yes |
|
|
10189 | else |
|
|
10190 | echo "$as_me: failed program was:" >&5 |
|
|
10191 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10192 | |
|
|
10193 | ac_header_compiler=no |
|
|
10194 | fi |
|
|
10195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10196 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10197 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10198 | |
|
|
10199 | # Is the header present? |
|
|
10200 | echo "$as_me:$LINENO: checking utmp.h presence" >&5 |
|
|
10201 | echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6 |
|
|
10202 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10203 | /* confdefs.h. */ |
|
|
10204 | _ACEOF |
|
|
10205 | cat confdefs.h >>conftest.$ac_ext |
|
|
10206 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10207 | /* end confdefs.h. */ |
|
|
10208 | #include <utmp.h> |
|
|
10209 | _ACEOF |
|
|
10210 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10211 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10212 | ac_status=$? |
|
|
10213 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10214 | rm -f conftest.er1 |
|
|
10215 | cat conftest.err >&5 |
|
|
10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10217 | (exit $ac_status); } >/dev/null; then |
|
|
10218 | if test -s conftest.err; then |
|
|
10219 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10220 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10221 | else |
|
|
10222 | ac_cpp_err= |
|
|
10223 | fi |
|
|
10224 | else |
|
|
10225 | ac_cpp_err=yes |
|
|
10226 | fi |
|
|
10227 | if test -z "$ac_cpp_err"; then |
|
|
10228 | ac_header_preproc=yes |
|
|
10229 | else |
|
|
10230 | echo "$as_me: failed program was:" >&5 |
|
|
10231 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10232 | |
|
|
10233 | ac_header_preproc=no |
|
|
10234 | fi |
|
|
10235 | rm -f conftest.err conftest.$ac_ext |
|
|
10236 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10237 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10238 | |
|
|
10239 | # So? What about this header? |
|
|
10240 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10241 | yes:no: ) |
|
|
10242 | { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10243 | echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10244 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5 |
|
|
10245 | echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;} |
|
|
10246 | ac_header_preproc=yes |
|
|
10247 | ;; |
|
|
10248 | no:yes:* ) |
|
|
10249 | { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5 |
|
|
10250 | echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;} |
|
|
10251 | { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5 |
|
|
10252 | echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;} |
|
|
10253 | { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5 |
|
|
10254 | echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;} |
|
|
10255 | { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10256 | echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10257 | { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5 |
|
|
10258 | echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;} |
|
|
10259 | { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5 |
|
|
10260 | echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;} |
|
|
10261 | ( |
|
|
10262 | cat <<\_ASBOX |
|
|
10263 | ## ------------------------------------------ ## |
|
|
10264 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10265 | ## ------------------------------------------ ## |
|
|
10266 | _ASBOX |
|
|
10267 | ) | |
|
|
10268 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10269 | ;; |
|
|
10270 | esac |
|
|
10271 | echo "$as_me:$LINENO: checking for utmp.h" >&5 |
|
|
10272 | echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 |
|
|
10273 | if test "${ac_cv_header_utmp_h+set}" = set; then |
|
|
10274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10275 | else |
|
|
10276 | ac_cv_header_utmp_h=$ac_header_preproc |
|
|
10277 | fi |
|
|
10278 | echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5 |
|
|
10279 | echo "${ECHO_T}$ac_cv_header_utmp_h" >&6 |
|
|
10280 | |
|
|
10281 | fi |
|
|
10282 | if test $ac_cv_header_utmp_h = yes; then |
|
|
10283 | echo "$as_me:$LINENO: checking for struct utmp" >&5 |
|
|
10284 | echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 |
|
|
10285 | if test "${rxvt_cv_struct_utmp+set}" = set; then |
|
|
10286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10287 | else |
|
|
10288 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10289 | /* confdefs.h. */ |
|
|
10290 | _ACEOF |
|
|
10291 | cat confdefs.h >>conftest.$ac_ext |
|
|
10292 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10293 | /* end confdefs.h. */ |
|
|
10294 | #include <sys/types.h> |
|
|
10295 | #include <stdint.h> |
|
|
10296 | #include <utmp.h> |
|
|
10297 | int |
|
|
10298 | main () |
|
|
10299 | { |
|
|
10300 | struct utmp ut; |
|
|
10301 | ; |
|
|
10302 | return 0; |
|
|
10303 | } |
|
|
10304 | _ACEOF |
|
|
10305 | rm -f conftest.$ac_objext |
|
|
10306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10307 | (eval $ac_compile) 2>conftest.er1 |
|
|
10308 | ac_status=$? |
|
|
10309 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10310 | rm -f conftest.er1 |
|
|
10311 | cat conftest.err >&5 |
|
|
10312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10313 | (exit $ac_status); } && |
|
|
10314 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10316 | (eval $ac_try) 2>&5 |
|
|
10317 | ac_status=$? |
|
|
10318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10319 | (exit $ac_status); }; } && |
|
|
10320 | { ac_try='test -s conftest.$ac_objext' |
|
|
10321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10322 | (eval $ac_try) 2>&5 |
|
|
10323 | ac_status=$? |
|
|
10324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10325 | (exit $ac_status); }; }; then |
|
|
10326 | rxvt_cv_struct_utmp=yes |
|
|
10327 | else |
|
|
10328 | echo "$as_me: failed program was:" >&5 |
|
|
10329 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10330 | |
|
|
10331 | rxvt_cv_struct_utmp=no |
|
|
10332 | fi |
|
|
10333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10334 | fi |
|
|
10335 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 |
|
|
10336 | echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 |
|
|
10337 | if test x$rxvt_cv_struct_utmp = xyes; then |
|
|
10338 | |
|
|
10339 | cat >>confdefs.h <<\_ACEOF |
|
|
10340 | #define HAVE_STRUCT_UTMP 1 |
|
|
10341 | _ACEOF |
|
|
10342 | |
|
|
10343 | fi |
|
|
10344 | |
|
|
10345 | |
|
|
10346 | echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 |
|
|
10347 | echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 |
|
|
10348 | if test "${rxvt_cv_struct_utmp_host+set}" = set; then |
|
|
10349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10350 | else |
|
|
10351 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10352 | /* confdefs.h. */ |
|
|
10353 | _ACEOF |
|
|
10354 | cat confdefs.h >>conftest.$ac_ext |
|
|
10355 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10356 | /* end confdefs.h. */ |
|
|
10357 | #include <sys/types.h> |
|
|
10358 | #include <utmp.h> |
|
|
10359 | int |
|
|
10360 | main () |
|
|
10361 | { |
|
|
10362 | struct utmp ut; ut.ut_host; |
|
|
10363 | ; |
|
|
10364 | return 0; |
|
|
10365 | } |
|
|
10366 | _ACEOF |
|
|
10367 | rm -f conftest.$ac_objext |
|
|
10368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10369 | (eval $ac_compile) 2>conftest.er1 |
|
|
10370 | ac_status=$? |
|
|
10371 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10372 | rm -f conftest.er1 |
|
|
10373 | cat conftest.err >&5 |
|
|
10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10375 | (exit $ac_status); } && |
|
|
10376 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10378 | (eval $ac_try) 2>&5 |
|
|
10379 | ac_status=$? |
|
|
10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10381 | (exit $ac_status); }; } && |
|
|
10382 | { ac_try='test -s conftest.$ac_objext' |
|
|
10383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10384 | (eval $ac_try) 2>&5 |
|
|
10385 | ac_status=$? |
|
|
10386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10387 | (exit $ac_status); }; }; then |
|
|
10388 | rxvt_cv_struct_utmp_host=yes |
|
|
10389 | else |
|
|
10390 | echo "$as_me: failed program was:" >&5 |
|
|
10391 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10392 | |
|
|
10393 | rxvt_cv_struct_utmp_host=no |
|
|
10394 | fi |
|
|
10395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10396 | fi |
|
|
10397 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 |
|
|
10398 | echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 |
|
|
10399 | if test x$rxvt_cv_struct_utmp_host = xyes; then |
|
|
10400 | |
|
|
10401 | cat >>confdefs.h <<\_ACEOF |
|
|
10402 | #define HAVE_UTMP_HOST 1 |
|
|
10403 | _ACEOF |
|
|
10404 | |
|
|
10405 | fi |
|
|
10406 | |
|
|
10407 | echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 |
|
|
10408 | echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 |
|
|
10409 | if test "${rxvt_cv_struct_utmp_pid+set}" = set; then |
|
|
10410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10411 | else |
|
|
10412 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10413 | /* confdefs.h. */ |
|
|
10414 | _ACEOF |
|
|
10415 | cat confdefs.h >>conftest.$ac_ext |
|
|
10416 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10417 | /* end confdefs.h. */ |
|
|
10418 | #include <sys/types.h> |
|
|
10419 | #include <utmp.h> |
|
|
10420 | int |
|
|
10421 | main () |
|
|
10422 | { |
|
|
10423 | struct utmp ut; ut.ut_pid; |
|
|
10424 | ; |
|
|
10425 | return 0; |
|
|
10426 | } |
|
|
10427 | _ACEOF |
|
|
10428 | rm -f conftest.$ac_objext |
|
|
10429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10430 | (eval $ac_compile) 2>conftest.er1 |
|
|
10431 | ac_status=$? |
|
|
10432 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10433 | rm -f conftest.er1 |
|
|
10434 | cat conftest.err >&5 |
|
|
10435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10436 | (exit $ac_status); } && |
|
|
10437 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10439 | (eval $ac_try) 2>&5 |
|
|
10440 | ac_status=$? |
|
|
10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10442 | (exit $ac_status); }; } && |
|
|
10443 | { ac_try='test -s conftest.$ac_objext' |
|
|
10444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10445 | (eval $ac_try) 2>&5 |
|
|
10446 | ac_status=$? |
|
|
10447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10448 | (exit $ac_status); }; }; then |
|
|
10449 | rxvt_cv_struct_utmp_pid=yes |
|
|
10450 | else |
|
|
10451 | echo "$as_me: failed program was:" >&5 |
|
|
10452 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10453 | |
|
|
10454 | rxvt_cv_struct_utmp_pid=no |
|
|
10455 | fi |
|
|
10456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10457 | fi |
|
|
10458 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 |
|
|
10459 | echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 |
|
|
10460 | if test x$rxvt_cv_struct_utmp_pid = xyes; then |
|
|
10461 | |
|
|
10462 | cat >>confdefs.h <<\_ACEOF |
|
|
10463 | #define HAVE_UTMP_PID 1 |
|
|
10464 | _ACEOF |
|
|
10465 | |
|
|
10466 | fi |
|
|
10467 | |
|
|
10468 | fi |
|
|
10469 | |
|
|
10470 | |
|
|
10471 | |
|
|
10472 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10473 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10474 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10475 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10477 | fi |
|
|
10478 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10479 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10480 | else |
|
|
10481 | # Is the header compilable? |
|
|
10482 | echo "$as_me:$LINENO: checking utmpx.h usability" >&5 |
|
|
10483 | echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6 |
|
|
10484 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10485 | /* confdefs.h. */ |
|
|
10486 | _ACEOF |
|
|
10487 | cat confdefs.h >>conftest.$ac_ext |
|
|
10488 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10489 | /* end confdefs.h. */ |
|
|
10490 | $ac_includes_default |
|
|
10491 | #include <utmpx.h> |
|
|
10492 | _ACEOF |
|
|
10493 | rm -f conftest.$ac_objext |
|
|
10494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10495 | (eval $ac_compile) 2>conftest.er1 |
|
|
10496 | ac_status=$? |
|
|
10497 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10498 | rm -f conftest.er1 |
|
|
10499 | cat conftest.err >&5 |
|
|
10500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10501 | (exit $ac_status); } && |
|
|
10502 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10504 | (eval $ac_try) 2>&5 |
|
|
10505 | ac_status=$? |
|
|
10506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10507 | (exit $ac_status); }; } && |
|
|
10508 | { ac_try='test -s conftest.$ac_objext' |
|
|
10509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10510 | (eval $ac_try) 2>&5 |
|
|
10511 | ac_status=$? |
|
|
10512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10513 | (exit $ac_status); }; }; then |
|
|
10514 | ac_header_compiler=yes |
|
|
10515 | else |
|
|
10516 | echo "$as_me: failed program was:" >&5 |
|
|
10517 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10518 | |
|
|
10519 | ac_header_compiler=no |
|
|
10520 | fi |
|
|
10521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10522 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
10523 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
10524 | |
|
|
10525 | # Is the header present? |
|
|
10526 | echo "$as_me:$LINENO: checking utmpx.h presence" >&5 |
|
|
10527 | echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6 |
|
|
10528 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10529 | /* confdefs.h. */ |
|
|
10530 | _ACEOF |
|
|
10531 | cat confdefs.h >>conftest.$ac_ext |
|
|
10532 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10533 | /* end confdefs.h. */ |
|
|
10534 | #include <utmpx.h> |
|
|
10535 | _ACEOF |
|
|
10536 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
10537 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
10538 | ac_status=$? |
|
|
10539 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10540 | rm -f conftest.er1 |
|
|
10541 | cat conftest.err >&5 |
|
|
10542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10543 | (exit $ac_status); } >/dev/null; then |
|
|
10544 | if test -s conftest.err; then |
|
|
10545 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
10546 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
10547 | else |
|
|
10548 | ac_cpp_err= |
|
|
10549 | fi |
|
|
10550 | else |
|
|
10551 | ac_cpp_err=yes |
|
|
10552 | fi |
|
|
10553 | if test -z "$ac_cpp_err"; then |
|
|
10554 | ac_header_preproc=yes |
|
|
10555 | else |
|
|
10556 | echo "$as_me: failed program was:" >&5 |
|
|
10557 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10558 | |
|
|
10559 | ac_header_preproc=no |
|
|
10560 | fi |
|
|
10561 | rm -f conftest.err conftest.$ac_ext |
|
|
10562 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
10563 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
10564 | |
|
|
10565 | # So? What about this header? |
|
|
10566 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
10567 | yes:no: ) |
|
|
10568 | { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
10569 | echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
10570 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5 |
|
|
10571 | echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;} |
|
|
10572 | ac_header_preproc=yes |
|
|
10573 | ;; |
|
|
10574 | no:yes:* ) |
|
|
10575 | { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5 |
|
|
10576 | echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;} |
|
|
10577 | { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5 |
|
|
10578 | echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;} |
|
|
10579 | { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5 |
|
|
10580 | echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;} |
|
|
10581 | { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
10582 | echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
10583 | { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5 |
|
|
10584 | echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;} |
|
|
10585 | { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5 |
|
|
10586 | echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;} |
|
|
10587 | ( |
|
|
10588 | cat <<\_ASBOX |
|
|
10589 | ## ------------------------------------------ ## |
|
|
10590 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
10591 | ## ------------------------------------------ ## |
|
|
10592 | _ASBOX |
|
|
10593 | ) | |
|
|
10594 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
10595 | ;; |
|
|
10596 | esac |
|
|
10597 | echo "$as_me:$LINENO: checking for utmpx.h" >&5 |
|
|
10598 | echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6 |
|
|
10599 | if test "${ac_cv_header_utmpx_h+set}" = set; then |
|
|
10600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10601 | else |
|
|
10602 | ac_cv_header_utmpx_h=$ac_header_preproc |
|
|
10603 | fi |
|
|
10604 | echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5 |
|
|
10605 | echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6 |
|
|
10606 | |
|
|
10607 | fi |
|
|
10608 | if test $ac_cv_header_utmpx_h = yes; then |
|
|
10609 | echo "$as_me:$LINENO: checking for struct utmpx" >&5 |
|
|
10610 | echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 |
|
|
10611 | if test "${rxvt_cv_struct_utmpx+set}" = set; then |
|
|
10612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10613 | else |
|
|
10614 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10615 | /* confdefs.h. */ |
|
|
10616 | _ACEOF |
|
|
10617 | cat confdefs.h >>conftest.$ac_ext |
|
|
10618 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10619 | /* end confdefs.h. */ |
|
|
10620 | #include <sys/types.h> |
|
|
10621 | #include <utmpx.h> |
|
|
10622 | int |
|
|
10623 | main () |
|
|
10624 | { |
|
|
10625 | struct utmpx ut; |
|
|
10626 | ; |
|
|
10627 | return 0; |
|
|
10628 | } |
|
|
10629 | _ACEOF |
|
|
10630 | rm -f conftest.$ac_objext |
|
|
10631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10632 | (eval $ac_compile) 2>conftest.er1 |
|
|
10633 | ac_status=$? |
|
|
10634 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10635 | rm -f conftest.er1 |
|
|
10636 | cat conftest.err >&5 |
|
|
10637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10638 | (exit $ac_status); } && |
|
|
10639 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10641 | (eval $ac_try) 2>&5 |
|
|
10642 | ac_status=$? |
|
|
10643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10644 | (exit $ac_status); }; } && |
|
|
10645 | { ac_try='test -s conftest.$ac_objext' |
|
|
10646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10647 | (eval $ac_try) 2>&5 |
|
|
10648 | ac_status=$? |
|
|
10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10650 | (exit $ac_status); }; }; then |
|
|
10651 | rxvt_cv_struct_utmpx=yes |
|
|
10652 | else |
|
|
10653 | echo "$as_me: failed program was:" >&5 |
|
|
10654 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10655 | |
|
|
10656 | rxvt_cv_struct_utmpx=no |
|
|
10657 | fi |
|
|
10658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10659 | fi |
|
|
10660 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 |
|
|
10661 | echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 |
|
|
10662 | if test x$rxvt_cv_struct_utmpx = xyes; then |
|
|
10663 | |
|
|
10664 | cat >>confdefs.h <<\_ACEOF |
|
|
10665 | #define HAVE_STRUCT_UTMPX 1 |
|
|
10666 | _ACEOF |
|
|
10667 | |
|
|
10668 | fi |
|
|
10669 | |
|
|
10670 | |
|
|
10671 | echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 |
|
|
10672 | echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 |
|
|
10673 | if test "${rxvt_cv_struct_utmpx_host+set}" = set; then |
|
|
10674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10675 | else |
|
|
10676 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10677 | /* confdefs.h. */ |
|
|
10678 | _ACEOF |
|
|
10679 | cat confdefs.h >>conftest.$ac_ext |
|
|
10680 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10681 | /* end confdefs.h. */ |
|
|
10682 | #include <sys/types.h> |
|
|
10683 | #include <utmpx.h> |
|
|
10684 | int |
|
|
10685 | main () |
|
|
10686 | { |
|
|
10687 | struct utmpx utx; utx.ut_host; |
|
|
10688 | ; |
|
|
10689 | return 0; |
|
|
10690 | } |
|
|
10691 | _ACEOF |
|
|
10692 | rm -f conftest.$ac_objext |
|
|
10693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10694 | (eval $ac_compile) 2>conftest.er1 |
|
|
10695 | ac_status=$? |
|
|
10696 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10697 | rm -f conftest.er1 |
|
|
10698 | cat conftest.err >&5 |
|
|
10699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10700 | (exit $ac_status); } && |
|
|
10701 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10703 | (eval $ac_try) 2>&5 |
|
|
10704 | ac_status=$? |
|
|
10705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10706 | (exit $ac_status); }; } && |
|
|
10707 | { ac_try='test -s conftest.$ac_objext' |
|
|
10708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10709 | (eval $ac_try) 2>&5 |
|
|
10710 | ac_status=$? |
|
|
10711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10712 | (exit $ac_status); }; }; then |
|
|
10713 | rxvt_cv_struct_utmpx_host=yes |
|
|
10714 | else |
|
|
10715 | echo "$as_me: failed program was:" >&5 |
|
|
10716 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10717 | |
|
|
10718 | rxvt_cv_struct_utmpx_host=no |
|
|
10719 | fi |
|
|
10720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10721 | fi |
|
|
10722 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 |
|
|
10723 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 |
|
|
10724 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
|
|
10725 | |
|
|
10726 | cat >>confdefs.h <<\_ACEOF |
|
|
10727 | #define HAVE_UTMPX_HOST 1 |
|
|
10728 | _ACEOF |
|
|
10729 | |
|
|
10730 | fi |
|
|
10731 | |
|
|
10732 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
10733 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
10734 | if test "${rxvt_cv_struct_utmpx_session+set}" = set; then |
|
|
10735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10736 | else |
|
|
10737 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10738 | /* confdefs.h. */ |
|
|
10739 | _ACEOF |
|
|
10740 | cat confdefs.h >>conftest.$ac_ext |
|
|
10741 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10742 | /* end confdefs.h. */ |
|
|
10743 | #include <sys/types.h> |
|
|
10744 | #include <utmpx.h> |
|
|
10745 | int |
|
|
10746 | main () |
|
|
10747 | { |
|
|
10748 | struct utmpx utx; utx.ut_session; |
|
|
10749 | ; |
|
|
10750 | return 0; |
|
|
10751 | } |
|
|
10752 | _ACEOF |
|
|
10753 | rm -f conftest.$ac_objext |
|
|
10754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10755 | (eval $ac_compile) 2>conftest.er1 |
|
|
10756 | ac_status=$? |
|
|
10757 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10758 | rm -f conftest.er1 |
|
|
10759 | cat conftest.err >&5 |
|
|
10760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10761 | (exit $ac_status); } && |
|
|
10762 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10764 | (eval $ac_try) 2>&5 |
|
|
10765 | ac_status=$? |
|
|
10766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10767 | (exit $ac_status); }; } && |
|
|
10768 | { ac_try='test -s conftest.$ac_objext' |
|
|
10769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10770 | (eval $ac_try) 2>&5 |
|
|
10771 | ac_status=$? |
|
|
10772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10773 | (exit $ac_status); }; }; then |
|
|
10774 | rxvt_cv_struct_utmpx_session=yes |
|
|
10775 | else |
|
|
10776 | echo "$as_me: failed program was:" >&5 |
|
|
10777 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10778 | |
|
|
10779 | rxvt_cv_struct_utmpx_session=no |
|
|
10780 | fi |
|
|
10781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10782 | fi |
|
|
10783 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 |
|
|
10784 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 |
|
|
10785 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
10786 | |
|
|
10787 | cat >>confdefs.h <<\_ACEOF |
|
|
10788 | #define HAVE_UTMPX_SESSION 1 |
|
|
10789 | _ACEOF |
|
|
10790 | |
|
|
10791 | fi |
|
|
10792 | |
|
|
10793 | fi |
|
|
10794 | |
|
|
10795 | |
|
|
10796 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
|
|
10797 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
|
|
10798 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
|
|
10799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10800 | else |
|
|
10801 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10802 | /* confdefs.h. */ |
|
|
10803 | _ACEOF |
|
|
10804 | cat confdefs.h >>conftest.$ac_ext |
|
|
10805 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10806 | /* end confdefs.h. */ |
|
|
10807 | #include <sys/types.h> |
|
|
10808 | #include <utmp.h> |
|
|
10809 | #ifdef HAVE_LASTLOG_H |
|
|
10810 | #include <lastlog.h> |
|
|
10811 | #endif |
|
|
10812 | |
|
|
10813 | int |
|
|
10814 | main () |
|
|
10815 | { |
|
|
10816 | struct lastlog ll; |
|
|
10817 | ; |
|
|
10818 | return 0; |
|
|
10819 | } |
|
|
10820 | _ACEOF |
|
|
10821 | rm -f conftest.$ac_objext |
|
|
10822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10823 | (eval $ac_compile) 2>conftest.er1 |
|
|
10824 | ac_status=$? |
|
|
10825 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10826 | rm -f conftest.er1 |
|
|
10827 | cat conftest.err >&5 |
|
|
10828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10829 | (exit $ac_status); } && |
|
|
10830 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10832 | (eval $ac_try) 2>&5 |
|
|
10833 | ac_status=$? |
|
|
10834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10835 | (exit $ac_status); }; } && |
|
|
10836 | { ac_try='test -s conftest.$ac_objext' |
|
|
10837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10838 | (eval $ac_try) 2>&5 |
|
|
10839 | ac_status=$? |
|
|
10840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10841 | (exit $ac_status); }; }; then |
|
|
10842 | rxvt_cv_struct_lastlog=yes |
|
|
10843 | else |
|
|
10844 | echo "$as_me: failed program was:" >&5 |
|
|
10845 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10846 | |
|
|
10847 | rxvt_cv_struct_lastlog=no |
|
|
10848 | fi |
|
|
10849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10850 | fi |
|
|
10851 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 |
|
|
10852 | echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 |
|
|
10853 | if test x$rxvt_cv_struct_lastlog = xyes; then |
|
|
10854 | |
|
|
10855 | cat >>confdefs.h <<\_ACEOF |
|
|
10856 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
10857 | _ACEOF |
|
|
10858 | |
|
|
10859 | fi |
|
|
10860 | |
|
|
10861 | echo "$as_me:$LINENO: checking for struct lastlogx" >&5 |
|
|
10862 | echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 |
|
|
10863 | if test "${rxvt_cv_struct_lastlogx+set}" = set; then |
|
|
10864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10865 | else |
|
|
10866 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10867 | /* confdefs.h. */ |
|
|
10868 | _ACEOF |
|
|
10869 | cat confdefs.h >>conftest.$ac_ext |
|
|
10870 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10871 | /* end confdefs.h. */ |
|
|
10872 | #include <sys/types.h> |
|
|
10873 | #include <utmpx.h> |
|
|
10874 | #ifdef HAVE_LASTLOG_H |
|
|
10875 | #include <lastlog.h> |
|
|
10876 | #endif |
|
|
10877 | |
|
|
10878 | int |
|
|
10879 | main () |
|
|
10880 | { |
|
|
10881 | struct lastlogx ll; |
|
|
10882 | ; |
|
|
10883 | return 0; |
|
|
10884 | } |
|
|
10885 | _ACEOF |
|
|
10886 | rm -f conftest.$ac_objext |
|
|
10887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10888 | (eval $ac_compile) 2>conftest.er1 |
|
|
10889 | ac_status=$? |
|
|
10890 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10891 | rm -f conftest.er1 |
|
|
10892 | cat conftest.err >&5 |
|
|
10893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10894 | (exit $ac_status); } && |
|
|
10895 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10897 | (eval $ac_try) 2>&5 |
|
|
10898 | ac_status=$? |
|
|
10899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10900 | (exit $ac_status); }; } && |
|
|
10901 | { ac_try='test -s conftest.$ac_objext' |
|
|
10902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10903 | (eval $ac_try) 2>&5 |
|
|
10904 | ac_status=$? |
|
|
10905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10906 | (exit $ac_status); }; }; then |
|
|
10907 | rxvt_cv_struct_lastlogx=yes |
|
|
10908 | else |
|
|
10909 | echo "$as_me: failed program was:" >&5 |
|
|
10910 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10911 | |
|
|
10912 | rxvt_cv_struct_lastlogx=no |
|
|
10913 | fi |
|
|
10914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10915 | fi |
|
|
10916 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 |
|
|
10917 | echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 |
|
|
10918 | if test x$rxvt_cv_struct_lastlogx = xyes; then |
|
|
10919 | |
|
|
10920 | cat >>confdefs.h <<\_ACEOF |
|
|
10921 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
10922 | _ACEOF |
|
|
10923 | |
|
|
10924 | fi |
|
|
10925 | |
|
|
10926 | |
|
|
10927 | echo "$as_me:$LINENO: checking where utmp is located" >&5 |
|
|
10928 | echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 |
|
|
10929 | if test "${rxvt_cv_path_utmp+set}" = set; then |
|
|
10930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10931 | else |
|
|
10932 | if test "$cross_compiling" = yes; then |
|
|
10933 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 |
|
|
10934 | echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} |
|
|
10935 | else |
|
|
10936 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10937 | /* confdefs.h. */ |
|
|
10938 | _ACEOF |
|
|
10939 | cat confdefs.h >>conftest.$ac_ext |
|
|
10940 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10941 | /* end confdefs.h. */ |
|
|
10942 | #include <stdio.h> |
|
|
10943 | #include <sys/types.h> |
|
|
10944 | #include <utmp.h> |
|
|
10945 | #include <errno.h> |
|
|
10946 | main() |
|
|
10947 | { |
|
|
10948 | char **u, *utmplist[] = { |
|
|
10949 | "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
10950 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
10951 | if (!f) exit(1); |
|
|
10952 | #ifdef UTMP_FILE |
|
|
10953 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
10954 | exit(0); |
|
|
10955 | #endif |
|
|
10956 | #ifdef _PATH_UTMP |
|
|
10957 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
10958 | exit(0); |
|
|
10959 | #endif |
|
|
10960 | for (u = utmplist; *u; u++) { |
|
|
10961 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
10962 | fprintf(f, "%s\n", *u); |
|
|
10963 | exit(0); |
|
|
10964 | } |
|
|
10965 | } |
|
|
10966 | exit(0); |
|
|
10967 | } |
|
|
10968 | _ACEOF |
|
|
10969 | rm -f conftest$ac_exeext |
|
|
10970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
10971 | (eval $ac_link) 2>&5 |
|
|
10972 | ac_status=$? |
|
|
10973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10974 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
10975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10976 | (eval $ac_try) 2>&5 |
|
|
10977 | ac_status=$? |
|
|
10978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10979 | (exit $ac_status); }; }; then |
|
|
10980 | rxvt_cv_path_utmp=`cat conftestval` |
|
|
10981 | else |
|
|
10982 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
10983 | echo "$as_me: failed program was:" >&5 |
|
|
10984 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
10985 | |
|
|
10986 | ( exit $ac_status ) |
|
|
10987 | rxvt_cv_path_utmp= |
|
|
10988 | fi |
|
|
10989 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
10990 | fi |
|
|
10991 | fi |
|
|
10992 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 |
|
|
10993 | echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 |
|
|
10994 | if test x$rxvt_cv_path_utmp != x; then |
|
|
10995 | |
|
|
10996 | cat >>confdefs.h <<_ACEOF |
|
|
10997 | #define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" |
|
|
10998 | _ACEOF |
|
|
10999 | |
|
|
11000 | fi |
|
|
11001 | |
|
|
11002 | |
|
|
11003 | echo "$as_me:$LINENO: checking where utmpx is located" >&5 |
|
|
11004 | echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 |
|
|
11005 | if test "${rxvt_cv_path_utmpx+set}" = set; then |
|
|
11006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11007 | else |
|
|
11008 | if test "$cross_compiling" = yes; then |
|
|
11009 | { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 |
|
|
11010 | echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} |
|
|
11011 | else |
|
|
11012 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11013 | /* confdefs.h. */ |
|
|
11014 | _ACEOF |
|
|
11015 | cat confdefs.h >>conftest.$ac_ext |
|
|
11016 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11017 | /* end confdefs.h. */ |
|
|
11018 | #include <stdio.h> |
|
|
11019 | #include <sys/types.h> |
|
|
11020 | #include <utmpx.h> |
|
|
11021 | #include <errno.h> |
|
|
11022 | #include <sys/stat.h> |
|
|
11023 | #ifdef HAVE_STRING_H |
|
|
11024 | #include <string.h> |
|
|
11025 | #endif |
|
|
11026 | main() |
|
|
11027 | { |
|
|
11028 | char **u, *p, *utmplist[] = { |
|
|
11029 | #ifdef UTMPX_FILE |
|
|
11030 | UTMPX_FILE, |
|
|
11031 | #endif |
|
|
11032 | #ifdef _PATH_UTMPX |
|
|
11033 | _PATH_UTMPX, |
|
|
11034 | #endif |
|
|
11035 | "/var/adm/utmpx", "/etc/utmpx", NULL }; |
|
|
11036 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11037 | struct stat statu, statux; |
|
|
11038 | if (!f) exit(1); |
|
|
11039 | for (u = utmplist; *u; u++) { |
|
|
11040 | if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { |
|
|
11041 | if (stat(*u, &statux) < 0) |
|
|
11042 | continue; |
|
|
11043 | p = strdup(*u); |
|
|
11044 | p[strlen(p) - 1] = '\0'; |
|
|
11045 | if (stat(p, &statu) >= 0 |
|
|
11046 | && (statu.st_mtime - statux.st_mtime > 86400)) |
|
|
11047 | continue; |
|
|
11048 | fprintf(f, "%s\n", *u); |
|
|
11049 | exit(0); |
|
|
11050 | } |
|
|
11051 | } |
|
|
11052 | exit(0); |
|
|
11053 | } |
|
|
11054 | _ACEOF |
|
|
11055 | rm -f conftest$ac_exeext |
|
|
11056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11057 | (eval $ac_link) 2>&5 |
|
|
11058 | ac_status=$? |
|
|
11059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11060 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11062 | (eval $ac_try) 2>&5 |
|
|
11063 | ac_status=$? |
|
|
11064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11065 | (exit $ac_status); }; }; then |
|
|
11066 | rxvt_cv_path_utmpx=`cat conftestval` |
|
|
11067 | else |
|
|
11068 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11069 | echo "$as_me: failed program was:" >&5 |
|
|
11070 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11071 | |
|
|
11072 | ( exit $ac_status ) |
|
|
11073 | rxvt_cv_path_utmpx= |
|
|
11074 | fi |
|
|
11075 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11076 | fi |
|
|
11077 | fi |
|
|
11078 | echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 |
|
|
11079 | echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 |
|
|
11080 | if test x$rxvt_cv_path_utmpx != x; then |
|
|
11081 | |
|
|
11082 | cat >>confdefs.h <<_ACEOF |
|
|
11083 | #define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" |
|
|
11084 | _ACEOF |
|
|
11085 | |
|
|
11086 | fi |
|
|
11087 | |
|
|
11088 | |
|
|
11089 | echo "$as_me:$LINENO: checking where wtmp is located" >&5 |
|
|
11090 | echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 |
|
|
11091 | if test "${rxvt_cv_path_wtmp+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_WTMP_FILE in config.h manually" >&5 |
|
|
11096 | echo "$as_me: WARNING: Define RXVT_WTMP_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 | #ifdef HAVE_UTMP_H |
|
|
11107 | #include <utmp.h> |
|
|
11108 | #endif |
|
|
11109 | #include <errno.h> |
|
|
11110 | main() |
|
|
11111 | { |
|
|
11112 | char **w, *wtmplist[] = { |
|
|
11113 | "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
11114 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11115 | if (!f) exit(1); |
|
|
11116 | #ifdef WTMP_FILE |
|
|
11117 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
11118 | exit(0); |
|
|
11119 | #endif |
|
|
11120 | #ifdef _PATH_WTMP |
|
|
11121 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
11122 | exit(0); |
|
|
11123 | #endif |
|
|
11124 | for (w = wtmplist; *w; w++) { |
|
|
11125 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11126 | fprintf(f, "%s\n", *w); |
|
|
11127 | exit(0); |
|
|
11128 | } |
|
|
11129 | } |
|
|
11130 | exit(0); |
|
|
11131 | } |
|
|
11132 | _ACEOF |
|
|
11133 | rm -f conftest$ac_exeext |
|
|
11134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11135 | (eval $ac_link) 2>&5 |
|
|
11136 | ac_status=$? |
|
|
11137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11138 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11140 | (eval $ac_try) 2>&5 |
|
|
11141 | ac_status=$? |
|
|
11142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11143 | (exit $ac_status); }; }; then |
|
|
11144 | rxvt_cv_path_wtmp=`cat conftestval` |
|
|
11145 | else |
|
|
11146 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11147 | echo "$as_me: failed program was:" >&5 |
|
|
11148 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11149 | |
|
|
11150 | ( exit $ac_status ) |
|
|
11151 | rxvt_cv_path_wtmp= |
|
|
11152 | fi |
|
|
11153 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11154 | fi |
|
|
11155 | fi |
|
|
11156 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 |
|
|
11157 | echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 |
|
|
11158 | if test x$rxvt_cv_path_wtmp != x; then |
|
|
11159 | |
|
|
11160 | cat >>confdefs.h <<_ACEOF |
|
|
11161 | #define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" |
|
|
11162 | _ACEOF |
|
|
11163 | |
|
|
11164 | fi |
|
|
11165 | |
|
|
11166 | echo "$as_me:$LINENO: checking where wtmpx is located" >&5 |
|
|
11167 | echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 |
|
|
11168 | if test "${rxvt_cv_path_wtmpx+set}" = set; then |
|
|
11169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11170 | else |
|
|
11171 | if test "$cross_compiling" = yes; then |
|
|
11172 | { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 |
|
|
11173 | echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} |
|
|
11174 | else |
|
|
11175 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11176 | /* confdefs.h. */ |
|
|
11177 | _ACEOF |
|
|
11178 | cat confdefs.h >>conftest.$ac_ext |
|
|
11179 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11180 | /* end confdefs.h. */ |
|
|
11181 | #include <stdio.h> |
|
|
11182 | #ifdef HAVE_UTMPX_H |
|
|
11183 | #include <utmpx.h> |
|
|
11184 | #endif |
|
|
11185 | #include <errno.h> |
|
|
11186 | main() |
|
|
11187 | { |
|
|
11188 | char **w, *wtmplist[] = { |
|
|
11189 | "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
11190 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11191 | if (!f) exit(1); |
|
|
11192 | #ifdef WTMPX_FILE |
|
|
11193 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
11194 | exit(0); |
|
|
11195 | #endif |
|
|
11196 | #ifdef _PATH_WTMPX |
|
|
11197 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
11198 | exit(0); |
|
|
11199 | #endif |
|
|
11200 | for (w = wtmplist; *w; w++) { |
|
|
11201 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11202 | fprintf(f, "%s\n", *w); |
|
|
11203 | exit(0); |
|
|
11204 | } |
|
|
11205 | } |
|
|
11206 | exit(0); |
|
|
11207 | } |
|
|
11208 | _ACEOF |
|
|
11209 | rm -f conftest$ac_exeext |
|
|
11210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11211 | (eval $ac_link) 2>&5 |
|
|
11212 | ac_status=$? |
|
|
11213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11214 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11216 | (eval $ac_try) 2>&5 |
|
|
11217 | ac_status=$? |
|
|
11218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11219 | (exit $ac_status); }; }; then |
|
|
11220 | rxvt_cv_path_wtmpx=`cat conftestval` |
|
|
11221 | else |
|
|
11222 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11223 | echo "$as_me: failed program was:" >&5 |
|
|
11224 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11225 | |
|
|
11226 | ( exit $ac_status ) |
|
|
11227 | rxvt_cv_path_wtmpx= |
|
|
11228 | fi |
|
|
11229 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11230 | fi |
|
|
11231 | fi |
|
|
11232 | echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 |
|
|
11233 | echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 |
|
|
11234 | if test x$rxvt_cv_path_wtmpx != x; then |
|
|
11235 | |
|
|
11236 | cat >>confdefs.h <<_ACEOF |
|
|
11237 | #define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" |
|
|
11238 | _ACEOF |
|
|
11239 | |
|
|
11240 | fi |
|
|
11241 | |
|
|
11242 | echo "$as_me:$LINENO: checking where lastlog is located" >&5 |
|
|
11243 | echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 |
|
|
11244 | if test "${rxvt_cv_path_lastlog+set}" = set; then |
|
|
11245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11246 | else |
|
|
11247 | if test "$cross_compiling" = yes; then |
|
|
11248 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 |
|
|
11249 | echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
11250 | else |
|
|
11251 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11252 | /* confdefs.h. */ |
|
|
11253 | _ACEOF |
|
|
11254 | cat confdefs.h >>conftest.$ac_ext |
|
|
11255 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11256 | /* end confdefs.h. */ |
|
|
11257 | #include <stdio.h> |
|
|
11258 | #include <sys/types.h> |
|
|
11259 | #ifdef HAVE_UTMPX_H |
|
|
11260 | #include <utmpx.h> |
|
|
11261 | #elif defined(HAVE_UTMP_H) |
|
|
11262 | #include <utmp.h> |
|
|
11263 | #endif |
|
|
11264 | #ifdef HAVE_LASTLOG_H |
|
|
11265 | #include <lastlog.h> |
|
|
11266 | #endif |
|
|
11267 | #include <errno.h> |
|
|
11268 | main() |
|
|
11269 | { |
|
|
11270 | char **w, *lastloglist[] = { "/var/log/lastlog", NULL }; |
|
|
11271 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11272 | if (!f) exit(1); |
|
|
11273 | #ifdef LASTLOG_FILE |
|
|
11274 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
11275 | exit(0); |
|
|
11276 | #endif |
|
|
11277 | #ifdef _PATH_LASTLOG |
|
|
11278 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
11279 | exit(0); |
|
|
11280 | #endif |
|
|
11281 | for (w = lastloglist; *w; w++) { |
|
|
11282 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11283 | fprintf(f, "%s\n", *w); |
|
|
11284 | exit(0); |
|
|
11285 | } |
|
|
11286 | } |
|
|
11287 | exit(0); |
|
|
11288 | } |
|
|
11289 | _ACEOF |
|
|
11290 | rm -f conftest$ac_exeext |
|
|
11291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11292 | (eval $ac_link) 2>&5 |
|
|
11293 | ac_status=$? |
|
|
11294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11295 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11297 | (eval $ac_try) 2>&5 |
|
|
11298 | ac_status=$? |
|
|
11299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11300 | (exit $ac_status); }; }; then |
|
|
11301 | rxvt_cv_path_lastlog=`cat conftestval` |
|
|
11302 | else |
|
|
11303 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11304 | echo "$as_me: failed program was:" >&5 |
|
|
11305 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11306 | |
|
|
11307 | ( exit $ac_status ) |
|
|
11308 | rxvt_cv_path_lastlog= |
|
|
11309 | fi |
|
|
11310 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11311 | fi |
|
|
11312 | fi |
|
|
11313 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 |
|
|
11314 | echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 |
|
|
11315 | if test x$rxvt_cv_path_lastlog != x; then |
|
|
11316 | |
|
|
11317 | cat >>confdefs.h <<_ACEOF |
|
|
11318 | #define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" |
|
|
11319 | _ACEOF |
|
|
11320 | |
|
|
11321 | if test -d "$rxvt_cv_path_lastlog"; then |
|
|
11322 | |
|
|
11323 | cat >>confdefs.h <<\_ACEOF |
|
|
11324 | #define LASTLOG_IS_DIR 1 |
|
|
11325 | _ACEOF |
|
|
11326 | |
|
|
11327 | fi |
|
|
11328 | fi |
|
|
11329 | |
|
|
11330 | echo "$as_me:$LINENO: checking where lastlogx is located" >&5 |
|
|
11331 | echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 |
|
|
11332 | if test "${rxvt_cv_path_lastlogx+set}" = set; then |
|
|
11333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11334 | else |
|
|
11335 | if test "$cross_compiling" = yes; then |
|
|
11336 | { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
11337 | echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
11338 | else |
|
|
11339 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11340 | /* confdefs.h. */ |
|
|
11341 | _ACEOF |
|
|
11342 | cat confdefs.h >>conftest.$ac_ext |
|
|
11343 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11344 | /* end confdefs.h. */ |
|
|
11345 | #include <stdio.h> |
|
|
11346 | #ifdef HAVE_UTMPX_H |
|
|
11347 | #include <utmpx.h> |
|
|
11348 | #endif |
|
|
11349 | #include <errno.h> |
|
|
11350 | main() |
|
|
11351 | { |
|
|
11352 | char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
11353 | FILE *a, *f=fopen("conftestval", "w"); |
|
|
11354 | if (!f) exit(1); |
|
|
11355 | #ifdef LASTLOGX_FILE |
|
|
11356 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
11357 | exit(0); |
|
|
11358 | #endif |
|
|
11359 | #ifdef _PATH_LASTLOGX |
|
|
11360 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
11361 | exit(0); |
|
|
11362 | #endif |
|
|
11363 | for (w = wtmplist; *w; w++) { |
|
|
11364 | if ((a = fopen(*w, "r")) != NULL || errno == EACCES) { |
|
|
11365 | fprintf(f, "%s\n", *w); |
|
|
11366 | exit(0); |
|
|
11367 | } |
|
|
11368 | } |
|
|
11369 | exit(0); |
|
|
11370 | } |
|
|
11371 | _ACEOF |
|
|
11372 | rm -f conftest$ac_exeext |
|
|
11373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11374 | (eval $ac_link) 2>&5 |
|
|
11375 | ac_status=$? |
|
|
11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11377 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
11378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11379 | (eval $ac_try) 2>&5 |
|
|
11380 | ac_status=$? |
|
|
11381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11382 | (exit $ac_status); }; }; then |
|
|
11383 | rxvt_cv_path_lastlogx=`cat conftestval` |
|
|
11384 | else |
|
|
11385 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
11386 | echo "$as_me: failed program was:" >&5 |
|
|
11387 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11388 | |
|
|
11389 | ( exit $ac_status ) |
|
|
11390 | rxvt_cv_path_lastlogx= |
|
|
11391 | fi |
|
|
11392 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
11393 | fi |
|
|
11394 | fi |
|
|
11395 | echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 |
|
|
11396 | echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 |
|
|
11397 | if test x$rxvt_cv_path_lastlogx != x; then |
|
|
11398 | |
|
|
11399 | cat >>confdefs.h <<_ACEOF |
|
|
11400 | #define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" |
|
|
11401 | _ACEOF |
|
|
11402 | |
|
|
11403 | fi |
|
|
11404 | |
10187 | |
11405 | |
10188 | |
11406 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
10189 | echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 |
11407 | 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 |
11408 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
10191 | if test "${rxvt_cv_path_ttytab+set}" = set; then |
… | |
… | |
11675 | #define HAVE_NL_LANGINFO 1 |
10458 | #define HAVE_NL_LANGINFO 1 |
11676 | _ACEOF |
10459 | _ACEOF |
11677 | |
10460 | |
11678 | fi |
10461 | fi |
11679 | |
10462 | |
11680 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
10463 | SCM_RIGHTS_CHECK |
11681 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11682 | if test "${rxvt_can_pass_fds+set}" = set; then |
|
|
11683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11684 | else |
|
|
11685 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11686 | /* confdefs.h. */ |
|
|
11687 | _ACEOF |
|
|
11688 | cat confdefs.h >>conftest.$ac_ext |
|
|
11689 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11690 | /* end confdefs.h. */ |
|
|
11691 | |
|
|
11692 | #include <sys/types.h> |
|
|
11693 | #include <sys/socket.h> |
|
|
11694 | |
|
|
11695 | int |
|
|
11696 | main () |
|
|
11697 | { |
|
|
11698 | |
|
|
11699 | { |
|
|
11700 | msghdr msg; |
|
|
11701 | iovec iov; |
|
|
11702 | char buf [100]; |
|
|
11703 | char data = 0; |
|
|
11704 | |
|
|
11705 | iov.iov_base = &data; |
|
|
11706 | iov.iov_len = 1; |
|
|
11707 | |
|
|
11708 | msg.msg_iov = &iov; |
|
|
11709 | msg.msg_iovlen = 1; |
|
|
11710 | msg.msg_control = buf; |
|
|
11711 | msg.msg_controllen = sizeof buf; |
|
|
11712 | |
|
|
11713 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11714 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11715 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11716 | cmsg->cmsg_len = 100; |
|
|
11717 | |
|
|
11718 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11719 | |
|
|
11720 | return sendmsg (3, &msg, 0); |
|
|
11721 | } |
|
|
11722 | |
|
|
11723 | ; |
|
|
11724 | return 0; |
|
|
11725 | } |
|
|
11726 | _ACEOF |
|
|
11727 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11729 | (eval $ac_link) 2>conftest.er1 |
|
|
11730 | ac_status=$? |
|
|
11731 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11732 | rm -f conftest.er1 |
|
|
11733 | cat conftest.err >&5 |
|
|
11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11735 | (exit $ac_status); } && |
|
|
11736 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11738 | (eval $ac_try) 2>&5 |
|
|
11739 | ac_status=$? |
|
|
11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11741 | (exit $ac_status); }; } && |
|
|
11742 | { ac_try='test -s conftest$ac_exeext' |
|
|
11743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11744 | (eval $ac_try) 2>&5 |
|
|
11745 | ac_status=$? |
|
|
11746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11747 | (exit $ac_status); }; }; then |
|
|
11748 | rxvt_can_pass_fds=yes |
|
|
11749 | else |
|
|
11750 | echo "$as_me: failed program was:" >&5 |
|
|
11751 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11752 | |
|
|
11753 | rxvt_can_pass_fds=no |
|
|
11754 | fi |
|
|
11755 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11756 | conftest$ac_exeext conftest.$ac_ext |
|
|
11757 | fi |
|
|
11758 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
|
|
11759 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
|
|
11760 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
11761 | |
|
|
11762 | cat >>confdefs.h <<\_ACEOF |
|
|
11763 | #define HAVE_UNIX_FDPASS 1 |
|
|
11764 | _ACEOF |
|
|
11765 | |
|
|
11766 | fi |
|
|
11767 | |
10464 | |
11768 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
10465 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
11769 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
10466 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
11770 | if test "${rxvt_broken_ximcb+set}" = set; then |
10467 | if test "${rxvt_broken_ximcb+set}" = set; then |
11771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
… | |
… | |
11821 | #define XIMCB_PROTO_BROKEN 1 |
10518 | #define XIMCB_PROTO_BROKEN 1 |
11822 | _ACEOF |
10519 | _ACEOF |
11823 | |
10520 | |
11824 | fi |
10521 | fi |
11825 | |
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 |
11826 | echo "$as_me:$LINENO: checking for getpt" >&5 |
10528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11827 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
10529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
11828 | if test "${rxvt_cv_func_getpt+set}" = set; then |
10530 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
11829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11830 | else |
10532 | else |
11831 | cat >conftest.$ac_ext <<_ACEOF |
10533 | case $PKG_CONFIG in |
11832 | /* confdefs.h. */ |
10534 | [\\/]* | ?:[\\/]*) |
11833 | _ACEOF |
10535 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11834 | cat confdefs.h >>conftest.$ac_ext |
|
|
11835 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11836 | /* end confdefs.h. */ |
|
|
11837 | #define _GNU_SOURCE |
|
|
11838 | #ifdef HAVE_STDLIB_H |
|
|
11839 | # include <cstdlib> |
|
|
11840 | #endif |
|
|
11841 | int |
|
|
11842 | main () |
|
|
11843 | { |
|
|
11844 | (void)getpt(); |
|
|
11845 | ; |
10536 | ;; |
11846 | return 0; |
10537 | *) |
11847 | } |
10538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11848 | _ACEOF |
10539 | for as_dir in $PATH |
11849 | rm -f conftest.$ac_objext conftest$ac_exeext |
10540 | do |
11850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10541 | IFS=$as_save_IFS |
11851 | (eval $ac_link) 2>conftest.er1 |
10542 | test -z "$as_dir" && as_dir=. |
11852 | ac_status=$? |
10543 | for ac_exec_ext in '' $ac_executable_extensions; do |
11853 | grep -v '^ *+' conftest.er1 >conftest.err |
10544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
11854 | rm -f conftest.er1 |
10545 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11855 | cat conftest.err >&5 |
10546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10547 | break 2 |
11857 | (exit $ac_status); } && |
10548 | fi |
11858 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
10549 | done |
11859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10550 | done |
11860 | (eval $ac_try) 2>&5 |
|
|
11861 | ac_status=$? |
|
|
11862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11863 | (exit $ac_status); }; } && |
|
|
11864 | { ac_try='test -s conftest$ac_exeext' |
|
|
11865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11866 | (eval $ac_try) 2>&5 |
|
|
11867 | ac_status=$? |
|
|
11868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11869 | (exit $ac_status); }; }; then |
|
|
11870 | rxvt_cv_func_getpt=yes |
|
|
11871 | else |
|
|
11872 | echo "$as_me: failed program was:" >&5 |
|
|
11873 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11874 | |
10551 | |
11875 | rxvt_cv_func_getpt=no |
10552 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
|
|
10553 | ;; |
|
|
10554 | esac |
11876 | fi |
10555 | fi |
11877 | rm -f conftest.err conftest.$ac_objext \ |
10556 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
11878 | conftest$ac_exeext conftest.$ac_ext |
10557 | |
11879 | 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 |
11880 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
10562 | echo "$as_me:$LINENO: result: no" >&5 |
11881 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
10563 | echo "${ECHO_T}no" >&6 |
11882 | if test x$rxvt_cv_func_getpt = xyes; then |
|
|
11883 | |
|
|
11884 | cat >>confdefs.h <<\_ACEOF |
|
|
11885 | #define HAVE_GETPT 1 |
|
|
11886 | _ACEOF |
|
|
11887 | |
|
|
11888 | fi |
10564 | fi |
11889 | |
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 |
11890 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
10568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11891 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
10569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
11892 | if test "${rxvt_cv_ptys+set}" = set; then |
10570 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then |
11893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11894 | else |
10572 | else |
11895 | if test x$ac_cv_func_openpty = xyes; then |
10573 | case $XFT_CONFIG in |
11896 | rxvt_cv_ptys=OPENPTY |
10574 | [\\/]* | ?:[\\/]*) |
11897 | 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. |
11898 | rxvt_cv_ptys=SGI4 |
10576 | ;; |
11899 | else if test -c /dev/ttyp20; then |
10577 | *) |
11900 | rxvt_cv_ptys=SCO |
10578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11901 | else if test -c /dev/ptym/clone; then |
10579 | for as_dir in $PATH |
11902 | rxvt_cv_ptys=HPUX |
10580 | do |
11903 | else if test x$rxvt_cv_func_getpt = xyes; then |
10581 | IFS=$as_save_IFS |
11904 | rxvt_cv_ptys=GLIBC |
10582 | test -z "$as_dir" && as_dir=. |
11905 | else if test -c /dev/ptc -a -c /dev/pts; then |
10583 | for ac_exec_ext in '' $ac_executable_extensions; do |
11906 | rxvt_cv_ptys=PTC |
10584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
11907 | else if test -c /dev/ptc -a -d /dev/pts; then |
10585 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11908 | rxvt_cv_ptys=PTC |
10586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
11909 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
10587 | break 2 |
11910 | rxvt_cv_ptys=STREAMS |
10588 | fi |
11911 | else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then |
10589 | done |
11912 | 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`" |
11913 | else |
10609 | else |
11914 | rxvt_cv_ptys=BSD |
10610 | if test $XFT_CONFIG != no; then |
11915 | fi |
10611 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
11916 | fi |
10612 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
11917 | fi |
10613 | fi |
11918 | fi |
10614 | fi |
11919 | fi |
|
|
11920 | fi |
|
|
11921 | fi |
|
|
11922 | fi |
|
|
11923 | fi |
|
|
11924 | |
|
|
11925 | fi |
|
|
11926 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
|
|
11927 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
|
|
11928 | |
|
|
11929 | if test x$rxvt_cv_ptys = xOPENPTY; then |
|
|
11930 | |
|
|
11931 | cat >>confdefs.h <<\_ACEOF |
|
|
11932 | #define PTYS_ARE_OPENPTY 1 |
|
|
11933 | _ACEOF |
|
|
11934 | |
|
|
11935 | fi |
|
|
11936 | if test x$rxvt_cv_ptys = xSCO; then |
|
|
11937 | |
|
|
11938 | cat >>confdefs.h <<\_ACEOF |
|
|
11939 | #define PTYS_ARE_NUMERIC 1 |
|
|
11940 | _ACEOF |
|
|
11941 | |
|
|
11942 | fi |
|
|
11943 | if test x$rxvt_cv_ptys = xSTREAMS; then |
|
|
11944 | |
|
|
11945 | cat >>confdefs.h <<\_ACEOF |
|
|
11946 | #define PTYS_ARE_PTMX 1 |
|
|
11947 | _ACEOF |
|
|
11948 | |
|
|
11949 | fi |
|
|
11950 | if test x$rxvt_cv_ptys = xPTC; then |
|
|
11951 | |
|
|
11952 | cat >>confdefs.h <<\_ACEOF |
|
|
11953 | #define PTYS_ARE_PTC 1 |
|
|
11954 | _ACEOF |
|
|
11955 | |
|
|
11956 | fi |
|
|
11957 | if test x$rxvt_cv_ptys = xSGI4; then |
|
|
11958 | |
|
|
11959 | cat >>confdefs.h <<\_ACEOF |
|
|
11960 | #define PTYS_ARE__GETPTY 1 |
|
|
11961 | _ACEOF |
|
|
11962 | |
|
|
11963 | fi |
|
|
11964 | if test x$rxvt_cv_ptys = xCONVEX; then |
|
|
11965 | |
|
|
11966 | cat >>confdefs.h <<\_ACEOF |
|
|
11967 | #define PTYS_ARE_GETPTY 1 |
|
|
11968 | _ACEOF |
|
|
11969 | |
|
|
11970 | fi |
|
|
11971 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
11972 | |
|
|
11973 | cat >>confdefs.h <<\_ACEOF |
|
|
11974 | #define PTYS_ARE_GETPT 1 |
|
|
11975 | _ACEOF |
|
|
11976 | |
|
|
11977 | fi |
|
|
11978 | if test x$rxvt_cv_ptys = xHPUX; then |
|
|
11979 | |
|
|
11980 | cat >>confdefs.h <<\_ACEOF |
|
|
11981 | #define PTYS_ARE_CLONE 1 |
|
|
11982 | _ACEOF |
|
|
11983 | |
|
|
11984 | fi |
|
|
11985 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
|
|
11986 | |
|
|
11987 | cat >>confdefs.h <<\_ACEOF |
|
|
11988 | #define PTYS_ARE_SEARCHED 1 |
|
|
11989 | _ACEOF |
|
|
11990 | |
|
|
11991 | fi |
|
|
11992 | |
|
|
11993 | |
|
|
11994 | { echo "$as_me:$LINENO: checking for pty ranges..." >&5 |
|
|
11995 | echo "$as_me: checking for pty ranges..." >&6;} |
|
|
11996 | ptys=`echo /dev/pty??` |
|
|
11997 | pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
|
|
11998 | pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
|
|
11999 | if test x$pch1 != x; then |
|
|
12000 | |
|
|
12001 | cat >>confdefs.h <<_ACEOF |
|
|
12002 | #define PTYCHAR1 "$pch1" |
|
|
12003 | _ACEOF |
|
|
12004 | |
|
|
12005 | fi |
|
|
12006 | if test x$pch2 != x; then |
|
|
12007 | |
|
|
12008 | cat >>confdefs.h <<_ACEOF |
|
|
12009 | #define PTYCHAR2 "$pch2" |
|
|
12010 | _ACEOF |
|
|
12011 | |
|
|
12012 | fi |
|
|
12013 | |
|
|
12014 | if test x$support_xft = xyes; then |
|
|
12015 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
12016 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
12017 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
12018 | |
10615 | |
12019 | |
10616 | |
12020 | for ac_header in X11/Xft/Xft.h |
10617 | for ac_header in X11/Xft/Xft.h |
12021 | do |
10618 | do |
12022 | 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` |
… | |
… | |
12305 | cat >>confdefs.h <<\_ACEOF |
10902 | cat >>confdefs.h <<\_ACEOF |
12306 | #define SELECTION_SCROLLING 1 |
10903 | #define SELECTION_SCROLLING 1 |
12307 | _ACEOF |
10904 | _ACEOF |
12308 | |
10905 | |
12309 | fi |
10906 | fi |
12310 | if test x$support_menubar = xyes; then |
|
|
12311 | |
|
|
12312 | cat >>confdefs.h <<\_ACEOF |
|
|
12313 | #define MENUBAR 1 |
|
|
12314 | _ACEOF |
|
|
12315 | |
|
|
12316 | fi |
|
|
12317 | if test x$support_frills = xyes; then |
10907 | if test x$support_frills = xyes; then |
12318 | |
10908 | |
12319 | cat >>confdefs.h <<\_ACEOF |
10909 | cat >>confdefs.h <<\_ACEOF |
12320 | #define ENABLE_FRILLS 1 |
10910 | #define ENABLE_FRILLS 1 |
12321 | _ACEOF |
10911 | _ACEOF |
… | |
… | |
12479 | #define ENCODING_ZH_EXT 1 |
11069 | #define ENCODING_ZH_EXT 1 |
12480 | _ACEOF |
11070 | _ACEOF |
12481 | ;; |
11071 | ;; |
12482 | esac |
11072 | esac |
12483 | 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 |
12484 | |
11252 | |
12485 | |
11253 | |
12486 | CFLAGS=${CFLAGS--O} |
11254 | CFLAGS=${CFLAGS--O} |
12487 | LDFLAGS=${LDFLAGS--O} |
11255 | LDFLAGS=${LDFLAGS--O} |
12488 | |
11256 | |
… | |
… | |
12502 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
11270 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
12503 | fi |
11271 | fi |
12504 | |
11272 | |
12505 | |
11273 | |
12506 | |
11274 | |
12507 | |
|
|
12508 | |
|
|
12509 | if test x$support_addstrings = xno; then |
|
|
12510 | |
|
|
12511 | cat >>confdefs.h <<\_ACEOF |
|
|
12512 | #define NO_STRINGS 1 |
|
|
12513 | _ACEOF |
|
|
12514 | |
|
|
12515 | fi |
|
|
12516 | |
|
|
12517 | MCOMMON=./autoconf/Make.common |
|
|
12518 | |
11275 | |
12519 | |
11276 | |
12520 | test "$program_prefix" != NONE && |
11277 | test "$program_prefix" != NONE && |
12521 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
11278 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
12522 | # Use a double $ so make ignores it. |
11279 | # Use a double $ so make ignores it. |
… | |
… | |
12598 | include_time_h="#include <time.h>" |
11355 | include_time_h="#include <time.h>" |
12599 | else |
11356 | else |
12600 | include_time_h="/* #include <time.h> */" |
11357 | include_time_h="/* #include <time.h> */" |
12601 | fi |
11358 | fi |
12602 | |
11359 | |
12603 | 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" |
12604 | |
11361 | |
12605 | cat >confcache <<\_ACEOF |
11362 | cat >confcache <<\_ACEOF |
12606 | # 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 |
12607 | # 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 |
12608 | # scripts and configure runs, see configure's option --config-cache. |
11365 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
13125 | cat >>$CONFIG_STATUS <<\_ACEOF |
11882 | cat >>$CONFIG_STATUS <<\_ACEOF |
13126 | for ac_config_target in $ac_config_targets |
11883 | for ac_config_target in $ac_config_targets |
13127 | do |
11884 | do |
13128 | case "$ac_config_target" in |
11885 | case "$ac_config_target" in |
13129 | # Handling of arguments. |
11886 | # Handling of arguments. |
13130 | "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; |
|
|
13131 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
11887 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13132 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
11888 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13133 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
11889 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13134 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
11890 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
13135 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; |
11891 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
13136 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
11892 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13137 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
11893 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13138 | { (exit 1); exit 1; }; };; |
11894 | { (exit 1); exit 1; }; };; |
13139 | esac |
11895 | esac |
13140 | done |
11896 | done |
… | |
… | |
13241 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
11997 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
13242 | s,@CPP@,$CPP,;t t |
11998 | s,@CPP@,$CPP,;t t |
13243 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
11999 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
13244 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
12000 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
13245 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
12001 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
13246 | s,@AWK@,$AWK,;t t |
12002 | s,@EGREP@,$EGREP,;t t |
13247 | s,@LINKER@,$LINKER,;t t |
12003 | s,@LINKER@,$LINKER,;t t |
13248 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
13249 | s,@EGREP@,$EGREP,;t t |
|
|
13250 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
12004 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
13251 | s,@RXVTNAME@,$RXVTNAME,;t t |
12005 | s,@RXVTNAME@,$RXVTNAME,;t t |
13252 | s,@MV@,$MV,;t t |
12006 | s,@MV@,$MV,;t t |
13253 | s,@RM@,$RM,;t t |
12007 | s,@RM@,$RM,;t t |
13254 | s,@CP@,$CP,;t t |
12008 | s,@CP@,$CP,;t t |
13255 | s,@LN@,$LN,;t t |
12009 | s,@LN@,$LN,;t t |
13256 | s,@SED@,$SED,;t t |
12010 | s,@SED@,$SED,;t t |
13257 | s,@ECHO@,$ECHO,;t t |
12011 | s,@ECHO@,$ECHO,;t t |
13258 | s,@CMP@,$CMP,;t t |
12012 | s,@CMP@,$CMP,;t t |
13259 | s,@TBL@,$TBL,;t t |
|
|
13260 | s,@TIC@,$TIC,;t t |
12013 | s,@TIC@,$TIC,;t t |
|
|
12014 | s,@CXXCPP@,$CXXCPP,;t t |
13261 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
12015 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
13262 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
12016 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
13263 | s,@X_LIBS@,$X_LIBS,;t t |
12017 | s,@X_LIBS@,$X_LIBS,;t t |
13264 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
12018 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
13265 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
12019 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
… | |
… | |
13269 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
12023 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
13270 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
12024 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
13271 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
12025 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
13272 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
12026 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
13273 | 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 |
13274 | s,@DEBUG@,$DEBUG,;t t |
12036 | s,@DEBUG@,$DEBUG,;t t |
13275 | s,@DINCLUDE@,$DINCLUDE,;t t |
12037 | s,@DINCLUDE@,$DINCLUDE,;t t |
13276 | s,@DLIB@,$DLIB,;t t |
12038 | s,@DLIB@,$DLIB,;t t |
13277 | s,@include_stdint_h@,$include_stdint_h,;t t |
12039 | s,@include_stdint_h@,$include_stdint_h,;t t |
13278 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
12040 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
… | |
… | |
13287 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
12049 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
13288 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
12050 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
13289 | s,@include_time_h@,$include_time_h,;t t |
12051 | s,@include_time_h@,$include_time_h,;t t |
13290 | s,@LIBOBJS@,$LIBOBJS,;t t |
12052 | s,@LIBOBJS@,$LIBOBJS,;t t |
13291 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
12053 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
13292 | /@MCOMMON@/r $MCOMMON |
|
|
13293 | s,@MCOMMON@,,;t t |
|
|
13294 | CEOF |
12054 | CEOF |
13295 | |
12055 | |
13296 | _ACEOF |
12056 | _ACEOF |
13297 | |
12057 | |
13298 | cat >>$CONFIG_STATUS <<\_ACEOF |
12058 | cat >>$CONFIG_STATUS <<\_ACEOF |
… | |
… | |
13808 | fi |
12568 | fi |
13809 | |
12569 | |
13810 | echo " |
12570 | echo " |
13811 | The following are set in config.h |
12571 | The following are set in config.h |
13812 | " |
12572 | " |
13813 | echo " pty/tty type: "$rxvt_cv_ptys |
|
|
13814 | if test x$support_utmp != xyes; then |
12573 | if test x$support_utmp != xyes; then |
13815 | echo " utmp support: disabled" |
12574 | echo " utmp support: disabled" |
13816 | echo |
12575 | echo |
13817 | else |
12576 | else |
13818 | echo " utmp support: enabled |
12577 | echo " utmp support: enabled |
13819 | utmp file: $rxvt_cv_path_utmp |
12578 | utmp file: $rxvt_cv_path_utmp |
13820 | utmpx file: $rxvt_cv_path_utmpx |
12579 | utmpx file: $rxvt_cv_path_utmpx |
13821 | wtmp file: $rxvt_cv_path_wtmp |
12580 | wtmp file: $rxvt_cv_path_wtmp |
13822 | wtmpx file: $rxvt_cv_path_wtmpx |
12581 | wtmpx file: $rxvt_cv_path_wtmpx |
13823 | lastlog file: $rxvt_cv_path_lastlog |
12582 | lastlog file: $rxvt_cv_path_lastlog |
13824 | ttys/ttytab file: $rxvt_cv_path_ttytab" |
12583 | ttys/ttytab file: $rxvt_cv_path_ttytab |
|
|
12584 | embedded perl: $support_perl" |
13825 | echo |
12585 | echo |
13826 | fi |
12586 | fi |
13827 | if test x$term != x; then |
12587 | if test x$term != x; then |
13828 | echo " set TERM to: $term" |
12588 | echo " set TERM to: $term" |
13829 | fi |
12589 | fi |
… | |
… | |
13834 | echo " resource class: $RESCLASS" |
12594 | echo " resource class: $RESCLASS" |
13835 | if test x$RESFALLBACK != x; then |
12595 | if test x$RESFALLBACK != x; then |
13836 | echo " resource class fallback: $RESFALLBACK" |
12596 | echo " resource class fallback: $RESFALLBACK" |
13837 | fi |
12597 | fi |
13838 | echo |
12598 | echo |
13839 | if test x$rxvt_cv_ptys = xUNKNOWN; then |
|
|
13840 | echo ".----------------------------------------------------------------." |
|
|
13841 | echo ". WARNING: could not determine pty/tty type. Do not build until ." |
|
|
13842 | echo ". the appropriate PTYS_ARE_* is defined in config.h ." |
|
|
13843 | echo ".----------------------------------------------------------------." |
|
|
13844 | fi |
|
|
13845 | if test x$support_xpm = xneedsmanualspecification; then |
12599 | if test x$support_xpm = xneedsmanualspecification; then |
13846 | echo ".----------------------------------------------------------------." |
12600 | echo ".----------------------------------------------------------------." |
13847 | echo ". WARNING: --enable-xpm-background was specified however the ." |
12601 | echo ". WARNING: --enable-xpm-background was specified however the ." |
13848 | echo ". XPM includes files and libraries could not be found. ." |
12602 | echo ". XPM includes files and libraries could not be found. ." |
13849 | echo ". XPM backgrounds are now being DISABLED! If you want ." |
12603 | echo ". XPM backgrounds are now being DISABLED! If you want ." |