ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.71 by root, Mon Jan 16 14:48:39 2006 UTC vs.
Revision 1.93 by root, Wed Jan 25 21:17:52 2006 UTC

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
312ac_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 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' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
313ac_subst_files='MCOMMON' 313ac_subst_files=''
314 314
315# Initialize some variables set by options. 315# Initialize some variables set by options.
316ac_init_help= 316ac_init_help=
317ac_init_version=false 317ac_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
870 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
872 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
873 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support 874 --enable-font-styles enable bold and italic support
875 --enable-utmp enable utmp (utmpx) support
876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
877 --enable-lastlog enable lastlog support (requires --enable-utmp)
878 --enable-xpm-background enable XPM background pixmaps 875 --enable-xpm-background enable XPM background pixmaps
879 --enable-transparency enable transparent backgrounds 876 --enable-transparency enable transparent backgrounds
880 --enable-tinting enable tinting of transparent bg 877 --enable-tinting enable tinting of transparent bg
881 --enable-fading enable colors fading when off focus 878 --enable-fading enable colors fading when off focus
882 --enable-rxvt-scroll enable rxvt style scrollbar 879 --enable-rxvt-scroll enable rxvt style scrollbar
883 --enable-next-scroll enable NeXT style scrollbar 880 --enable-next-scroll enable NeXT style scrollbar
884 --enable-xterm-scroll enable Xterm style scrollbar 881 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter 882 --enable-perl enable embedded perl interpreter
886 --enable-plain-scroll enable plain style scrollbar 883 --enable-plain-scroll enable plain style scrollbar
887 --enable-half-shadow use half width/height shadow on rxvt scrollbar
888 --enable-xim XIM (X Input Method) protocol support 884 --enable-xim XIM (X Input Method) protocol support
889 --enable-ttygid enable tty setting to group named "tty"
890 --disable-backspace-key disable handling of the backspace key 885 --disable-backspace-key disable handling of the backspace key
891 --disable-delete-key disable handling of the delete key 886 --disable-delete-key disable handling of the delete key
892 --disable-resources disable all resource checking 887 --disable-resources disable all resource checking
893 --enable-8bitctrls enable 8 bit control sequences (not recommended) 888 --enable-8bitctrls enable 8 bit control sequences (not recommended)
894 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 889 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
895 --disable-swapscreen disable swap screen support 890 --disable-swapscreen disable swap screen support
896 --enable-iso14755 enable support for extended ISO 14755 modes 891 --enable-iso14755 enable support for extended ISO 14755 modes
897 --enable-frills enable support for rarely used features 892 --enable-frills enable support for rarely used features
898 --enable-24bit enable support for using 24bit visuals if available
899 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 893 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
900 --enable-selectionscrolling enable scrolling during selections 894 --enable-selectionscrolling enable scrolling during selections
901 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 895 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
902 --enable-slipwheeling enable slip wheel scrolling (requires previous) 896 --enable-slipwheeling enable slip wheel scrolling (requires previous)
903 --enable-dmalloc enable Gray Watson's malloc - for debugging use
904 --enable-dlmalloc enable Doug Lea's malloc - for production use
905 NOTE: enable only one malloc package
906 --enable-smart-resize enable smart growth/shrink behaviour 897 --enable-smart-resize enable smart growth/shrink behaviour
907 --enable-text-blink enable blinking text 898 --enable-text-blink enable blinking text
908 --enable-pointer-blank enable pointer blank when typing or inactive pointer 899 --enable-pointer-blank enable pointer blank when typing or inactive pointer
900 --enable-utmp enable utmp (utmpx) support
901 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
902 --enable-lastlog enable lastlog support (requires --enable-utmp)
909 903
910Optional Packages: 904Optional Packages:
911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
913 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 907 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1370 1364
1371 1365
1372 1366
1373 1367
1374 1368
1369
1370 ac_config_headers="$ac_config_headers config.h:config.h.in"
1371
1372
1375ac_aux_dir= 1373ac_aux_dir=
1376for ac_dir in autoconf $srcdir/autoconf; do 1374for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1377 if test -f $ac_dir/install-sh; then 1375 if test -f $ac_dir/install-sh; then
1378 ac_aux_dir=$ac_dir 1376 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/install-sh -c" 1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1380 break 1378 break
1381 elif test -f $ac_dir/install.sh; then 1379 elif test -f $ac_dir/install.sh; then
1387 ac_install_sh="$ac_aux_dir/shtool install -c" 1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1388 break 1386 break
1389 fi 1387 fi
1390done 1388done
1391if test -z "$ac_aux_dir"; then 1389if test -z "$ac_aux_dir"; then
1392 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1390 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1393echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1391echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1394 { (exit 1); exit 1; }; } 1392 { (exit 1); exit 1; }; }
1395fi 1393fi
1396ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1394ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1395ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1396ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399
1400 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1401
1402 1397
1403# Make sure we can run config.sub. 1398# Make sure we can run config.sub.
1404$ac_config_sub sun4 >/dev/null 2>&1 || 1399$ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1401echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1458VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1453VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1459DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1454DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1460echo "" 1455echo ""
1461echo "configuring for rxvt $VERSION" 1456echo "configuring for rxvt $VERSION"
1462echo "" 1457echo ""
1458
1459orig_CXXFLAGS="$CXXFLAGS"
1463 1460
1464 1461
1465ac_ext=c 1462ac_ext=c
1466ac_cpp='$CPP $CPPFLAGS' 1463ac_cpp='$CPP $CPPFLAGS'
1467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 3045
3049test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3050 3047
3051test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3052 3049
3053for ac_prog in gawk mawk nawk awk
3054do
3055 # Extract the first word of "$ac_prog", so it can be a program name with args.
3056set dummy $ac_prog; ac_word=$2
3057echo "$as_me:$LINENO: checking for $ac_word" >&5
3058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3059if test "${ac_cv_prog_AWK+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
3062 if test -n "$AWK"; then
3063 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3064else
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_AWK="$ac_prog"
3073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3075 fi
3076done
3077done
3078 3050
3079fi
3080fi
3081AWK=$ac_cv_prog_AWK
3082if test -n "$AWK"; then
3083 echo "$as_me:$LINENO: result: $AWK" >&5
3084echo "${ECHO_T}$AWK" >&6
3085else
3086 echo "$as_me:$LINENO: result: no" >&5
3087echo "${ECHO_T}no" >&6
3088fi
3089
3090 test -n "$AWK" && break
3091done
3092
3093
3094ac_ext=c
3095ac_cpp='$CPP $CPPFLAGS'
3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
3100
3101if test -z "$orig_CXXFLAGS"; then
3102 CXXFLAGS='-O'
3103 if test x$GCC = xyes && test "x$GXX" = xyes; then
3104 CXXFLAGS="-g -O3"
3105 fi
3106 CFLAGS="$CXXFLAGS"
3107fi
3108
3109LINKER="$CXX"
3110if test x$GCC = xyes && test x$GXX = xyes; then
3111
3112echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3113echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3114if test "${ac_cv_lib_supcpp_main+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117 ac_check_lib_save_LIBS=$LIBS
3118LIBS="-lsupc++ $LIBS"
3119cat >conftest.$ac_ext <<_ACEOF
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125
3126
3127int
3128main ()
3129{
3130main ();
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext conftest$ac_exeext
3136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3137 (eval $ac_link) 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; } &&
3150 { ac_try='test -s conftest$ac_exeext'
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_lib_supcpp_main=yes
3157else
3158 echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161ac_cv_lib_supcpp_main=no
3162fi
3163rm -f conftest.err conftest.$ac_objext \
3164 conftest$ac_exeext conftest.$ac_ext
3165LIBS=$ac_check_lib_save_LIBS
3166fi
3167echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3168echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3169if test $ac_cv_lib_supcpp_main = yes; then
3170
3171 LINKER="$CC"
3172 LIBS="$LIBS -lsupc++"
3173
3174fi
3175
3176fi
3177LINKER=$LINKER
3178
3179
3180
3181cat >>confdefs.h <<\_ACEOF
3182#define _GNU_SOURCE 1
3183_ACEOF
3184
3185
3186case $host in
3187 *-*-solaris* )
3188
3189cat >>confdefs.h <<\_ACEOF
3190#define _XOPEN_SOURCE_EXTENDED 1
3191_ACEOF
3192
3193
3194cat >>confdefs.h <<\_ACEOF
3195#define _XOPEN_SOURCE 2
3196_ACEOF
3197
3198
3199cat >>confdefs.h <<\_ACEOF
3200#define __EXTENSIONS__ 1
3201_ACEOF
3202
3203 ;;
3204esac
3205
3206
3207ac_ext=cc
3208ac_cpp='$CXXCPP $CPPFLAGS'
3209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3212
3213
3214
3215ac_ext=cc
3216ac_cpp='$CXXCPP $CPPFLAGS'
3217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3220echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3221echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3222if test -z "$CXXCPP"; then
3223 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225else
3226 # Double quotes because CXXCPP needs to be expanded
3227 for CXXCPP in "$CXX -E" "/lib/cpp"
3228 do
3229 ac_preproc_ok=false
3230for ac_cxx_preproc_warn_flag in '' yes
3231do
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
3234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
3236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
3244#ifdef __STDC__
3245# include <limits.h>
3246#else
3247# include <assert.h>
3248#endif
3249 Syntax error
3250_ACEOF
3251if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3253 ac_status=$?
3254 grep -v '^ *+' conftest.er1 >conftest.err
3255 rm -f conftest.er1
3256 cat conftest.err >&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); } >/dev/null; then
3259 if test -s conftest.err; then
3260 ac_cpp_err=$ac_cxx_preproc_warn_flag
3261 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3262 else
3263 ac_cpp_err=
3264 fi
3265else
3266 ac_cpp_err=yes
3267fi
3268if test -z "$ac_cpp_err"; then
3269 :
3270else
3271 echo "$as_me: failed program was:" >&5
3272sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 # Broken: fails on valid input.
3275continue
3276fi
3277rm -f conftest.err conftest.$ac_ext
3278
3279 # OK, works on sane cases. Now check whether non-existent headers
3280 # can be detected and how.
3281 cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h. */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h. */
3287#include <ac_nonexistent.h>
3288_ACEOF
3289if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_cxx_preproc_warn_flag
3299 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3300 else
3301 ac_cpp_err=
3302 fi
3303else
3304 ac_cpp_err=yes
3305fi
3306if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input.
3308continue
3309else
3310 echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313 # Passes both tests.
3314ac_preproc_ok=:
3315break
3316fi
3317rm -f conftest.err conftest.$ac_ext
3318
3319done
3320# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3321rm -f conftest.err conftest.$ac_ext
3322if $ac_preproc_ok; then
3323 break
3324fi
3325
3326 done
3327 ac_cv_prog_CXXCPP=$CXXCPP
3328
3329fi
3330 CXXCPP=$ac_cv_prog_CXXCPP
3331else
3332 ac_cv_prog_CXXCPP=$CXXCPP
3333fi
3334echo "$as_me:$LINENO: result: $CXXCPP" >&5
3335echo "${ECHO_T}$CXXCPP" >&6
3336ac_preproc_ok=false
3337for ac_cxx_preproc_warn_flag in '' yes
3338do
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat >conftest.$ac_ext <<_ACEOF
3346/* confdefs.h. */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h. */
3351#ifdef __STDC__
3352# include <limits.h>
3353#else
3354# include <assert.h>
3355#endif
3356 Syntax error
3357_ACEOF
3358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } >/dev/null; then
3366 if test -s conftest.err; then
3367 ac_cpp_err=$ac_cxx_preproc_warn_flag
3368 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3369 else
3370 ac_cpp_err=
3371 fi
3372else
3373 ac_cpp_err=yes
3374fi
3375if test -z "$ac_cpp_err"; then
3376 :
3377else
3378 echo "$as_me: failed program was:" >&5
3379sed 's/^/| /' conftest.$ac_ext >&5
3380
3381 # Broken: fails on valid input.
3382continue
3383fi
3384rm -f conftest.err conftest.$ac_ext
3385
3386 # OK, works on sane cases. Now check whether non-existent headers
3387 # can be detected and how.
3388 cat >conftest.$ac_ext <<_ACEOF
3389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
3394#include <ac_nonexistent.h>
3395_ACEOF
3396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } >/dev/null; then
3404 if test -s conftest.err; then
3405 ac_cpp_err=$ac_cxx_preproc_warn_flag
3406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3407 else
3408 ac_cpp_err=
3409 fi
3410else
3411 ac_cpp_err=yes
3412fi
3413if test -z "$ac_cpp_err"; then
3414 # Broken: success on invalid input.
3415continue
3416else
3417 echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
3420 # Passes both tests.
3421ac_preproc_ok=:
3422break
3423fi
3424rm -f conftest.err conftest.$ac_ext
3425
3426done
3427# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428rm -f conftest.err conftest.$ac_ext
3429if $ac_preproc_ok; then
3430 :
3431else
3432 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3433See \`config.log' for more details." >&5
3434echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3435See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3437fi
3438
3439ac_ext=cc
3440ac_cpp='$CXXCPP $CPPFLAGS'
3441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3444 3051
3445 3052
3446echo "$as_me:$LINENO: checking for egrep" >&5 3053echo "$as_me:$LINENO: checking for egrep" >&5
3447echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3054echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3448if test "${ac_cv_prog_egrep+set}" = set; then 3055if test "${ac_cv_prog_egrep+set}" = set; then
3523 grep -v '^ *+' conftest.er1 >conftest.err 3130 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1 3131 rm -f conftest.er1
3525 cat conftest.err >&5 3132 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } && 3134 (exit $ac_status); } &&
3528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5 3137 (eval $ac_try) 2>&5
3531 ac_status=$? 3138 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } && 3140 (exit $ac_status); }; } &&
3577 grep -v '^ *+' conftest.er1 >conftest.err 3184 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1 3185 rm -f conftest.er1
3579 cat conftest.err >&5 3186 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } && 3188 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5 3191 (eval $ac_try) 2>&5
3585 ac_status=$? 3192 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; } && 3194 (exit $ac_status); }; } &&
3608echo "${ECHO_T}$ac_cv_search_strerror" >&6 3215echo "${ECHO_T}$ac_cv_search_strerror" >&6
3609if test "$ac_cv_search_strerror" != no; then 3216if test "$ac_cv_search_strerror" != no; then
3610 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3217 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3611 3218
3612fi 3219fi
3220
3221ac_ext=cc
3222ac_cpp='$CXXCPP $CPPFLAGS'
3223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3226
3227
3228if test x$GCC = xyes && test x$GXX = xyes; then
3229 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3230echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3231 save_CXX="$CXX"
3232 save_LIBS="$LIBS"
3233 CXX="$CC"
3234 LIBS="$LIBS -lsupc++"
3235 LINKER="$CC"
3236
3237cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243struct test { }; void f() try { throw new test; } catch (...) { throw; }
3244int
3245main ()
3246{
3247
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252rm -f conftest.$ac_objext conftest$ac_exeext
3253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254 (eval $ac_link) 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); } &&
3261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 (eval $ac_try) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; } &&
3267 { ac_try='test -s conftest$ac_exeext'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 echo "$as_me:$LINENO: result: ok" >&5
3274echo "${ECHO_T}ok" >&6
3275else
3276 echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279
3280 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3281echo "${ECHO_T}no, making everything bigger and slower" >&6
3282 LIBS="$save_LIBS"
3283 LINKER="$save_CXX"
3284
3285
3286fi
3287rm -f conftest.err conftest.$ac_objext \
3288 conftest$ac_exeext conftest.$ac_ext
3289 CXX="$save_CXX"
3290fi
3291LINKER=$LINKER
3292
3293
3294ac_ext=cc
3295ac_cpp='$CXXCPP $CPPFLAGS'
3296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3299
3300if test -z "$orig_CXXFLAGS"; then
3301 if test x$GCC = xyes && test "x$GXX" = xyes; then
3302 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3303 cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 :
3340else
3341 echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344CXXFLAGS="-g -O3"
3345fi
3346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347 else
3348 CXXFLAGS="-O"
3349 fi
3350 CFLAGS="$CXXFLAGS"
3351fi
3352
3353
3354cat >>confdefs.h <<\_ACEOF
3355#define _GNU_SOURCE 1
3356_ACEOF
3357
3358
3359case $host in
3360 *-*-solaris* )
3361
3362cat >>confdefs.h <<\_ACEOF
3363#define _XOPEN_SOURCE_EXTENDED 1
3364_ACEOF
3365
3366
3367cat >>confdefs.h <<\_ACEOF
3368#define _XOPEN_SOURCE 2
3369_ACEOF
3370
3371
3372cat >>confdefs.h <<\_ACEOF
3373#define __EXTENSIONS__ 1
3374_ACEOF
3375
3376 ;;
3377esac
3613 3378
3614 3379
3615echo "$as_me:$LINENO: checking for setlocale" >&5 3380echo "$as_me:$LINENO: checking for setlocale" >&5
3616echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 3381echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3617if test "${ac_cv_func_setlocale+set}" = set; then 3382if test "${ac_cv_func_setlocale+set}" = set; then
4313fi 4078fi
4314rm -f conftest.err conftest.$ac_objext \ 4079rm -f conftest.err conftest.$ac_objext \
4315 conftest$ac_exeext conftest.$ac_ext 4080 conftest$ac_exeext conftest.$ac_ext
4316 4081
4317 4082
4318MALLOC_TYPE=S
4319
4320support_frills=yes 4083support_frills=yes
4321support_inheritpixmap=yes 4084support_inheritpixmap=yes
4322support_tinting=yes 4085support_tinting=yes
4323support_fading=yes 4086support_fading=yes
4324support_keepscrolling=yes 4087support_keepscrolling=yes
4325support_selectionscrolling=yes 4088support_selectionscrolling=yes
4326support_mousewheel=yes 4089support_mousewheel=yes
4327support_mouseslipwheel=yes 4090support_mouseslipwheel=yes
4328support_utmp=yes
4329support_wtmp=yes
4330support_lastlog=yes
4331support_text_blink=yes 4091support_text_blink=yes
4332support_pointer_blank=yes 4092support_pointer_blank=yes
4333support_scroll_rxvt=yes 4093support_scroll_rxvt=yes
4334support_scroll_next=yes 4094support_scroll_next=yes
4335support_scroll_xterm=yes 4095support_scroll_xterm=yes
4359# Check whether --enable-everything or --disable-everything was given. 4119# Check whether --enable-everything or --disable-everything was given.
4360if test "${enable_everything+set}" = set; then 4120if test "${enable_everything+set}" = set; then
4361 enableval="$enable_everything" 4121 enableval="$enable_everything"
4362 4122
4363 if test x$enableval = xno; then 4123 if test x$enableval = xno; then
4364 support_24bit=no
4365 support_frills=no 4124 support_frills=no
4366 support_inheritpixmap=no 4125 support_inheritpixmap=no
4367 support_tinting=no 4126 support_tinting=no
4368 support_fading=no 4127 support_fading=no
4369 support_keepscrolling=no 4128 support_keepscrolling=no
4389 support_styles=no 4148 support_styles=no
4390 support_perl=no 4149 support_perl=no
4391 codesets= 4150 codesets=
4392 fi 4151 fi
4393 if test x$enableval = xyes; then 4152 if test x$enableval = xyes; then
4394 support_24bit=yes
4395 support_frills=yes 4153 support_frills=yes
4396 support_inheritpixmap=yes 4154 support_inheritpixmap=yes
4397 support_tinting=yes 4155 support_tinting=yes
4398 support_fading=yes 4156 support_fading=yes
4399 support_keepscrolling=yes 4157 support_keepscrolling=yes
4453 if test x$enableval = xyes -o x$enableval = xno; then 4211 if test x$enableval = xyes -o x$enableval = xno; then
4454 support_styles=$enableval 4212 support_styles=$enableval
4455 fi 4213 fi
4456fi; 4214fi;
4457 4215
4458# Check whether --enable-utmp or --disable-utmp was given.
4459if test "${enable_utmp+set}" = set; then
4460 enableval="$enable_utmp"
4461 if test x$enableval = xyes -o x$enableval = xno; then
4462 support_utmp=$enableval
4463 fi
4464fi;
4465
4466# Check whether --enable-wtmp or --disable-wtmp was given.
4467if test "${enable_wtmp+set}" = set; then
4468 enableval="$enable_wtmp"
4469 if test x$enableval = xyes -o x$enableval = xno; then
4470 support_wtmp=$enableval
4471 fi
4472fi;
4473
4474# Check whether --enable-lastlog or --disable-lastlog was given.
4475if test "${enable_lastlog+set}" = set; then
4476 enableval="$enable_lastlog"
4477 if test x$enableval = xyes -o x$enableval = xno; then
4478 support_lastlog=$enableval
4479 fi
4480fi;
4481
4482# Check whether --enable-xpm-background or --disable-xpm-background was given. 4216# Check whether --enable-xpm-background or --disable-xpm-background was given.
4483if test "${enable_xpm_background+set}" = set; then 4217if test "${enable_xpm_background+set}" = set; then
4484 enableval="$enable_xpm_background" 4218 enableval="$enable_xpm_background"
4485 if test x$enableval = xyes -o x$enableval = xno; then 4219 if test x$enableval = xyes -o x$enableval = xno; then
4486 support_xpm=$enableval 4220 support_xpm=$enableval
4549 if test x$enableval = xyes -o x$enableval = xno; then 4283 if test x$enableval = xyes -o x$enableval = xno; then
4550 support_scroll_plain=$enableval 4284 support_scroll_plain=$enableval
4551 fi 4285 fi
4552fi; 4286fi;
4553 4287
4554# Check whether --enable-half-shadow or --disable-half-shadow was given.
4555if test "${enable_half_shadow+set}" = set; then
4556 enableval="$enable_half_shadow"
4557 if test x$enableval = xyes; then
4558
4559cat >>confdefs.h <<\_ACEOF
4560#define HALFSHADOW 1
4561_ACEOF
4562
4563 fi
4564fi;
4565 4288
4566 4289
4567# Check whether --with-codesets or --without-codesets was given. 4290# Check whether --with-codesets or --without-codesets was given.
4568if test "${with_codesets+set}" = set; then 4291if test "${with_codesets+set}" = set; then
4569 withval="$with_codesets" 4292 withval="$with_codesets"
4576 if test x$enableval = xyes -o x$enableval = xno; then 4299 if test x$enableval = xyes -o x$enableval = xno; then
4577 support_xim=$enableval 4300 support_xim=$enableval
4578 fi 4301 fi
4579fi; 4302fi;
4580 4303
4581# Check whether --enable-ttygid or --disable-ttygid was given.
4582if test "${enable_ttygid+set}" = set; then
4583 enableval="$enable_ttygid"
4584 if test x$enableval = xyes; then
4585
4586cat >>confdefs.h <<\_ACEOF
4587#define TTY_GID_SUPPORT 1
4588_ACEOF
4589
4590 fi
4591fi;
4592
4593# Check whether --enable-backspace-key or --disable-backspace-key was given. 4304# Check whether --enable-backspace-key or --disable-backspace-key was given.
4594if test "${enable_backspace_key+set}" = set; then 4305if test "${enable_backspace_key+set}" = set; then
4595 enableval="$enable_backspace_key" 4306 enableval="$enable_backspace_key"
4596 if test x$enableval = xno; then 4307 if test x$enableval = xno; then
4597 4308
4721 if test x$enableval = xyes -o x$enableval = xno; then 4432 if test x$enableval = xyes -o x$enableval = xno; then
4722 support_frills=$enableval 4433 support_frills=$enableval
4723 fi 4434 fi
4724fi; 4435fi;
4725 4436
4726# Check whether --enable-24bit or --disable-24bit was given.
4727if test "${enable_24bit+set}" = set; then
4728 enableval="$enable_24bit"
4729 if test x$enableval = xyes -o x$enableval = xno; then
4730 support_24bit=$enableval
4731 fi
4732fi;
4733
4734# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 4437# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4735if test "${enable_keepscrolling+set}" = set; then 4438if test "${enable_keepscrolling+set}" = set; then
4736 enableval="$enable_keepscrolling" 4439 enableval="$enable_keepscrolling"
4737 if test x$enableval = xyes -o x$enableval = xno; then 4440 if test x$enableval = xyes -o x$enableval = xno; then
4738 support_keepscrolling=$enableval 4441 support_keepscrolling=$enableval
4761 if test x$enableval = xyes -o x$enableval = xno; then 4464 if test x$enableval = xyes -o x$enableval = xno; then
4762 support_mouseslipwheel=$enableval 4465 support_mouseslipwheel=$enableval
4763 fi 4466 fi
4764fi; 4467fi;
4765 4468
4766# Check whether --enable-dmalloc or --disable-dmalloc was given.
4767if test "${enable_dmalloc+set}" = set; then
4768 enableval="$enable_dmalloc"
4769 if test x$enableval = xyes; then
4770 MALLOC_TYPE=G
4771 DEBUG=-DDEBUG_MALLOC
4772 DLIB="-L/usr/local/lib -ldmalloc"
4773 DINCLUDE=-I/usr/local/include
4774 fi
4775fi;
4776
4777# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4778if test "${enable_dlmalloc+set}" = set; then
4779 enableval="$enable_dlmalloc"
4780 if test x$enableval = xyes; then
4781 MALLOC_TYPE=D
4782 DEBUG=
4783 DLIB="-L/usr/local/lib -ldlmalloc"
4784 DINCLUDE=
4785 fi
4786fi;
4787
4788# Check whether --enable-smart-resize or --disable-smart-resize was given. 4469# Check whether --enable-smart-resize or --disable-smart-resize was given.
4789if test "${enable_smart_resize+set}" = set; then 4470if test "${enable_smart_resize+set}" = set; then
4790 enableval="$enable_smart_resize" 4471 enableval="$enable_smart_resize"
4791 if test x$enableval = xyes; then 4472 if test x$enableval = xyes; then
4792 4473
4836#define RXVT_TERMINFO "$withval" 4517#define RXVT_TERMINFO "$withval"
4837_ACEOF 4518_ACEOF
4838 terminfo="$withval" 4519 terminfo="$withval"
4839 fi 4520 fi
4840fi; 4521fi;
4841
4842
4843
4844cat >>confdefs.h <<\_ACEOF
4845#define PROTOTYPES 1
4846_ACEOF
4847 4522
4848 4523
4849# Extract the first word of "mv", so it can be a program name with args. 4524# Extract the first word of "mv", so it can be a program name with args.
4850set dummy mv; ac_word=$2 4525set dummy mv; ac_word=$2
4851echo "$as_me:$LINENO: checking for $ac_word" >&5 4526echo "$as_me:$LINENO: checking for $ac_word" >&5
4884else 4559else
4885 echo "$as_me:$LINENO: result: no" >&5 4560 echo "$as_me:$LINENO: result: no" >&5
4886echo "${ECHO_T}no" >&6 4561echo "${ECHO_T}no" >&6
4887fi 4562fi
4888 4563
4889# Extract the first word of "rm", so it can be a program name with args.
4890set dummy rm; ac_word=$2
4891echo "$as_me:$LINENO: checking for $ac_word" >&5
4892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893if test "${ac_cv_path_RM+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896 case $RM in
4897 [\\/]* | ?:[\\/]*)
4898 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4899 ;;
4900 *)
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4911 fi
4912done
4913done
4914
4915 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4916 ;;
4917esac
4918fi
4919RM=$ac_cv_path_RM
4920
4921if test -n "$RM"; then
4922 echo "$as_me:$LINENO: result: $RM" >&5
4923echo "${ECHO_T}$RM" >&6
4924else
4925 echo "$as_me:$LINENO: result: no" >&5
4926echo "${ECHO_T}no" >&6
4927fi
4928
4929# Extract the first word of "cp", so it can be a program name with args. 4564# Extract the first word of "cp", so it can be a program name with args.
4930set dummy cp; ac_word=$2 4565set dummy cp; ac_word=$2
4931echo "$as_me:$LINENO: checking for $ac_word" >&5 4566echo "$as_me:$LINENO: checking for $ac_word" >&5
4932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4933if test "${ac_cv_path_CP+set}" = set; then 4568if test "${ac_cv_path_CP+set}" = set; then
5124else 4759else
5125 echo "$as_me:$LINENO: result: no" >&5 4760 echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6 4761echo "${ECHO_T}no" >&6
5127fi 4762fi
5128 4763
5129# Extract the first word of "tbl", so it can be a program name with args.
5130set dummy tbl; ac_word=$2
5131echo "$as_me:$LINENO: checking for $ac_word" >&5
5132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133if test "${ac_cv_path_TBL+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136 case $TBL in
5137 [\\/]* | ?:[\\/]*)
5138 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5139 ;;
5140 *)
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152done
5153done
5154
5155 ;;
5156esac
5157fi
5158TBL=$ac_cv_path_TBL
5159
5160if test -n "$TBL"; then
5161 echo "$as_me:$LINENO: result: $TBL" >&5
5162echo "${ECHO_T}$TBL" >&6
5163else
5164 echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
5166fi
5167
5168# Extract the first word of "tic", so it can be a program name with args. 4764# Extract the first word of "tic", so it can be a program name with args.
5169set dummy tic; ac_word=$2 4765set dummy tic; ac_word=$2
5170echo "$as_me:$LINENO: checking for $ac_word" >&5 4766echo "$as_me:$LINENO: checking for $ac_word" >&5
5171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172if test "${ac_cv_path_TIC+set}" = set; then 4768if test "${ac_cv_path_TIC+set}" = set; then
5203 echo "$as_me:$LINENO: result: no" >&5 4799 echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6 4800echo "${ECHO_T}no" >&6
5205fi 4801fi
5206 4802
5207 4803
4804
4805
4806ac_ext=cc
4807ac_cpp='$CXXCPP $CPPFLAGS'
4808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4811echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4812echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4813if test -z "$CXXCPP"; then
4814 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816else
4817 # Double quotes because CXXCPP needs to be expanded
4818 for CXXCPP in "$CXX -E" "/lib/cpp"
4819 do
4820 ac_preproc_ok=false
4821for ac_cxx_preproc_warn_flag in '' yes
4822do
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h. */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h. */
4835#ifdef __STDC__
4836# include <limits.h>
4837#else
4838# include <assert.h>
4839#endif
4840 Syntax error
4841_ACEOF
4842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_cxx_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4853 else
4854 ac_cpp_err=
4855 fi
4856else
4857 ac_cpp_err=yes
4858fi
4859if test -z "$ac_cpp_err"; then
4860 :
4861else
4862 echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 # Broken: fails on valid input.
4866continue
4867fi
4868rm -f conftest.err conftest.$ac_ext
4869
4870 # OK, works on sane cases. Now check whether non-existent headers
4871 # can be detected and how.
4872 cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h. */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h. */
4878#include <ac_nonexistent.h>
4879_ACEOF
4880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null; then
4888 if test -s conftest.err; then
4889 ac_cpp_err=$ac_cxx_preproc_warn_flag
4890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4891 else
4892 ac_cpp_err=
4893 fi
4894else
4895 ac_cpp_err=yes
4896fi
4897if test -z "$ac_cpp_err"; then
4898 # Broken: success on invalid input.
4899continue
4900else
4901 echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 # Passes both tests.
4905ac_preproc_ok=:
4906break
4907fi
4908rm -f conftest.err conftest.$ac_ext
4909
4910done
4911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4912rm -f conftest.err conftest.$ac_ext
4913if $ac_preproc_ok; then
4914 break
4915fi
4916
4917 done
4918 ac_cv_prog_CXXCPP=$CXXCPP
4919
4920fi
4921 CXXCPP=$ac_cv_prog_CXXCPP
4922else
4923 ac_cv_prog_CXXCPP=$CXXCPP
4924fi
4925echo "$as_me:$LINENO: result: $CXXCPP" >&5
4926echo "${ECHO_T}$CXXCPP" >&6
4927ac_preproc_ok=false
4928for ac_cxx_preproc_warn_flag in '' yes
4929do
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942#ifdef __STDC__
4943# include <limits.h>
4944#else
4945# include <assert.h>
4946#endif
4947 Syntax error
4948_ACEOF
4949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null; then
4957 if test -s conftest.err; then
4958 ac_cpp_err=$ac_cxx_preproc_warn_flag
4959 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4960 else
4961 ac_cpp_err=
4962 fi
4963else
4964 ac_cpp_err=yes
4965fi
4966if test -z "$ac_cpp_err"; then
4967 :
4968else
4969 echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972 # Broken: fails on valid input.
4973continue
4974fi
4975rm -f conftest.err conftest.$ac_ext
4976
4977 # OK, works on sane cases. Now check whether non-existent headers
4978 # can be detected and how.
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#include <ac_nonexistent.h>
4986_ACEOF
4987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null; then
4995 if test -s conftest.err; then
4996 ac_cpp_err=$ac_cxx_preproc_warn_flag
4997 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4998 else
4999 ac_cpp_err=
5000 fi
5001else
5002 ac_cpp_err=yes
5003fi
5004if test -z "$ac_cpp_err"; then
5005 # Broken: success on invalid input.
5006continue
5007else
5008 echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 # Passes both tests.
5012ac_preproc_ok=:
5013break
5014fi
5015rm -f conftest.err conftest.$ac_ext
5016
5017done
5018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019rm -f conftest.err conftest.$ac_ext
5020if $ac_preproc_ok; then
5021 :
5022else
5023 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5024See \`config.log' for more details." >&5
5025echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5026See \`config.log' for more details." >&2;}
5027 { (exit 1); exit 1; }; }
5028fi
5029
5030ac_ext=cc
5031ac_cpp='$CXXCPP $CPPFLAGS'
5032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5208 5035
5209 5036
5210 5037
5211if test "x$ac_path_x_has_been_run" != xyes; then 5038if test "x$ac_path_x_has_been_run" != xyes; then
5212 echo "$as_me:$LINENO: checking for X" >&5 5039 echo "$as_me:$LINENO: checking for X" >&5
7266 7093
7267 7094
7268 7095
7269 7096
7270 7097
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280for ac_header in \ 7098for ac_header in \
7281 assert.h \ 7099 assert.h \
7282 fcntl.h \ 7100 fcntl.h \
7283 grp.h \
7284 libc.h \
7285 lastlog.h \
7286 stdarg.h \ 7101 stdarg.h \
7287 stdlib.h \ 7102 stdlib.h \
7288 string.h \ 7103 string.h \
7289 termios.h \ 7104 termios.h \
7290 unistd.h \ 7105 unistd.h \
7291 sys/byteorder.h \ 7106 sys/byteorder.h \
7292 sys/ioctl.h \ 7107 sys/ioctl.h \
7293 sys/select.h \ 7108 sys/select.h \
7294 sys/sockio.h \ 7109 sys/sockio.h \
7295 sys/strredir.h \ 7110 sys/strredir.h \
7296 sys/stropts.h \
7297 sys/time.h \ 7111 sys/time.h \
7298 utmp.h \ 7112 stdint.h \
7299 utmpx.h \ 7113 wchar.h \
7300 stdint.h \ 7114 cwchar \
7301 pty.h \ 7115 clocale \
7302 util.h \
7303 libutil.h \
7304 wchar.h \
7305 cwchar \
7306 clocale \
7307 7116
7308do 7117do
7309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7310if eval "test \"\${$as_ac_Header+set}\" = set"; then 7119if eval "test \"\${$as_ac_Header+set}\" = set"; then
7311 echo "$as_me:$LINENO: checking for $ac_header" >&5 7120 echo "$as_me:$LINENO: checking for $ac_header" >&5
10138#define RETSIGTYPE $ac_cv_type_signal 9947#define RETSIGTYPE $ac_cv_type_signal
10139_ACEOF 9948_ACEOF
10140 9949
10141 9950
10142 9951
10143case "$host_alias" in
10144 *ultrix) ac_cv_func_setsid='no' ;;
10145 *) break;;
10146esac
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161 9952
10162 9953
10163 9954
10164 9955
10165 9956
10166 9957
10167for ac_func in \ 9958for ac_func in \
10168 atexit \
10169 revoke \
10170 unsetenv \ 9959 unsetenv \
10171 setutent \ 9960 setutent \
10172 seteuid \ 9961 seteuid \
9962 setresuid \
10173 setreuid \ 9963 setreuid \
10174 setsid \
10175 setpgrp \
10176 setpgid \
10177 _getpty \
10178 posix_openpt \
10179 grantpt \
10180 unlockpt \
10181 isastream \
10182 on_exit \ 9964 on_exit \
10183 nanosleep \
10184 updwtmp \
10185 updwtmpx \
10186 ttyslot \
10187 9965
10188do 9966do
10189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10190echo "$as_me:$LINENO: checking for $ac_func" >&5 9968echo "$as_me:$LINENO: checking for $ac_func" >&5
10191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10280 cat >>confdefs.h <<_ACEOF 10058 cat >>confdefs.h <<_ACEOF
10281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10282_ACEOF 10060_ACEOF
10283 10061
10284fi 10062fi
10063done
10064
10065
10066
10067support_utmp=yes
10068support_wtmp=yes
10069support_lastlog=yes
10070
10071# Check whether --enable-utmp or --disable-utmp was given.
10072if test "${enable_utmp+set}" = set; then
10073 enableval="$enable_utmp"
10074 if test x$enableval = xyes -o x$enableval = xno; then
10075 support_utmp=$enableval
10076 fi
10077fi;
10078
10079# Check whether --enable-wtmp or --disable-wtmp was given.
10080if test "${enable_wtmp+set}" = set; then
10081 enableval="$enable_wtmp"
10082 if test x$enableval = xyes -o x$enableval = xno; then
10083 support_wtmp=$enableval
10084 fi
10085fi;
10086
10087# Check whether --enable-lastlog or --disable-lastlog was given.
10088if test "${enable_lastlog+set}" = set; then
10089 enableval="$enable_lastlog"
10090 if test x$enableval = xyes -o x$enableval = xno; then
10091 support_lastlog=$enableval
10092 fi
10093fi;
10094
10095if test x$support_utmp = xyes; then
10096
10097cat >>confdefs.h <<\_ACEOF
10098#define UTMP_SUPPORT 1
10099_ACEOF
10100
10101fi
10102if test x$support_wtmp = xyes; then
10103
10104cat >>confdefs.h <<\_ACEOF
10105#define WTMP_SUPPORT 1
10106_ACEOF
10107
10108fi
10109if test x$support_lastlog = xyes; then
10110
10111cat >>confdefs.h <<\_ACEOF
10112#define LASTLOG_SUPPORT 1
10113_ACEOF
10114
10115fi
10116
10117
10118
10119
10120for ac_func in \
10121 ttyslot \
10122 updwtmp \
10123 updwtmpx \
10124
10125do
10126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10127echo "$as_me:$LINENO: checking for $ac_func" >&5
10128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10129if eval "test \"\${$as_ac_var+set}\" = set"; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 cat >conftest.$ac_ext <<_ACEOF
10133/* confdefs.h. */
10134_ACEOF
10135cat confdefs.h >>conftest.$ac_ext
10136cat >>conftest.$ac_ext <<_ACEOF
10137/* end confdefs.h. */
10138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10140#define $ac_func innocuous_$ac_func
10141
10142/* System header to define __stub macros and hopefully few prototypes,
10143 which can conflict with char $ac_func (); below.
10144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10145 <limits.h> exists even on freestanding compilers. */
10146
10147#ifdef __STDC__
10148# include <limits.h>
10149#else
10150# include <assert.h>
10151#endif
10152
10153#undef $ac_func
10154
10155/* Override any gcc2 internal prototype to avoid an error. */
10156#ifdef __cplusplus
10157extern "C"
10158{
10159#endif
10160/* We use char because int might match the return type of a gcc2
10161 builtin and then its argument prototype would still apply. */
10162char $ac_func ();
10163/* The GNU C library defines this for functions which it implements
10164 to always fail with ENOSYS. Some functions are actually named
10165 something starting with __ and the normal name is an alias. */
10166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10167choke me
10168#else
10169char (*f) () = $ac_func;
10170#endif
10171#ifdef __cplusplus
10172}
10173#endif
10174
10175int
10176main ()
10177{
10178return f != $ac_func;
10179 ;
10180 return 0;
10181}
10182_ACEOF
10183rm -f conftest.$ac_objext conftest$ac_exeext
10184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185 (eval $ac_link) 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; } &&
10198 { ac_try='test -s conftest$ac_exeext'
10199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 eval "$as_ac_var=yes"
10205else
10206 echo "$as_me: failed program was:" >&5
10207sed 's/^/| /' conftest.$ac_ext >&5
10208
10209eval "$as_ac_var=no"
10210fi
10211rm -f conftest.err conftest.$ac_objext \
10212 conftest$ac_exeext conftest.$ac_ext
10213fi
10214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10216if test `eval echo '${'$as_ac_var'}'` = yes; then
10217 cat >>confdefs.h <<_ACEOF
10218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10219_ACEOF
10220
10221fi
10222done
10223
10224
10225
10226
10227
10228for ac_header in \
10229 utmp.h \
10230 utmpx.h \
10231 lastlog.h \
10232
10233do
10234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10235if eval "test \"\${$as_ac_Header+set}\" = set"; then
10236 echo "$as_me:$LINENO: checking for $ac_header" >&5
10237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10238if eval "test \"\${$as_ac_Header+set}\" = set"; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240fi
10241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10243else
10244 # Is the header compilable?
10245echo "$as_me:$LINENO: checking $ac_header usability" >&5
10246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10247cat >conftest.$ac_ext <<_ACEOF
10248/* confdefs.h. */
10249_ACEOF
10250cat confdefs.h >>conftest.$ac_ext
10251cat >>conftest.$ac_ext <<_ACEOF
10252/* end confdefs.h. */
10253$ac_includes_default
10254#include <$ac_header>
10255_ACEOF
10256rm -f conftest.$ac_objext
10257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10258 (eval $ac_compile) 2>conftest.er1
10259 ac_status=$?
10260 grep -v '^ *+' conftest.er1 >conftest.err
10261 rm -f conftest.er1
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } &&
10265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; } &&
10271 { ac_try='test -s conftest.$ac_objext'
10272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273 (eval $ac_try) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
10277 ac_header_compiler=yes
10278else
10279 echo "$as_me: failed program was:" >&5
10280sed 's/^/| /' conftest.$ac_ext >&5
10281
10282ac_header_compiler=no
10283fi
10284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10285echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10286echo "${ECHO_T}$ac_header_compiler" >&6
10287
10288# Is the header present?
10289echo "$as_me:$LINENO: checking $ac_header presence" >&5
10290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10291cat >conftest.$ac_ext <<_ACEOF
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297#include <$ac_header>
10298_ACEOF
10299if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10300 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } >/dev/null; then
10307 if test -s conftest.err; then
10308 ac_cpp_err=$ac_cxx_preproc_warn_flag
10309 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10310 else
10311 ac_cpp_err=
10312 fi
10313else
10314 ac_cpp_err=yes
10315fi
10316if test -z "$ac_cpp_err"; then
10317 ac_header_preproc=yes
10318else
10319 echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322 ac_header_preproc=no
10323fi
10324rm -f conftest.err conftest.$ac_ext
10325echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10326echo "${ECHO_T}$ac_header_preproc" >&6
10327
10328# So? What about this header?
10329case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10330 yes:no: )
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10332echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10334echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10335 ac_header_preproc=yes
10336 ;;
10337 no:yes:* )
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10339echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10341echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10343echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10345echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10347echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10349echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10350 (
10351 cat <<\_ASBOX
10352## ------------------------------------------ ##
10353## Report this to the AC_PACKAGE_NAME lists. ##
10354## ------------------------------------------ ##
10355_ASBOX
10356 ) |
10357 sed "s/^/$as_me: WARNING: /" >&2
10358 ;;
10359esac
10360echo "$as_me:$LINENO: checking for $ac_header" >&5
10361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10362if eval "test \"\${$as_ac_Header+set}\" = set"; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10364else
10365 eval "$as_ac_Header=\$ac_header_preproc"
10366fi
10367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10368echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10369
10370fi
10371if test `eval echo '${'$as_ac_Header'}'` = yes; then
10372 cat >>confdefs.h <<_ACEOF
10373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10374_ACEOF
10375
10376fi
10377
10285done 10378done
10286 10379
10287 10380
10288 10381
10289if test "${ac_cv_header_utmp_h+set}" = set; then 10382if test "${ac_cv_header_utmp_h+set}" = set; then
10423 10516
10424fi 10517fi
10425if test $ac_cv_header_utmp_h = yes; then 10518if test $ac_cv_header_utmp_h = yes; then
10426 echo "$as_me:$LINENO: checking for struct utmp" >&5 10519 echo "$as_me:$LINENO: checking for struct utmp" >&5
10427echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10520echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10428if test "${rxvt_cv_struct_utmp+set}" = set; then 10521if test "${struct_utmp+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6 10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10430else 10523else
10431 cat >conftest.$ac_ext <<_ACEOF 10524 cat >conftest.$ac_ext <<_ACEOF
10432/* confdefs.h. */ 10525/* confdefs.h. */
10433_ACEOF 10526_ACEOF
10434cat confdefs.h >>conftest.$ac_ext 10527cat confdefs.h >>conftest.$ac_ext
10435cat >>conftest.$ac_ext <<_ACEOF 10528cat >>conftest.$ac_ext <<_ACEOF
10436/* end confdefs.h. */ 10529/* end confdefs.h. */
10437#include <sys/types.h> 10530#include <sys/types.h>
10438#include <stdint.h>
10439#include <utmp.h> 10531#include <utmp.h>
10440int 10532int
10441main () 10533main ()
10442{ 10534{
10443struct utmp ut; 10535struct utmp ut;
10464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465 (eval $ac_try) 2>&5 10557 (eval $ac_try) 2>&5
10466 ac_status=$? 10558 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then 10560 (exit $ac_status); }; }; then
10469 rxvt_cv_struct_utmp=yes 10561 struct_utmp=yes
10470else 10562else
10471 echo "$as_me: failed program was:" >&5 10563 echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5 10564sed 's/^/| /' conftest.$ac_ext >&5
10473 10565
10474rxvt_cv_struct_utmp=no 10566struct_utmp=no
10475fi 10567fi
10476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10477fi 10569fi
10478echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10570echo "$as_me:$LINENO: result: $struct_utmp" >&5
10479echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10571echo "${ECHO_T}$struct_utmp" >&6
10480if test x$rxvt_cv_struct_utmp = xyes; then 10572if test x$struct_utmp = xyes; then
10481 10573
10482cat >>confdefs.h <<\_ACEOF 10574cat >>confdefs.h <<\_ACEOF
10483#define HAVE_STRUCT_UTMP 1 10575#define HAVE_STRUCT_UTMP 1
10484_ACEOF 10576_ACEOF
10485 10577
10486fi 10578fi
10487 10579
10488 10580
10489echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10581echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10490echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10582echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10491if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10583if test "${struct_utmp_host+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6 10584 echo $ECHO_N "(cached) $ECHO_C" >&6
10493else 10585else
10494 cat >conftest.$ac_ext <<_ACEOF 10586 cat >conftest.$ac_ext <<_ACEOF
10495/* confdefs.h. */ 10587/* confdefs.h. */
10496_ACEOF 10588_ACEOF
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5 10619 (eval $ac_try) 2>&5
10528 ac_status=$? 10620 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then 10622 (exit $ac_status); }; }; then
10531 rxvt_cv_struct_utmp_host=yes 10623 struct_utmp_host=yes
10532else 10624else
10533 echo "$as_me: failed program was:" >&5 10625 echo "$as_me: failed program was:" >&5
10534sed 's/^/| /' conftest.$ac_ext >&5 10626sed 's/^/| /' conftest.$ac_ext >&5
10535 10627
10536rxvt_cv_struct_utmp_host=no 10628struct_utmp_host=no
10537fi 10629fi
10538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10539fi 10631fi
10540echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10632echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10541echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10633echo "${ECHO_T}$struct_utmp_host" >&6
10542if test x$rxvt_cv_struct_utmp_host = xyes; then 10634if test x$struct_utmp_host = xyes; then
10543 10635
10544cat >>confdefs.h <<\_ACEOF 10636cat >>confdefs.h <<\_ACEOF
10545#define HAVE_UTMP_HOST 1 10637#define HAVE_UTMP_HOST 1
10546_ACEOF 10638_ACEOF
10547 10639
10548fi 10640fi
10549 10641
10550echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10642echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10551echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10643echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10552if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10644if test "${struct_utmp_pid+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6 10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10554else 10646else
10555 cat >conftest.$ac_ext <<_ACEOF 10647 cat >conftest.$ac_ext <<_ACEOF
10556/* confdefs.h. */ 10648/* confdefs.h. */
10557_ACEOF 10649_ACEOF
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5 10680 (eval $ac_try) 2>&5
10589 ac_status=$? 10681 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; }; then 10683 (exit $ac_status); }; }; then
10592 rxvt_cv_struct_utmp_pid=yes 10684 struct_utmp_pid=yes
10593else 10685else
10594 echo "$as_me: failed program was:" >&5 10686 echo "$as_me: failed program was:" >&5
10595sed 's/^/| /' conftest.$ac_ext >&5 10687sed 's/^/| /' conftest.$ac_ext >&5
10596 10688
10597rxvt_cv_struct_utmp_pid=no 10689struct_utmp_pid=no
10598fi 10690fi
10599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10600fi 10692fi
10601echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10693echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10602echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10694echo "${ECHO_T}$struct_utmp_pid" >&6
10603if test x$rxvt_cv_struct_utmp_pid = xyes; then 10695if test x$struct_utmp_pid = xyes; then
10604 10696
10605cat >>confdefs.h <<\_ACEOF 10697cat >>confdefs.h <<\_ACEOF
10606#define HAVE_UTMP_PID 1 10698#define HAVE_UTMP_PID 1
10607_ACEOF 10699_ACEOF
10608 10700
10749 10841
10750fi 10842fi
10751if test $ac_cv_header_utmpx_h = yes; then 10843if test $ac_cv_header_utmpx_h = yes; then
10752 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10844 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10753echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10845echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10754if test "${rxvt_cv_struct_utmpx+set}" = set; then 10846if test "${struct_utmpx+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6 10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10756else 10848else
10757 cat >conftest.$ac_ext <<_ACEOF 10849 cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */ 10850/* confdefs.h. */
10759_ACEOF 10851_ACEOF
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5 10882 (eval $ac_try) 2>&5
10791 ac_status=$? 10883 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then 10885 (exit $ac_status); }; }; then
10794 rxvt_cv_struct_utmpx=yes 10886 struct_utmpx=yes
10795else 10887else
10796 echo "$as_me: failed program was:" >&5 10888 echo "$as_me: failed program was:" >&5
10797sed 's/^/| /' conftest.$ac_ext >&5 10889sed 's/^/| /' conftest.$ac_ext >&5
10798 10890
10799rxvt_cv_struct_utmpx=no 10891struct_utmpx=no
10800fi 10892fi
10801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10802fi 10894fi
10803echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10895echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10804echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10896echo "${ECHO_T}$struct_utmpx" >&6
10805if test x$rxvt_cv_struct_utmpx = xyes; then 10897if test x$struct_utmpx = xyes; then
10806 10898
10807cat >>confdefs.h <<\_ACEOF 10899cat >>confdefs.h <<\_ACEOF
10808#define HAVE_STRUCT_UTMPX 1 10900#define HAVE_STRUCT_UTMPX 1
10809_ACEOF 10901_ACEOF
10810 10902
10811fi 10903fi
10812 10904
10813 10905
10814echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10906echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10815echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10907echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10816if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10908if test "${struct_utmpx_host+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6 10909 echo $ECHO_N "(cached) $ECHO_C" >&6
10818else 10910else
10819 cat >conftest.$ac_ext <<_ACEOF 10911 cat >conftest.$ac_ext <<_ACEOF
10820/* confdefs.h. */ 10912/* confdefs.h. */
10821_ACEOF 10913_ACEOF
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5 10944 (eval $ac_try) 2>&5
10853 ac_status=$? 10945 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then 10947 (exit $ac_status); }; }; then
10856 rxvt_cv_struct_utmpx_host=yes 10948 struct_utmpx_host=yes
10857else 10949else
10858 echo "$as_me: failed program was:" >&5 10950 echo "$as_me: failed program was:" >&5
10859sed 's/^/| /' conftest.$ac_ext >&5 10951sed 's/^/| /' conftest.$ac_ext >&5
10860 10952
10861rxvt_cv_struct_utmpx_host=no 10953struct_utmpx_host=no
10862fi 10954fi
10863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10864fi 10956fi
10865echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10957echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10866echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10958echo "${ECHO_T}$struct_utmpx_host" >&6
10867if test x$rxvt_cv_struct_utmpx_host = xyes; then 10959if test x$struct_utmpx_host = xyes; then
10868 10960
10869cat >>confdefs.h <<\_ACEOF 10961cat >>confdefs.h <<\_ACEOF
10870#define HAVE_UTMPX_HOST 1 10962#define HAVE_UTMPX_HOST 1
10871_ACEOF 10963_ACEOF
10872 10964
10873fi 10965fi
10874 10966
10875echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 10967echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10876echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 10968echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10877if test "${rxvt_cv_struct_utmpx_session+set}" = set; then 10969if test "${struct_utmpx_session+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6 10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10879else 10971else
10880 cat >conftest.$ac_ext <<_ACEOF 10972 cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h. */ 10973/* confdefs.h. */
10882_ACEOF 10974_ACEOF
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5 11005 (eval $ac_try) 2>&5
10914 ac_status=$? 11006 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then 11008 (exit $ac_status); }; }; then
10917 rxvt_cv_struct_utmpx_session=yes 11009 struct_utmpx_session=yes
10918else 11010else
10919 echo "$as_me: failed program was:" >&5 11011 echo "$as_me: failed program was:" >&5
10920sed 's/^/| /' conftest.$ac_ext >&5 11012sed 's/^/| /' conftest.$ac_ext >&5
10921 11013
10922rxvt_cv_struct_utmpx_session=no 11014struct_utmpx_session=no
10923fi 11015fi
10924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10925fi 11017fi
10926echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 11018echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10927echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 11019echo "${ECHO_T}$struct_utmpx_session" >&6
10928if test x$rxvt_cv_struct_utmpx_session = xyes; then 11020if test x$struct_utmpx_session = xyes; then
10929 11021
10930cat >>confdefs.h <<\_ACEOF 11022cat >>confdefs.h <<\_ACEOF
10931#define HAVE_UTMPX_SESSION 1 11023#define HAVE_UTMPX_SESSION 1
10932_ACEOF 11024_ACEOF
10933 11025
10936fi 11028fi
10937 11029
10938 11030
10939echo "$as_me:$LINENO: checking for struct lastlog" >&5 11031echo "$as_me:$LINENO: checking for struct lastlog" >&5
10940echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 11032echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10941if test "${rxvt_cv_struct_lastlog+set}" = set; then 11033if test "${struct_lastlog+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6 11034 echo $ECHO_N "(cached) $ECHO_C" >&6
10943else 11035else
10944 cat >conftest.$ac_ext <<_ACEOF 11036 cat >conftest.$ac_ext <<_ACEOF
10945/* confdefs.h. */ 11037/* confdefs.h. */
10946_ACEOF 11038_ACEOF
10980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981 (eval $ac_try) 2>&5 11073 (eval $ac_try) 2>&5
10982 ac_status=$? 11074 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then 11076 (exit $ac_status); }; }; then
10985 rxvt_cv_struct_lastlog=yes 11077 struct_lastlog=yes
10986else 11078else
10987 echo "$as_me: failed program was:" >&5 11079 echo "$as_me: failed program was:" >&5
10988sed 's/^/| /' conftest.$ac_ext >&5 11080sed 's/^/| /' conftest.$ac_ext >&5
10989 11081
10990rxvt_cv_struct_lastlog=no 11082struct_lastlog=no
10991fi 11083fi
10992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10993fi 11085fi
10994echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 11086echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10995echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 11087echo "${ECHO_T}$struct_lastlog" >&6
10996if test x$rxvt_cv_struct_lastlog = xyes; then 11088if test x$struct_lastlog = xyes; then
10997 11089
10998cat >>confdefs.h <<\_ACEOF 11090cat >>confdefs.h <<\_ACEOF
10999#define HAVE_STRUCT_LASTLOG 1 11091#define HAVE_STRUCT_LASTLOG 1
11000_ACEOF 11092_ACEOF
11001 11093
11002fi 11094fi
11003 11095
11004echo "$as_me:$LINENO: checking for struct lastlogx" >&5 11096echo "$as_me:$LINENO: checking for struct lastlogx" >&5
11005echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 11097echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
11006if test "${rxvt_cv_struct_lastlogx+set}" = set; then 11098if test "${struct_lastlogx+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6 11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else 11100else
11009 cat >conftest.$ac_ext <<_ACEOF 11101 cat >conftest.$ac_ext <<_ACEOF
11010/* confdefs.h. */ 11102/* confdefs.h. */
11011_ACEOF 11103_ACEOF
11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046 (eval $ac_try) 2>&5 11138 (eval $ac_try) 2>&5
11047 ac_status=$? 11139 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then 11141 (exit $ac_status); }; }; then
11050 rxvt_cv_struct_lastlogx=yes 11142 struct_lastlogx=yes
11051else 11143else
11052 echo "$as_me: failed program was:" >&5 11144 echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5 11145sed 's/^/| /' conftest.$ac_ext >&5
11054 11146
11055rxvt_cv_struct_lastlogx=no 11147struct_lastlogx=no
11056fi 11148fi
11057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11058fi 11150fi
11059echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 11151echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
11060echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 11152echo "${ECHO_T}$struct_lastlogx" >&6
11061if test x$rxvt_cv_struct_lastlogx = xyes; then 11153if test x$struct_lastlogx = xyes; then
11062 11154
11063cat >>confdefs.h <<\_ACEOF 11155cat >>confdefs.h <<\_ACEOF
11064#define HAVE_STRUCT_LASTLOGX 1 11156#define HAVE_STRUCT_LASTLOGX 1
11065_ACEOF 11157_ACEOF
11066 11158
11067fi 11159fi
11068 11160
11069 11161
11070echo "$as_me:$LINENO: checking where utmp is located" >&5 11162echo "$as_me:$LINENO: checking where utmp is located" >&5
11071echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 11163echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
11072if test "${rxvt_cv_path_utmp+set}" = set; then 11164if test "${path_utmp+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6 11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11074else 11166else
11075 if test "$cross_compiling" = yes; then 11167 if test "$cross_compiling" = yes; then
11076 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 11168 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
11077echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 11169echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
11078else 11170else
11079 cat >conftest.$ac_ext <<_ACEOF 11171 cat >conftest.$ac_ext <<_ACEOF
11080/* confdefs.h. */ 11172/* confdefs.h. */
11081_ACEOF 11173_ACEOF
11082cat confdefs.h >>conftest.$ac_ext 11174cat confdefs.h >>conftest.$ac_ext
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5 11211 (eval $ac_try) 2>&5
11120 ac_status=$? 11212 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then 11214 (exit $ac_status); }; }; then
11123 rxvt_cv_path_utmp=`cat conftestval` 11215 path_utmp=`cat conftestval`
11124else 11216else
11125 echo "$as_me: program exited with status $ac_status" >&5 11217 echo "$as_me: program exited with status $ac_status" >&5
11126echo "$as_me: failed program was:" >&5 11218echo "$as_me: failed program was:" >&5
11127sed 's/^/| /' conftest.$ac_ext >&5 11219sed 's/^/| /' conftest.$ac_ext >&5
11128 11220
11129( exit $ac_status ) 11221( exit $ac_status )
11130rxvt_cv_path_utmp= 11222path_utmp=
11131fi 11223fi
11132rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11224rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11133fi 11225fi
11134fi 11226fi
11135echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11227echo "$as_me:$LINENO: result: $path_utmp" >&5
11136echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11228echo "${ECHO_T}$path_utmp" >&6
11137if test x$rxvt_cv_path_utmp != x; then 11229if test x$path_utmp != x; then
11138 11230
11139cat >>confdefs.h <<_ACEOF 11231cat >>confdefs.h <<_ACEOF
11140#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11232#define UTMP_FILE "$path_utmp"
11141_ACEOF 11233_ACEOF
11142 11234
11143fi 11235fi
11144 11236
11145 11237
11146echo "$as_me:$LINENO: checking where utmpx is located" >&5 11238echo "$as_me:$LINENO: checking where utmpx is located" >&5
11147echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11239echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11148if test "${rxvt_cv_path_utmpx+set}" = set; then 11240if test "${path_utmpx+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6 11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11150else 11242else
11151 if test "$cross_compiling" = yes; then 11243 if test "$cross_compiling" = yes; then
11152 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11244 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
11153echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11245echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
11154else 11246else
11155 cat >conftest.$ac_ext <<_ACEOF 11247 cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */ 11248/* confdefs.h. */
11157_ACEOF 11249_ACEOF
11158cat confdefs.h >>conftest.$ac_ext 11250cat confdefs.h >>conftest.$ac_ext
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5 11297 (eval $ac_try) 2>&5
11206 ac_status=$? 11298 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then 11300 (exit $ac_status); }; }; then
11209 rxvt_cv_path_utmpx=`cat conftestval` 11301 path_utmpx=`cat conftestval`
11210else 11302else
11211 echo "$as_me: program exited with status $ac_status" >&5 11303 echo "$as_me: program exited with status $ac_status" >&5
11212echo "$as_me: failed program was:" >&5 11304echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5 11305sed 's/^/| /' conftest.$ac_ext >&5
11214 11306
11215( exit $ac_status ) 11307( exit $ac_status )
11216rxvt_cv_path_utmpx= 11308path_utmpx=
11217fi 11309fi
11218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11219fi 11311fi
11220fi 11312fi
11221echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11313echo "$as_me:$LINENO: result: $path_utmpx" >&5
11222echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11314echo "${ECHO_T}$path_utmpx" >&6
11223if test x$rxvt_cv_path_utmpx != x; then 11315if test x$path_utmpx != x; then
11224 11316
11225cat >>confdefs.h <<_ACEOF 11317cat >>confdefs.h <<_ACEOF
11226#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11318#define UTMPX_FILE "$path_utmpx"
11227_ACEOF 11319_ACEOF
11228 11320
11229fi 11321fi
11230 11322
11231 11323
11232echo "$as_me:$LINENO: checking where wtmp is located" >&5 11324echo "$as_me:$LINENO: checking where wtmp is located" >&5
11233echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11325echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11234if test "${rxvt_cv_path_wtmp+set}" = set; then 11326if test "${path_wtmp+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6 11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11236else 11328else
11237 if test "$cross_compiling" = yes; then 11329 if test "$cross_compiling" = yes; then
11238 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11330 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
11239echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11331echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11240else 11332else
11241 cat >conftest.$ac_ext <<_ACEOF 11333 cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */ 11334/* confdefs.h. */
11243_ACEOF 11335_ACEOF
11244cat confdefs.h >>conftest.$ac_ext 11336cat confdefs.h >>conftest.$ac_ext
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5 11375 (eval $ac_try) 2>&5
11284 ac_status=$? 11376 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then 11378 (exit $ac_status); }; }; then
11287 rxvt_cv_path_wtmp=`cat conftestval` 11379 path_wtmp=`cat conftestval`
11288else 11380else
11289 echo "$as_me: program exited with status $ac_status" >&5 11381 echo "$as_me: program exited with status $ac_status" >&5
11290echo "$as_me: failed program was:" >&5 11382echo "$as_me: failed program was:" >&5
11291sed 's/^/| /' conftest.$ac_ext >&5 11383sed 's/^/| /' conftest.$ac_ext >&5
11292 11384
11293( exit $ac_status ) 11385( exit $ac_status )
11294rxvt_cv_path_wtmp= 11386path_wtmp=
11295fi 11387fi
11296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11388rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11297fi 11389fi
11298fi 11390fi
11299echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11391echo "$as_me:$LINENO: result: $path_wtmp" >&5
11300echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11392echo "${ECHO_T}$path_wtmp" >&6
11301if test x$rxvt_cv_path_wtmp != x; then 11393if test x$path_wtmp != x; then
11302 11394
11303cat >>confdefs.h <<_ACEOF 11395cat >>confdefs.h <<_ACEOF
11304#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11396#define WTMP_FILE "$path_wtmp"
11305_ACEOF 11397_ACEOF
11306 11398
11307fi 11399fi
11308 11400
11309echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11401echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11310echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11402echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11311if test "${rxvt_cv_path_wtmpx+set}" = set; then 11403if test "${path_wtmpx+set}" = set; then
11312 echo $ECHO_N "(cached) $ECHO_C" >&6 11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11313else 11405else
11314 if test "$cross_compiling" = yes; then 11406 if test "$cross_compiling" = yes; then
11315 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11407 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
11316echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11408echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11317else 11409else
11318 cat >conftest.$ac_ext <<_ACEOF 11410 cat >conftest.$ac_ext <<_ACEOF
11319/* confdefs.h. */ 11411/* confdefs.h. */
11320_ACEOF 11412_ACEOF
11321cat confdefs.h >>conftest.$ac_ext 11413cat confdefs.h >>conftest.$ac_ext
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5 11451 (eval $ac_try) 2>&5
11360 ac_status=$? 11452 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then 11454 (exit $ac_status); }; }; then
11363 rxvt_cv_path_wtmpx=`cat conftestval` 11455 path_wtmpx=`cat conftestval`
11364else 11456else
11365 echo "$as_me: program exited with status $ac_status" >&5 11457 echo "$as_me: program exited with status $ac_status" >&5
11366echo "$as_me: failed program was:" >&5 11458echo "$as_me: failed program was:" >&5
11367sed 's/^/| /' conftest.$ac_ext >&5 11459sed 's/^/| /' conftest.$ac_ext >&5
11368 11460
11369( exit $ac_status ) 11461( exit $ac_status )
11370rxvt_cv_path_wtmpx= 11462path_wtmpx=
11371fi 11463fi
11372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11464rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11373fi 11465fi
11374fi 11466fi
11375echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11467echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11376echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11468echo "${ECHO_T}$path_wtmpx" >&6
11377if test x$rxvt_cv_path_wtmpx != x; then 11469if test x$path_wtmpx != x; then
11378 11470
11379cat >>confdefs.h <<_ACEOF 11471cat >>confdefs.h <<_ACEOF
11380#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11472#define WTMPX_FILE "$path_wtmpx"
11381_ACEOF 11473_ACEOF
11382 11474
11383fi 11475fi
11384 11476
11385echo "$as_me:$LINENO: checking where lastlog is located" >&5 11477echo "$as_me:$LINENO: checking where lastlog is located" >&5
11386echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11478echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11387if test "${rxvt_cv_path_lastlog+set}" = set; then 11479if test "${path_lastlog+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6 11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11389else 11481else
11390 if test "$cross_compiling" = yes; then 11482 if test "$cross_compiling" = yes; then
11391 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11483 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11392echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11484echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11393else 11485else
11394 cat >conftest.$ac_ext <<_ACEOF 11486 cat >conftest.$ac_ext <<_ACEOF
11395/* confdefs.h. */ 11487/* confdefs.h. */
11396_ACEOF 11488_ACEOF
11397cat confdefs.h >>conftest.$ac_ext 11489cat confdefs.h >>conftest.$ac_ext
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5 11532 (eval $ac_try) 2>&5
11441 ac_status=$? 11533 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then 11535 (exit $ac_status); }; }; then
11444 rxvt_cv_path_lastlog=`cat conftestval` 11536 path_lastlog=`cat conftestval`
11445else 11537else
11446 echo "$as_me: program exited with status $ac_status" >&5 11538 echo "$as_me: program exited with status $ac_status" >&5
11447echo "$as_me: failed program was:" >&5 11539echo "$as_me: failed program was:" >&5
11448sed 's/^/| /' conftest.$ac_ext >&5 11540sed 's/^/| /' conftest.$ac_ext >&5
11449 11541
11450( exit $ac_status ) 11542( exit $ac_status )
11451rxvt_cv_path_lastlog= 11543path_lastlog=
11452fi 11544fi
11453rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11454fi 11546fi
11455fi 11547fi
11456echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11548echo "$as_me:$LINENO: result: $path_lastlog" >&5
11457echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11549echo "${ECHO_T}$path_lastlog" >&6
11458if test x$rxvt_cv_path_lastlog != x; then 11550if test x$path_lastlog != x; then
11459 11551
11460cat >>confdefs.h <<_ACEOF 11552cat >>confdefs.h <<_ACEOF
11461#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11553#define LASTLOG_FILE "$path_lastlog"
11462_ACEOF 11554_ACEOF
11463 11555
11464 if test -d "$rxvt_cv_path_lastlog"; then 11556 if test -d "$path_lastlog"; then
11465 11557
11466cat >>confdefs.h <<\_ACEOF 11558cat >>confdefs.h <<\_ACEOF
11467#define LASTLOG_IS_DIR 1 11559#define LASTLOG_IS_DIR 1
11468_ACEOF 11560_ACEOF
11469 11561
11470 fi 11562 fi
11471fi 11563fi
11472 11564
11473echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11565echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11474echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11566echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11475if test "${rxvt_cv_path_lastlogx+set}" = set; then 11567if test "${path_lastlogx+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6 11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11477else 11569else
11478 if test "$cross_compiling" = yes; then 11570 if test "$cross_compiling" = yes; then
11479 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11571 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11480echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11572echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11481else 11573else
11482 cat >conftest.$ac_ext <<_ACEOF 11574 cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */ 11575/* confdefs.h. */
11484_ACEOF 11576_ACEOF
11485cat confdefs.h >>conftest.$ac_ext 11577cat confdefs.h >>conftest.$ac_ext
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5 11614 (eval $ac_try) 2>&5
11523 ac_status=$? 11615 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then 11617 (exit $ac_status); }; }; then
11526 rxvt_cv_path_lastlogx=`cat conftestval` 11618 path_lastlogx=`cat conftestval`
11527else 11619else
11528 echo "$as_me: program exited with status $ac_status" >&5 11620 echo "$as_me: program exited with status $ac_status" >&5
11529echo "$as_me: failed program was:" >&5 11621echo "$as_me: failed program was:" >&5
11530sed 's/^/| /' conftest.$ac_ext >&5 11622sed 's/^/| /' conftest.$ac_ext >&5
11531 11623
11532( exit $ac_status ) 11624( exit $ac_status )
11533rxvt_cv_path_lastlogx= 11625path_lastlogx=
11534fi 11626fi
11535rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11627rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11536fi 11628fi
11537fi 11629fi
11538echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11630echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11539echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11631echo "${ECHO_T}$path_lastlogx" >&6
11540if test x$rxvt_cv_path_lastlogx != x; then 11632if test x$path_lastlogx != x; then
11541 11633
11542cat >>confdefs.h <<_ACEOF 11634cat >>confdefs.h <<_ACEOF
11543#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11635#define LASTLOGX_FILE "$path_lastlogx"
11544_ACEOF 11636_ACEOF
11545 11637
11546fi 11638fi
11639
11640if test x$support_utmp != xyes; then
11641 echo " utmp support: disabled"
11642 echo
11643else
11644 echo " utmp support: enabled
11645 utmp file: $path_utmp
11646 utmpx file: $path_utmpx
11647 wtmp file: $path_wtmp
11648 wtmpx file: $path_wtmpx
11649 lastlog file: $path_lastlog
11650 lastlogx file: $path_lastlogx"
11651fi
11652
11547 11653
11548 11654
11549echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11655echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11550echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11656echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11551if test "${rxvt_cv_path_ttytab+set}" = set; then 11657if test "${rxvt_cv_path_ttytab+set}" = set; then
11818#define HAVE_NL_LANGINFO 1 11924#define HAVE_NL_LANGINFO 1
11819_ACEOF 11925_ACEOF
11820 11926
11821fi 11927fi
11822 11928
11929
11823echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 11930echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11824echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 11931echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11825if test "${rxvt_can_pass_fds+set}" = set; then 11932if test "${can_pass_fds+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6 11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11827else 11934else
11828 cat >conftest.$ac_ext <<_ACEOF 11935 cat >conftest.$ac_ext <<_ACEOF
11829/* confdefs.h. */ 11936/* confdefs.h. */
11830_ACEOF 11937_ACEOF
11831cat confdefs.h >>conftest.$ac_ext 11938cat confdefs.h >>conftest.$ac_ext
11832cat >>conftest.$ac_ext <<_ACEOF 11939cat >>conftest.$ac_ext <<_ACEOF
11833/* end confdefs.h. */ 11940/* end confdefs.h. */
11834 11941
11942#include <cstddef> // broken bsds (is that redundant?) need this
11835#include <sys/types.h> 11943#include <sys/types.h>
11836#include <sys/socket.h> 11944#include <sys/socket.h>
11945#include <sys/uio.h>
11837 11946
11838int 11947int
11839main () 11948main ()
11840{ 11949{
11841 11950
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5 11996 (eval $ac_try) 2>&5
11888 ac_status=$? 11997 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then 11999 (exit $ac_status); }; }; then
11891 rxvt_can_pass_fds=yes 12000 can_pass_fds=yes
11892else 12001else
11893 echo "$as_me: failed program was:" >&5 12002 echo "$as_me: failed program was:" >&5
11894sed 's/^/| /' conftest.$ac_ext >&5 12003sed 's/^/| /' conftest.$ac_ext >&5
11895 12004
11896rxvt_can_pass_fds=no 12005can_pass_fds=no
11897fi 12006fi
11898rm -f conftest.err conftest.$ac_objext \ 12007rm -f conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext 12008 conftest$ac_exeext conftest.$ac_ext
11900fi 12009fi
11901echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 12010echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11902echo "${ECHO_T}$rxvt_can_pass_fds" >&6 12011echo "${ECHO_T}$can_pass_fds" >&6
11903if test x$rxvt_can_pass_fds = xyes; then 12012if test x$can_pass_fds = xyes; then
11904 12013
11905cat >>confdefs.h <<\_ACEOF 12014cat >>confdefs.h <<\_ACEOF
11906#define HAVE_UNIX_FDPASS 1 12015#define HAVE_UNIX_FDPASS 1
11907_ACEOF 12016_ACEOF
11908 12017
12018else
12019 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12020echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12021 { (exit 1); exit 1; }; }
11909fi 12022fi
12023
11910 12024
11911echo "$as_me:$LINENO: checking for broken XIM callback" >&5 12025echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11912echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 12026echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11913if test "${rxvt_broken_ximcb+set}" = set; then 12027if test "${rxvt_broken_ximcb+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6 12028 echo $ECHO_N "(cached) $ECHO_C" >&6
11964#define XIMCB_PROTO_BROKEN 1 12078#define XIMCB_PROTO_BROKEN 1
11965_ACEOF 12079_ACEOF
11966 12080
11967fi 12081fi
11968 12082
11969if test x$ac_cv_func_posix_openpt = xno; then
11970 echo "$as_me:$LINENO: checking for openpty" >&5
11971echo $ECHO_N "checking for openpty... $ECHO_C" >&6
11972if test "${ac_cv_func_openpty+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974else
11975 cat >conftest.$ac_ext <<_ACEOF
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
11981/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
11982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11983#define openpty innocuous_openpty
11984 12083
11985/* System header to define __stub macros and hopefully few prototypes,
11986 which can conflict with char openpty (); below.
11987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11988 <limits.h> exists even on freestanding compilers. */
11989 12084
11990#ifdef __STDC__
11991# include <limits.h>
11992#else
11993# include <assert.h>
11994#endif
11995 12085
11996#undef openpty
11997 12086
11998/* Override any gcc2 internal prototype to avoid an error. */
11999#ifdef __cplusplus
12000extern "C"
12001{
12002#endif
12003/* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12005char openpty ();
12006/* The GNU C library defines this for functions which it implements
12007 to always fail with ENOSYS. Some functions are actually named
12008 something starting with __ and the normal name is an alias. */
12009#if defined (__stub_openpty) || defined (__stub___openpty)
12010choke me
12011#else
12012char (*f) () = openpty;
12013#endif
12014#ifdef __cplusplus
12015}
12016#endif
12017 12087
12018int
12019main ()
12020{
12021return f != openpty;
12022 ;
12023 return 0;
12024}
12025_ACEOF
12026rm -f conftest.$ac_objext conftest$ac_exeext
12027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>conftest.er1
12029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; } &&
12041 { ac_try='test -s conftest$ac_exeext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_cv_func_openpty=yes
12048else
12049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051 12088
12052ac_cv_func_openpty=no 12089for ac_header in \
12053fi 12090 pty.h \
12054rm -f conftest.err conftest.$ac_objext \ 12091 util.h \
12055 conftest$ac_exeext conftest.$ac_ext 12092 libutil.h \
12056fi 12093 sys/ioctl.h \
12057echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 12094 sys/stropts.h \
12058echo "${ECHO_T}$ac_cv_func_openpty" >&6
12059if test $ac_cv_func_openpty = yes; then
12060 :
12061else
12062 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12063echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12064if test "${ac_cv_lib_util_openpty+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 ac_check_lib_save_LIBS=$LIBS
12068LIBS="-lutil $LIBS"
12069cat >conftest.$ac_ext <<_ACEOF
12070/* confdefs.h. */
12071_ACEOF
12072cat confdefs.h >>conftest.$ac_ext
12073cat >>conftest.$ac_ext <<_ACEOF
12074/* end confdefs.h. */
12075 12095
12076/* Override any gcc2 internal prototype to avoid an error. */
12077#ifdef __cplusplus
12078extern "C"
12079#endif
12080/* We use char because int might match the return type of a gcc2
12081 builtin and then its argument prototype would still apply. */
12082char openpty ();
12083int
12084main ()
12085{
12086openpty ();
12087 ;
12088 return 0;
12089}
12090_ACEOF
12091rm -f conftest.$ac_objext conftest$ac_exeext
12092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093 (eval $ac_link) 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; } &&
12106 { ac_try='test -s conftest$ac_exeext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_lib_util_openpty=yes
12113else
12114 echo "$as_me: failed program was:" >&5
12115sed 's/^/| /' conftest.$ac_ext >&5
12116
12117ac_cv_lib_util_openpty=no
12118fi
12119rm -f conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121LIBS=$ac_check_lib_save_LIBS
12122fi
12123echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12124echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12125if test $ac_cv_lib_util_openpty = yes; then
12126 LIBS="$LIBS -lutil"
12127fi
12128
12129fi
12130
12131fi
12132
12133echo "$as_me:$LINENO: checking for pty/tty type" >&5
12134echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12135if test "${rxvt_cv_ptys+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12137else
12138 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12139 rxvt_cv_ptys=OPENPTY
12140 else if test x$ac_cv_func_posix_openpt = xyes; then
12141 rxvt_cv_ptys=POSIX
12142 else if test x$ac_cv_func__getpty = xyes; then
12143 rxvt_cv_ptys=SGI4
12144 else if test -c /dev/ttyp20; then
12145 rxvt_cv_ptys=SCO
12146 else if test -c /dev/ptym/clone; then
12147 rxvt_cv_ptys=HPUX
12148 else if test -c /dev/ptc -a -c /dev/pts; then
12149 rxvt_cv_ptys=PTC
12150 else if test -c /dev/ptc -a -d /dev/pts; then
12151 rxvt_cv_ptys=PTC
12152 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12153 rxvt_cv_ptys=STREAMS
12154 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12155 rxvt_cv_ptys=STREAMS
12156 else
12157 rxvt_cv_ptys=BSD
12158fi
12159fi
12160fi
12161fi
12162fi
12163fi
12164fi
12165fi
12166fi
12167
12168fi
12169echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12170echo "${ECHO_T}$rxvt_cv_ptys" >&6
12171
12172if test x$rxvt_cv_ptys = xPOSIX; then
12173
12174cat >>confdefs.h <<\_ACEOF
12175#define PTYS_ARE_POSIX 1
12176_ACEOF
12177
12178fi
12179if test x$rxvt_cv_ptys = xOPENPTY; then
12180
12181cat >>confdefs.h <<\_ACEOF
12182#define PTYS_ARE_OPENPTY 1
12183_ACEOF
12184
12185fi
12186if test x$rxvt_cv_ptys = xSCO; then
12187
12188cat >>confdefs.h <<\_ACEOF
12189#define PTYS_ARE_NUMERIC 1
12190_ACEOF
12191
12192fi
12193if test x$rxvt_cv_ptys = xSTREAMS; then
12194
12195cat >>confdefs.h <<\_ACEOF
12196#define PTYS_ARE_PTMX 1
12197_ACEOF
12198
12199fi
12200if test x$rxvt_cv_ptys = xPTC; then
12201
12202cat >>confdefs.h <<\_ACEOF
12203#define PTYS_ARE_PTC 1
12204_ACEOF
12205
12206fi
12207if test x$rxvt_cv_ptys = xSGI4; then
12208
12209cat >>confdefs.h <<\_ACEOF
12210#define PTYS_ARE__GETPTY 1
12211_ACEOF
12212
12213fi
12214if test x$rxvt_cv_ptys = xHPUX; then
12215
12216cat >>confdefs.h <<\_ACEOF
12217#define PTYS_ARE_CLONE 1
12218_ACEOF
12219
12220fi
12221if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12222
12223cat >>confdefs.h <<\_ACEOF
12224#define PTYS_ARE_SEARCHED 1
12225_ACEOF
12226
12227fi
12228
12229
12230{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
12231echo "$as_me: checking for pty ranges..." >&6;}
12232ptys=`echo /dev/pty??`
12233pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12234pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12235if test x$pch1 != x; then
12236
12237cat >>confdefs.h <<_ACEOF
12238#define PTYCHAR1 "$pch1"
12239_ACEOF
12240
12241fi
12242if test x$pch2 != x; then
12243
12244cat >>confdefs.h <<_ACEOF
12245#define PTYCHAR2 "$pch2"
12246_ACEOF
12247
12248fi
12249
12250if test x$support_xft = xyes; then
12251 LIBS="$LIBS `pkg-config xft --libs`"
12252 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12253
12254
12255for ac_header in X11/Xft/Xft.h
12256do 12096do
12257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12258if eval "test \"\${$as_ac_Header+set}\" = set"; then 12098if eval "test \"\${$as_ac_Header+set}\" = set"; then
12259 echo "$as_me:$LINENO: checking for $ac_header" >&5 12099 echo "$as_me:$LINENO: checking for $ac_header" >&5
12260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12394if test `eval echo '${'$as_ac_Header'}'` = yes; then 12234if test `eval echo '${'$as_ac_Header'}'` = yes; then
12395 cat >>confdefs.h <<_ACEOF 12235 cat >>confdefs.h <<_ACEOF
12396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12236#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12397_ACEOF 12237_ACEOF
12398 12238
12239fi
12240
12241done
12242
12243
12244
12245
12246
12247
12248
12249for ac_func in \
12250 revoke \
12251 _getpty \
12252 getpt \
12253 posix_openpt \
12254 isastream \
12255
12256do
12257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12258echo "$as_me:$LINENO: checking for $ac_func" >&5
12259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12260if eval "test \"\${$as_ac_var+set}\" = set"; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263 cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h. */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h. */
12269/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12271#define $ac_func innocuous_$ac_func
12272
12273/* System header to define __stub macros and hopefully few prototypes,
12274 which can conflict with char $ac_func (); below.
12275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12276 <limits.h> exists even on freestanding compilers. */
12277
12278#ifdef __STDC__
12279# include <limits.h>
12280#else
12281# include <assert.h>
12282#endif
12283
12284#undef $ac_func
12285
12286/* Override any gcc2 internal prototype to avoid an error. */
12287#ifdef __cplusplus
12288extern "C"
12289{
12290#endif
12291/* We use char because int might match the return type of a gcc2
12292 builtin and then its argument prototype would still apply. */
12293char $ac_func ();
12294/* The GNU C library defines this for functions which it implements
12295 to always fail with ENOSYS. Some functions are actually named
12296 something starting with __ and the normal name is an alias. */
12297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12298choke me
12299#else
12300char (*f) () = $ac_func;
12301#endif
12302#ifdef __cplusplus
12303}
12304#endif
12305
12306int
12307main ()
12308{
12309return f != $ac_func;
12310 ;
12311 return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316 (eval $ac_link) 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest$ac_exeext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 eval "$as_ac_var=yes"
12336else
12337 echo "$as_me: failed program was:" >&5
12338sed 's/^/| /' conftest.$ac_ext >&5
12339
12340eval "$as_ac_var=no"
12341fi
12342rm -f conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344fi
12345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12346echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12347if test `eval echo '${'$as_ac_var'}'` = yes; then
12348 cat >>confdefs.h <<_ACEOF
12349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12350_ACEOF
12351
12352fi
12353done
12354
12355
12356have_clone=no
12357
12358echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12359echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12360if test -e /dev/ptym/clone; then
12361 echo "$as_me:$LINENO: result: yes" >&5
12362echo "${ECHO_T}yes" >&6
12363
12364cat >>confdefs.h <<\_ACEOF
12365#define HAVE_DEV_CLONE 1
12366_ACEOF
12367
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define CLONE_DEVICE "/dev/ptym/clone"
12371_ACEOF
12372
12373 have_clone=yes
12374else
12375 echo "$as_me:$LINENO: result: no" >&5
12376echo "${ECHO_T}no" >&6
12377fi
12378
12379echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12380echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12381if test -e /dev/ptc; then
12382 echo "$as_me:$LINENO: result: yes" >&5
12383echo "${ECHO_T}yes" >&6
12384
12385cat >>confdefs.h <<\_ACEOF
12386#define HAVE_DEV_PTC 1
12387_ACEOF
12388
12389
12390cat >>confdefs.h <<\_ACEOF
12391#define CLONE_DEVICE "/dev/ptc"
12392_ACEOF
12393
12394 have_clone=yes
12395else
12396 echo "$as_me:$LINENO: result: no" >&5
12397echo "${ECHO_T}no" >&6
12398fi
12399
12400case $host in
12401 *-*-cygwin*)
12402 have_clone=yes
12403
12404cat >>confdefs.h <<\_ACEOF
12405#define CLONE_DEVICE "/dev/ptmx"
12406_ACEOF
12407
12408 ;;
12409 *)
12410 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12411echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12412 if test -e /dev/ptmx; then
12413 echo "$as_me:$LINENO: result: yes" >&5
12414echo "${ECHO_T}yes" >&6
12415
12416cat >>confdefs.h <<\_ACEOF
12417#define HAVE_DEV_PTMX 1
12418_ACEOF
12419
12420
12421cat >>confdefs.h <<\_ACEOF
12422#define CLONE_DEVICE "/dev/ptmx"
12423_ACEOF
12424
12425 have_clone=yes
12426 else
12427 echo "$as_me:$LINENO: result: no" >&5
12428echo "${ECHO_T}no" >&6
12429 fi
12430 ;;
12431esac
12432
12433if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12434 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12435echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12437/* confdefs.h. */
12438_ACEOF
12439cat confdefs.h >>conftest.$ac_ext
12440cat >>conftest.$ac_ext <<_ACEOF
12441/* end confdefs.h. */
12442#include <stdlib.h>
12443int
12444main ()
12445{
12446grantpt(0);unlockpt(0);ptsname(0);
12447 ;
12448 return 0;
12449}
12450_ACEOF
12451rm -f conftest.$ac_objext conftest$ac_exeext
12452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; } &&
12466 { ac_try='test -s conftest$ac_exeext'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
12472 unix98_pty=yes
12473
12474cat >>confdefs.h <<\_ACEOF
12475#define UNIX98_PTY 1
12476_ACEOF
12477
12478 echo "$as_me:$LINENO: result: yes" >&5
12479echo "${ECHO_T}yes" >&6
12480else
12481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
12484echo "$as_me:$LINENO: result: no" >&5
12485echo "${ECHO_T}no" >&6
12486fi
12487rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489fi
12490
12491if test -z "$unix98_pty"; then
12492
12493for ac_func in openpty
12494do
12495as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12496echo "$as_me:$LINENO: checking for $ac_func" >&5
12497echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12498if eval "test \"\${$as_ac_var+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500else
12501 cat >conftest.$ac_ext <<_ACEOF
12502/* confdefs.h. */
12503_ACEOF
12504cat confdefs.h >>conftest.$ac_ext
12505cat >>conftest.$ac_ext <<_ACEOF
12506/* end confdefs.h. */
12507/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12509#define $ac_func innocuous_$ac_func
12510
12511/* System header to define __stub macros and hopefully few prototypes,
12512 which can conflict with char $ac_func (); below.
12513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12514 <limits.h> exists even on freestanding compilers. */
12515
12516#ifdef __STDC__
12517# include <limits.h>
12518#else
12519# include <assert.h>
12520#endif
12521
12522#undef $ac_func
12523
12524/* Override any gcc2 internal prototype to avoid an error. */
12525#ifdef __cplusplus
12526extern "C"
12527{
12528#endif
12529/* We use char because int might match the return type of a gcc2
12530 builtin and then its argument prototype would still apply. */
12531char $ac_func ();
12532/* The GNU C library defines this for functions which it implements
12533 to always fail with ENOSYS. Some functions are actually named
12534 something starting with __ and the normal name is an alias. */
12535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12536choke me
12537#else
12538char (*f) () = $ac_func;
12539#endif
12540#ifdef __cplusplus
12541}
12542#endif
12543
12544int
12545main ()
12546{
12547return f != $ac_func;
12548 ;
12549 return 0;
12550}
12551_ACEOF
12552rm -f conftest.$ac_objext conftest$ac_exeext
12553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12554 (eval $ac_link) 2>conftest.er1
12555 ac_status=$?
12556 grep -v '^ *+' conftest.er1 >conftest.err
12557 rm -f conftest.er1
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest$ac_exeext'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 eval "$as_ac_var=yes"
12574else
12575 echo "$as_me: failed program was:" >&5
12576sed 's/^/| /' conftest.$ac_ext >&5
12577
12578eval "$as_ac_var=no"
12579fi
12580rm -f conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12582fi
12583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12585if test `eval echo '${'$as_ac_var'}'` = yes; then
12586 cat >>confdefs.h <<_ACEOF
12587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12588_ACEOF
12589
12590else
12591 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12592echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12593if test "${ac_cv_lib_util_openpty+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595else
12596 ac_check_lib_save_LIBS=$LIBS
12597LIBS="-lutil $LIBS"
12598cat >conftest.$ac_ext <<_ACEOF
12599/* confdefs.h. */
12600_ACEOF
12601cat confdefs.h >>conftest.$ac_ext
12602cat >>conftest.$ac_ext <<_ACEOF
12603/* end confdefs.h. */
12604
12605/* Override any gcc2 internal prototype to avoid an error. */
12606#ifdef __cplusplus
12607extern "C"
12608#endif
12609/* We use char because int might match the return type of a gcc2
12610 builtin and then its argument prototype would still apply. */
12611char openpty ();
12612int
12613main ()
12614{
12615openpty ();
12616 ;
12617 return 0;
12618}
12619_ACEOF
12620rm -f conftest.$ac_objext conftest$ac_exeext
12621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12622 (eval $ac_link) 2>conftest.er1
12623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12632 ac_status=$?
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; } &&
12635 { ac_try='test -s conftest$ac_exeext'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; }; then
12641 ac_cv_lib_util_openpty=yes
12642else
12643 echo "$as_me: failed program was:" >&5
12644sed 's/^/| /' conftest.$ac_ext >&5
12645
12646ac_cv_lib_util_openpty=no
12647fi
12648rm -f conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650LIBS=$ac_check_lib_save_LIBS
12651fi
12652echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12653echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12654if test $ac_cv_lib_util_openpty = yes; then
12655 cat >>confdefs.h <<\_ACEOF
12656#define HAVE_OPENPTY 1
12657_ACEOF
12658 LIBS="$LIBS -lutil"
12659fi
12660
12661fi
12662done
12663
12664fi
12665
12666
12667
12668echo "$as_me:$LINENO: checking for tty group" >&5
12669echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12670if test "${tty_group+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672else
12673 if test "$cross_compiling" = yes; then
12674 tty_group=no
12675else
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
12682
12683#include <sys/types.h>
12684#include <sys/stat.h>
12685#include <unistd.h>
12686#include <grp.h>
12687
12688main()
12689{
12690 struct stat st;
12691 struct group *gr;
12692 char *tty;
12693 gr = getgrnam("tty");
12694 tty = ttyname(0);
12695 if (gr != 0
12696 && tty != 0
12697 && (stat(tty, &st)) == 0
12698 && st.st_gid == gr->gr_gid)
12699 return 0;
12700 else
12701 return 1;
12702}
12703_ACEOF
12704rm -f conftest$ac_exeext
12705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12706 (eval $ac_link) 2>&5
12707 ac_status=$?
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; }; then
12715 tty_group=yes
12716else
12717 echo "$as_me: program exited with status $ac_status" >&5
12718echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
12721( exit $ac_status )
12722tty_group=no
12723fi
12724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12725fi
12726fi
12727echo "$as_me:$LINENO: result: $tty_group" >&5
12728echo "${ECHO_T}$tty_group" >&6
12729if test x$tty_group = xyes; then
12730
12731cat >>confdefs.h <<\_ACEOF
12732#define TTY_GID_SUPPORT 1
12733_ACEOF
12734
12735fi
12736
12737if test x$support_xft = xyes; then
12738 # Extract the first word of "pkg-config", so it can be a program name with args.
12739set dummy pkg-config; ac_word=$2
12740echo "$as_me:$LINENO: checking for $ac_word" >&5
12741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12742if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744else
12745 case $PKG_CONFIG in
12746 [\\/]* | ?:[\\/]*)
12747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12748 ;;
12749 *)
12750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12751for as_dir in $PATH
12752do
12753 IFS=$as_save_IFS
12754 test -z "$as_dir" && as_dir=.
12755 for ac_exec_ext in '' $ac_executable_extensions; do
12756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12759 break 2
12760 fi
12761done
12762done
12763
12764 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12765 ;;
12766esac
12767fi
12768PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12769
12770if test -n "$PKG_CONFIG"; then
12771 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12772echo "${ECHO_T}$PKG_CONFIG" >&6
12773else
12774 echo "$as_me:$LINENO: result: no" >&5
12775echo "${ECHO_T}no" >&6
12776fi
12777
12778 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12779 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12780 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12781 else
12782 # Extract the first word of "xft-config", so it can be a program name with args.
12783set dummy xft-config; ac_word=$2
12784echo "$as_me:$LINENO: checking for $ac_word" >&5
12785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12786if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788else
12789 case $XFT_CONFIG in
12790 [\\/]* | ?:[\\/]*)
12791 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12792 ;;
12793 *)
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795for as_dir in $PATH
12796do
12797 IFS=$as_save_IFS
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12801 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12803 break 2
12804 fi
12805done
12806done
12807
12808 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12809 ;;
12810esac
12811fi
12812XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12813
12814if test -n "$XFT_CONFIG"; then
12815 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12816echo "${ECHO_T}$XFT_CONFIG" >&6
12817else
12818 echo "$as_me:$LINENO: result: no" >&5
12819echo "${ECHO_T}no" >&6
12820fi
12821
12822 if test $XFT_CONFIG != no; then
12823 LIBS="$LIBS `$XFT_CONFIG --libs`"
12824 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12825 fi
12826 fi
12827
12828
12829for ac_header in X11/Xft/Xft.h
12830do
12831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12832if eval "test \"\${$as_ac_Header+set}\" = set"; then
12833 echo "$as_me:$LINENO: checking for $ac_header" >&5
12834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12835if eval "test \"\${$as_ac_Header+set}\" = set"; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12837fi
12838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12840else
12841 # Is the header compilable?
12842echo "$as_me:$LINENO: checking $ac_header usability" >&5
12843echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12844cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
12850$ac_includes_default
12851#include <$ac_header>
12852_ACEOF
12853rm -f conftest.$ac_objext
12854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855 (eval $ac_compile) 2>conftest.er1
12856 ac_status=$?
12857 grep -v '^ *+' conftest.er1 >conftest.err
12858 rm -f conftest.er1
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } &&
12862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; } &&
12868 { ac_try='test -s conftest.$ac_objext'
12869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870 (eval $ac_try) 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; }; then
12874 ac_header_compiler=yes
12875else
12876 echo "$as_me: failed program was:" >&5
12877sed 's/^/| /' conftest.$ac_ext >&5
12878
12879ac_header_compiler=no
12880fi
12881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12882echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12883echo "${ECHO_T}$ac_header_compiler" >&6
12884
12885# Is the header present?
12886echo "$as_me:$LINENO: checking $ac_header presence" >&5
12887echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12888cat >conftest.$ac_ext <<_ACEOF
12889/* confdefs.h. */
12890_ACEOF
12891cat confdefs.h >>conftest.$ac_ext
12892cat >>conftest.$ac_ext <<_ACEOF
12893/* end confdefs.h. */
12894#include <$ac_header>
12895_ACEOF
12896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } >/dev/null; then
12904 if test -s conftest.err; then
12905 ac_cpp_err=$ac_cxx_preproc_warn_flag
12906 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12907 else
12908 ac_cpp_err=
12909 fi
12910else
12911 ac_cpp_err=yes
12912fi
12913if test -z "$ac_cpp_err"; then
12914 ac_header_preproc=yes
12915else
12916 echo "$as_me: failed program was:" >&5
12917sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 ac_header_preproc=no
12920fi
12921rm -f conftest.err conftest.$ac_ext
12922echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12923echo "${ECHO_T}$ac_header_preproc" >&6
12924
12925# So? What about this header?
12926case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12927 yes:no: )
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12929echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12931echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12932 ac_header_preproc=yes
12933 ;;
12934 no:yes:* )
12935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12936echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12938echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12940echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12942echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12944echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12946echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12947 (
12948 cat <<\_ASBOX
12949## ------------------------------------------ ##
12950## Report this to the AC_PACKAGE_NAME lists. ##
12951## ------------------------------------------ ##
12952_ASBOX
12953 ) |
12954 sed "s/^/$as_me: WARNING: /" >&2
12955 ;;
12956esac
12957echo "$as_me:$LINENO: checking for $ac_header" >&5
12958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12959if eval "test \"\${$as_ac_Header+set}\" = set"; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12961else
12962 eval "$as_ac_Header=\$ac_header_preproc"
12963fi
12964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12966
12967fi
12968if test `eval echo '${'$as_ac_Header'}'` = yes; then
12969 cat >>confdefs.h <<_ACEOF
12970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12971_ACEOF
12972
12399else 12973else
12400 support_xft=no 12974 support_xft=no
12401fi 12975fi
12402 12976
12403done 12977done
12547cat >>confdefs.h <<\_ACEOF 13121cat >>confdefs.h <<\_ACEOF
12548#define ENABLE_FRILLS 1 13122#define ENABLE_FRILLS 1
12549_ACEOF 13123_ACEOF
12550 13124
12551fi 13125fi
12552if test x$support_24bit = xyes; then
12553
12554cat >>confdefs.h <<\_ACEOF
12555#define PREFER_24BIT 1
12556_ACEOF
12557
12558fi
12559if test x$support_mousewheel = xyes; then 13126if test x$support_mousewheel = xyes; then
12560 13127
12561cat >>confdefs.h <<\_ACEOF 13128cat >>confdefs.h <<\_ACEOF
12562#define MOUSE_WHEEL 1 13129#define MOUSE_WHEEL 1
12563_ACEOF 13130_ACEOF
12565fi 13132fi
12566if test x$support_mouseslipwheel = xyes; then 13133if test x$support_mouseslipwheel = xyes; then
12567 13134
12568cat >>confdefs.h <<\_ACEOF 13135cat >>confdefs.h <<\_ACEOF
12569#define MOUSE_SLIP_WHEELING 1 13136#define MOUSE_SLIP_WHEELING 1
12570_ACEOF
12571
12572fi
12573if test x$support_utmp = xyes; then
12574
12575cat >>confdefs.h <<\_ACEOF
12576#define UTMP_SUPPORT 1
12577_ACEOF
12578
12579fi
12580if test x$support_wtmp = xyes; then
12581
12582cat >>confdefs.h <<\_ACEOF
12583#define WTMP_SUPPORT 1
12584_ACEOF
12585
12586fi
12587if test x$support_lastlog = xyes; then
12588
12589cat >>confdefs.h <<\_ACEOF
12590#define LASTLOG_SUPPORT 1
12591_ACEOF 13137_ACEOF
12592 13138
12593fi 13139fi
12594if test x$support_xim = xyes -o x$multichar_set = xyes; then 13140if test x$support_xim = xyes -o x$multichar_set = xyes; then
12595 if test x$rxvt_cv_func_xlocale = xyes; then 13141 if test x$rxvt_cv_func_xlocale = xyes; then
12865 PERL_O=rxvtperl.o 13411 PERL_O=rxvtperl.o
12866 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 13412 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12867 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 13413 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12868 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 13414 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12869 else 13415 else
12870 support_perl=no
12871 echo "$as_me:$LINENO: result: no, unable to link" >&5 13416 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
12872echo "${ECHO_T}no, unable to link" >&6 13417echo "$as_me: error: no, unable to link" >&2;}
13418 { (exit 1); exit 1; }; }
12873 fi 13419 fi
12874 else 13420 else
12875 { { echo "$as_me:$LINENO: error: no working perl found" >&5 13421 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
12876echo "$as_me: error: no working perl found" >&2;} 13422echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
12877 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; } 13423 { (exit 1); exit 1; }; }
12878 support_perl=no
12879 fi 13424 fi
12880fi 13425fi
12881 13426
12882 13427
12883 13428
12909 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` 13454 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12910fi 13455fi
12911 13456
12912 13457
12913 13458
12914
12915
12916MCOMMON=./autoconf/Make.common
12917 13459
12918 13460
12919test "$program_prefix" != NONE && 13461test "$program_prefix" != NONE &&
12920 program_transform_name="s,^,$program_prefix,;$program_transform_name" 13462 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12921# Use a double $ so make ignores it. 13463# Use a double $ so make ignores it.
12997 include_time_h="#include <time.h>" 13539 include_time_h="#include <time.h>"
12998else 13540else
12999 include_time_h="/* #include <time.h> */" 13541 include_time_h="/* #include <time.h> */"
13000fi 13542fi
13001 13543
13002 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h" 13544 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13003 13545
13004cat >confcache <<\_ACEOF 13546cat >confcache <<\_ACEOF
13005# This file is a shell script that caches the results of configure 13547# This file is a shell script that caches the results of configure
13006# tests run on this system so they can be shared between configure 13548# tests run on this system so they can be shared between configure
13007# scripts and configure runs, see configure's option --config-cache. 13549# scripts and configure runs, see configure's option --config-cache.
13524cat >>$CONFIG_STATUS <<\_ACEOF 14066cat >>$CONFIG_STATUS <<\_ACEOF
13525for ac_config_target in $ac_config_targets 14067for ac_config_target in $ac_config_targets
13526do 14068do
13527 case "$ac_config_target" in 14069 case "$ac_config_target" in
13528 # Handling of arguments. 14070 # Handling of arguments.
13529 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
13530 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14071 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13531 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14072 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13532 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14073 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13533 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 14074 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
13534 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 14075 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14076 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13536echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14077echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13537 { (exit 1); exit 1; }; };; 14078 { (exit 1); exit 1; }; };;
13538 esac 14079 esac
13539done 14080done
13640s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14181s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13641s,@CPP@,$CPP,;t t 14182s,@CPP@,$CPP,;t t
13642s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14183s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13643s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14184s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13644s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14185s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13645s,@AWK@,$AWK,;t t 14186s,@EGREP@,$EGREP,;t t
13646s,@LINKER@,$LINKER,;t t 14187s,@LINKER@,$LINKER,;t t
13647s,@CXXCPP@,$CXXCPP,;t t
13648s,@EGREP@,$EGREP,;t t
13649s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14188s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13650s,@RXVTNAME@,$RXVTNAME,;t t 14189s,@RXVTNAME@,$RXVTNAME,;t t
13651s,@MV@,$MV,;t t 14190s,@MV@,$MV,;t t
13652s,@RM@,$RM,;t t
13653s,@CP@,$CP,;t t 14191s,@CP@,$CP,;t t
13654s,@LN@,$LN,;t t 14192s,@LN@,$LN,;t t
13655s,@SED@,$SED,;t t 14193s,@SED@,$SED,;t t
13656s,@ECHO@,$ECHO,;t t 14194s,@ECHO@,$ECHO,;t t
13657s,@CMP@,$CMP,;t t 14195s,@CMP@,$CMP,;t t
13658s,@TBL@,$TBL,;t t
13659s,@TIC@,$TIC,;t t 14196s,@TIC@,$TIC,;t t
14197s,@CXXCPP@,$CXXCPP,;t t
13660s,@X_CFLAGS@,$X_CFLAGS,;t t 14198s,@X_CFLAGS@,$X_CFLAGS,;t t
13661s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14199s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13662s,@X_LIBS@,$X_LIBS,;t t 14200s,@X_LIBS@,$X_LIBS,;t t
13663s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14201s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13664s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14202s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13668s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14206s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13669s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14207s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13670s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14208s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13671s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14209s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13672s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14210s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
14211s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14212s,@XFT_CONFIG@,$XFT_CONFIG,;t t
13673s,@PERL@,$PERL,;t t 14213s,@PERL@,$PERL,;t t
13674s,@PERLLIB@,$PERLLIB,;t t 14214s,@PERLLIB@,$PERLLIB,;t t
13675s,@PERLFLAGS@,$PERLFLAGS,;t t 14215s,@PERLFLAGS@,$PERLFLAGS,;t t
13676s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t 14216s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13677s,@IF_PERL@,$IF_PERL,;t t 14217s,@IF_PERL@,$IF_PERL,;t t
13692s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14232s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13693s,@include_sys_time_h@,$include_sys_time_h,;t t 14233s,@include_sys_time_h@,$include_sys_time_h,;t t
13694s,@include_time_h@,$include_time_h,;t t 14234s,@include_time_h@,$include_time_h,;t t
13695s,@LIBOBJS@,$LIBOBJS,;t t 14235s,@LIBOBJS@,$LIBOBJS,;t t
13696s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14236s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13697/@MCOMMON@/r $MCOMMON
13698s,@MCOMMON@,,;t t
13699CEOF 14237CEOF
13700 14238
13701_ACEOF 14239_ACEOF
13702 14240
13703 cat >>$CONFIG_STATUS <<\_ACEOF 14241 cat >>$CONFIG_STATUS <<\_ACEOF
14196 Install path: ${prefix}/bin 14734 Install path: ${prefix}/bin
14197 Compiler: $CXX 14735 Compiler: $CXX
14198 Compiler flags: $CFLAGS 14736 Compiler flags: $CFLAGS
14199 Linker: $LINKER" 14737 Linker: $LINKER"
14200 14738
14201if test "$MALLOC_TYPE" = S; then
14202 echo " malloc support: system default"
14203fi
14204if test "$MALLOC_TYPE" = G; then
14205 echo " malloc support: Gray Watson's dmalloc"
14206fi
14207if test "$MALLOC_TYPE" = D; then
14208 echo " malloc support: Doug Lea's malloc"
14209fi
14210
14211if test x$support_xpm = xyes; then 14739if test x$support_xpm = xyes; then
14212 echo " Xpm library: $XPM_LIBS" 14740 echo " Xpm library: $XPM_LIBS"
14213fi 14741fi
14214 14742
14215echo "
14216The following are set in config.h
14217"
14218echo " pty/tty type: "$rxvt_cv_ptys
14219if test x$support_utmp != xyes; then
14220 echo " utmp support: disabled"
14221 echo
14222else
14223 echo " utmp support: enabled
14224 utmp file: $rxvt_cv_path_utmp
14225 utmpx file: $rxvt_cv_path_utmpx
14226 wtmp file: $rxvt_cv_path_wtmp
14227 wtmpx file: $rxvt_cv_path_wtmpx
14228 lastlog file: $rxvt_cv_path_lastlog
14229 ttys/ttytab file: $rxvt_cv_path_ttytab
14230 embedded perl: $support_perl"
14231 echo
14232fi
14233if test x$term != x; then 14743if test x$term != x; then
14234 echo " set TERM to: $term" 14744 echo " set TERM to: $term"
14235fi 14745fi
14236if test x$terminfo != x; then 14746if test x$terminfo != x; then
14237 echo " set TERMINFO to: $terminfo" 14747 echo " set TERMINFO to: $terminfo"
14240echo " resource class: $RESCLASS" 14750echo " resource class: $RESCLASS"
14241if test x$RESFALLBACK != x; then 14751if test x$RESFALLBACK != x; then
14242 echo " resource class fallback: $RESFALLBACK" 14752 echo " resource class fallback: $RESFALLBACK"
14243fi 14753fi
14244echo 14754echo
14245if test x$rxvt_cv_ptys = xUNKNOWN; then 14755echo " embedded perl: $support_perl"
14246 echo ".----------------------------------------------------------------." 14756echo
14247 echo ". WARNING: could not determine pty/tty type. Do not build until ."
14248 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14249 echo ".----------------------------------------------------------------."
14250fi
14251if test x$support_xpm = xneedsmanualspecification; then 14757if test x$support_xpm = xneedsmanualspecification; then
14252 echo ".----------------------------------------------------------------." 14758 echo ".----------------------------------------------------------------."
14253 echo ". WARNING: --enable-xpm-background was specified however the ." 14759 echo ". WARNING: --enable-xpm-background was specified however the ."
14254 echo ". XPM includes files and libraries could not be found. ." 14760 echo ". XPM includes files and libraries could not be found. ."
14255 echo ". XPM backgrounds are now being DISABLED! If you want ." 14761 echo ". XPM backgrounds are now being DISABLED! If you want ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines