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

Comparing rxvt-unicode/configure (file contents):
Revision 1.77 by root, Tue Jan 17 15:41:32 2006 UTC vs.
Revision 1.106 by ayin, Tue Jun 26 22:08:16 2007 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 TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS afterimage_config 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 LIBAFTERIMAGE_CFLAGS AFTERIMAGE_LIBS 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='' 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
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 background pixmaps
876 --enable-afterimage enable integration with libAfterImage for background images
877 --enable-afterstep enable integration with AfterStep window manager
879 --enable-transparency enable transparent backgrounds 878 --enable-transparency enable transparent backgrounds
880 --enable-tinting enable tinting of transparent bg 879 --enable-tinting enable tinting of transparent bg
881 --enable-fading enable colors fading when off focus 880 --enable-fading enable colors fading when off focus
882 --enable-rxvt-scroll enable rxvt style scrollbar 881 --enable-rxvt-scroll enable rxvt style scrollbar
883 --enable-next-scroll enable NeXT style scrollbar 882 --enable-next-scroll enable NeXT style scrollbar
884 --enable-xterm-scroll enable Xterm style scrollbar 883 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter 884 --enable-perl enable embedded perl interpreter
886 --enable-plain-scroll enable plain style scrollbar 885 --enable-plain-scroll enable plain style scrollbar
887 --enable-xim XIM (X Input Method) protocol support 886 --enable-xim XIM (X Input Method) protocol support
888 --enable-ttygid enable tty setting to group named "tty"
889 --disable-backspace-key disable handling of the backspace key 887 --disable-backspace-key disable handling of the backspace key
890 --disable-delete-key disable handling of the delete key 888 --disable-delete-key disable handling of the delete key
891 --disable-resources disable all resource checking 889 --disable-resources disable all resource checking
892 --enable-8bitctrls enable 8 bit control sequences (not recommended) 890 --enable-8bitctrls enable 8 bit control sequences (not recommended)
893 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 891 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
894 --disable-swapscreen disable swap screen support 892 --disable-swapscreen disable swap screen support
895 --enable-iso14755 enable support for extended ISO 14755 modes 893 --enable-iso14755 enable support for extended ISO 14755 modes
896 --enable-frills enable support for rarely used features 894 --enable-frills enable support for rarely used features
897 --enable-24bit enable support for using 24bit visuals if available
898 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 895 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
899 --enable-selectionscrolling enable scrolling during selections 896 --enable-selectionscrolling enable scrolling during selections
900 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 897 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
901 --enable-slipwheeling enable slip wheel scrolling (requires previous) 898 --enable-slipwheeling enable slip wheel scrolling (requires previous)
902 --enable-dmalloc enable Gray Watson's malloc - for debugging use
903 --enable-dlmalloc enable Doug Lea's malloc - for production use
904 NOTE: enable only one malloc package
905 --enable-smart-resize enable smart growth/shrink behaviour 899 --enable-smart-resize enable smart growth/shrink behaviour
906 --enable-text-blink enable blinking text 900 --enable-text-blink enable blinking text
907 --enable-pointer-blank enable pointer blank when typing or inactive pointer 901 --enable-pointer-blank enable pointer blank when typing or inactive pointer
902 --enable-utmp enable utmp (utmpx) support
903 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
904 --enable-lastlog enable lastlog support (requires --enable-utmp)
908 905
909Optional Packages: 906Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 907 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 908 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
909 --with-afterimage-config=DIR use libAfterImage config script in DIR
912 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 910 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
913 --with-res-name=NAME use this as default resource name (default: urxvt) 911 --with-res-name=NAME use this as default resource name (default: urxvt)
914 --with-res-class=CLASS use this as the resource class (default: URxvt) 912 --with-res-class=CLASS use this as the resource class (default: URxvt)
915 --with-name=NAME set the basename for the installed binaries (default: urxvt) 913 --with-name=NAME set the basename for the installed binaries (default: urxvt)
916 --with-term=NAME set the terminal to NAME (default: rxvt) 914 --with-term=NAME set the terminal to NAME (default: rxvt)
1021 echo 1019 echo
1022 $ac_configure --help 1020 $ac_configure --help
1023 else 1021 else
1024 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1022 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1025 fi 1023 fi
1026 cd "$ac_popdir" 1024 cd $ac_popdir
1027 done 1025 done
1028fi 1026fi
1029 1027
1030test -n "$ac_init_help" && exit 0 1028test -n "$ac_init_help" && exit 0
1031if $ac_init_version; then 1029if $ac_init_version; then
2030 grep -v '^ *+' conftest.er1 >conftest.err 2028 grep -v '^ *+' conftest.er1 >conftest.err
2031 rm -f conftest.er1 2029 rm -f conftest.er1
2032 cat conftest.err >&5 2030 cat conftest.err >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } && 2032 (exit $ac_status); } &&
2035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2033 { ac_try='test -z "$ac_c_werror_flag"
2034 || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5 2036 (eval $ac_try) 2>&5
2038 ac_status=$? 2037 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } && 2039 (exit $ac_status); }; } &&
2088 grep -v '^ *+' conftest.er1 >conftest.err 2087 grep -v '^ *+' conftest.er1 >conftest.err
2089 rm -f conftest.er1 2088 rm -f conftest.er1
2090 cat conftest.err >&5 2089 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } && 2091 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5 2095 (eval $ac_try) 2>&5
2096 ac_status=$? 2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } && 2098 (exit $ac_status); }; } &&
2204 grep -v '^ *+' conftest.er1 >conftest.err 2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1 2205 rm -f conftest.er1
2206 cat conftest.err >&5 2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } && 2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2209 { ac_try='test -z "$ac_c_werror_flag"
2210 || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5 2212 (eval $ac_try) 2>&5
2212 ac_status=$? 2213 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } && 2215 (exit $ac_status); }; } &&
2258 grep -v '^ *+' conftest.er1 >conftest.err 2259 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1 2260 rm -f conftest.er1
2260 cat conftest.err >&5 2261 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } && 2263 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2264 { ac_try='test -z "$ac_c_werror_flag"
2265 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5 2267 (eval $ac_try) 2>&5
2266 ac_status=$? 2268 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } && 2270 (exit $ac_status); }; } &&
2303 grep -v '^ *+' conftest.er1 >conftest.err 2305 grep -v '^ *+' conftest.er1 >conftest.err
2304 rm -f conftest.er1 2306 rm -f conftest.er1
2305 cat conftest.err >&5 2307 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } && 2309 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2310 { ac_try='test -z "$ac_c_werror_flag"
2311 || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5 2313 (eval $ac_try) 2>&5
2311 ac_status=$? 2314 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } && 2316 (exit $ac_status); }; } &&
2347 grep -v '^ *+' conftest.er1 >conftest.err 2350 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1 2351 rm -f conftest.er1
2349 cat conftest.err >&5 2352 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } && 2354 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2355 { ac_try='test -z "$ac_c_werror_flag"
2356 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5 2358 (eval $ac_try) 2>&5
2355 ac_status=$? 2359 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } && 2361 (exit $ac_status); }; } &&
2531 grep -v '^ *+' conftest.er1 >conftest.err 2535 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1 2536 rm -f conftest.er1
2533 cat conftest.err >&5 2537 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } && 2539 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2540 { ac_try='test -z "$ac_cxx_werror_flag"
2541 || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5 2543 (eval $ac_try) 2>&5
2539 ac_status=$? 2544 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } && 2546 (exit $ac_status); }; } &&
2589 grep -v '^ *+' conftest.er1 >conftest.err 2594 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1 2595 rm -f conftest.er1
2591 cat conftest.err >&5 2596 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } && 2598 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2599 { ac_try='test -z "$ac_cxx_werror_flag"
2600 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5 2602 (eval $ac_try) 2>&5
2597 ac_status=$? 2603 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } && 2605 (exit $ac_status); }; } &&
2660 grep -v '^ *+' conftest.er1 >conftest.err 2666 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1 2667 rm -f conftest.er1
2662 cat conftest.err >&5 2668 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && 2670 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2671 { ac_try='test -z "$ac_cxx_werror_flag"
2672 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5 2674 (eval $ac_try) 2>&5
2668 ac_status=$? 2675 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } && 2677 (exit $ac_status); }; } &&
2704 grep -v '^ *+' conftest.er1 >conftest.err 2711 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1 2712 rm -f conftest.er1
2706 cat conftest.err >&5 2713 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && 2715 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 2716 { ac_try='test -z "$ac_cxx_werror_flag"
2717 || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5 2719 (eval $ac_try) 2>&5
2712 ac_status=$? 2720 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } && 2722 (exit $ac_status); }; } &&
3050 3058
3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3059test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052 3060
3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3061test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054 3062
3055for ac_prog in gawk mawk nawk awk
3056do
3057 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058set dummy $ac_prog; ac_word=$2
3059echo "$as_me:$LINENO: checking for $ac_word" >&5
3060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061if test "${ac_cv_prog_AWK+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 if test -n "$AWK"; then
3065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_AWK="$ac_prog"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078done
3079done
3080 3063
3081fi
3082fi
3083AWK=$ac_cv_prog_AWK
3084if test -n "$AWK"; then
3085 echo "$as_me:$LINENO: result: $AWK" >&5
3086echo "${ECHO_T}$AWK" >&6
3087else
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090fi
3091
3092 test -n "$AWK" && break
3093done
3094
3095
3096ac_ext=c
3097ac_cpp='$CPP $CPPFLAGS'
3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101
3102
3103if test -z "$orig_CXXFLAGS"; then
3104 if test x$GCC = xyes && test "x$GXX" = xyes; then
3105 CXXFLAGS="-g -O3"
3106 else
3107 CXXFLAGS="-O"
3108 fi
3109 CFLAGS="$CXXFLAGS"
3110fi
3111
3112LINKER="$CXX"
3113if test x$GCC = xyes && test x$GXX = xyes; then
3114
3115echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3116echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3117if test "${ac_cv_lib_supcpp_main+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120 ac_check_lib_save_LIBS=$LIBS
3121LIBS="-lsupc++ $LIBS"
3122cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128
3129
3130int
3131main ()
3132{
3133main ();
3134 ;
3135 return 0;
3136}
3137_ACEOF
3138rm -f conftest.$ac_objext conftest$ac_exeext
3139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3140 (eval $ac_link) 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } &&
3147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149 (eval $ac_try) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest$ac_exeext'
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3155 (eval $ac_try) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; }; then
3159 ac_cv_lib_supcpp_main=yes
3160else
3161 echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164ac_cv_lib_supcpp_main=no
3165fi
3166rm -f conftest.err conftest.$ac_objext \
3167 conftest$ac_exeext conftest.$ac_ext
3168LIBS=$ac_check_lib_save_LIBS
3169fi
3170echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3171echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3172if test $ac_cv_lib_supcpp_main = yes; then
3173
3174 LINKER="$CC"
3175 LIBS="$LIBS -lsupc++"
3176
3177fi
3178
3179fi
3180LINKER=$LINKER
3181
3182
3183
3184cat >>confdefs.h <<\_ACEOF
3185#define _GNU_SOURCE 1
3186_ACEOF
3187
3188
3189case $host in
3190 *-*-solaris* )
3191
3192cat >>confdefs.h <<\_ACEOF
3193#define _XOPEN_SOURCE_EXTENDED 1
3194_ACEOF
3195
3196
3197cat >>confdefs.h <<\_ACEOF
3198#define _XOPEN_SOURCE 2
3199_ACEOF
3200
3201
3202cat >>confdefs.h <<\_ACEOF
3203#define __EXTENSIONS__ 1
3204_ACEOF
3205
3206 ;;
3207esac
3208
3209
3210ac_ext=cc
3211ac_cpp='$CXXCPP $CPPFLAGS'
3212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3215
3216
3217
3218ac_ext=cc
3219ac_cpp='$CXXCPP $CPPFLAGS'
3220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3223echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3224echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3225if test -z "$CXXCPP"; then
3226 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228else
3229 # Double quotes because CXXCPP needs to be expanded
3230 for CXXCPP in "$CXX -E" "/lib/cpp"
3231 do
3232 ac_preproc_ok=false
3233for ac_cxx_preproc_warn_flag in '' yes
3234do
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247#ifdef __STDC__
3248# include <limits.h>
3249#else
3250# include <assert.h>
3251#endif
3252 Syntax error
3253_ACEOF
3254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_cxx_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3265 else
3266 ac_cpp_err=
3267 fi
3268else
3269 ac_cpp_err=yes
3270fi
3271if test -z "$ac_cpp_err"; then
3272 :
3273else
3274 echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 # Broken: fails on valid input.
3278continue
3279fi
3280rm -f conftest.err conftest.$ac_ext
3281
3282 # OK, works on sane cases. Now check whether non-existent headers
3283 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h. */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */
3290#include <ac_nonexistent.h>
3291_ACEOF
3292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_cxx_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3303 else
3304 ac_cpp_err=
3305 fi
3306else
3307 ac_cpp_err=yes
3308fi
3309if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input.
3311continue
3312else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 # Passes both tests.
3317ac_preproc_ok=:
3318break
3319fi
3320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326 break
3327fi
3328
3329 done
3330 ac_cv_prog_CXXCPP=$CXXCPP
3331
3332fi
3333 CXXCPP=$ac_cv_prog_CXXCPP
3334else
3335 ac_cv_prog_CXXCPP=$CXXCPP
3336fi
3337echo "$as_me:$LINENO: result: $CXXCPP" >&5
3338echo "${ECHO_T}$CXXCPP" >&6
3339ac_preproc_ok=false
3340for ac_cxx_preproc_warn_flag in '' yes
3341do
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354#ifdef __STDC__
3355# include <limits.h>
3356#else
3357# include <assert.h>
3358#endif
3359 Syntax error
3360_ACEOF
3361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_cxx_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3372 else
3373 ac_cpp_err=
3374 fi
3375else
3376 ac_cpp_err=yes
3377fi
3378if test -z "$ac_cpp_err"; then
3379 :
3380else
3381 echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 # Broken: fails on valid input.
3385continue
3386fi
3387rm -f conftest.err conftest.$ac_ext
3388
3389 # OK, works on sane cases. Now check whether non-existent headers
3390 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
3397#include <ac_nonexistent.h>
3398_ACEOF
3399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null; then
3407 if test -s conftest.err; then
3408 ac_cpp_err=$ac_cxx_preproc_warn_flag
3409 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3410 else
3411 ac_cpp_err=
3412 fi
3413else
3414 ac_cpp_err=yes
3415fi
3416if test -z "$ac_cpp_err"; then
3417 # Broken: success on invalid input.
3418continue
3419else
3420 echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 # Passes both tests.
3424ac_preproc_ok=:
3425break
3426fi
3427rm -f conftest.err conftest.$ac_ext
3428
3429done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext
3432if $ac_preproc_ok; then
3433 :
3434else
3435 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3436See \`config.log' for more details." >&5
3437echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3438See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }
3440fi
3441
3442ac_ext=cc
3443ac_cpp='$CXXCPP $CPPFLAGS'
3444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3447 3064
3448 3065
3449echo "$as_me:$LINENO: checking for egrep" >&5 3066echo "$as_me:$LINENO: checking for egrep" >&5
3450echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3067echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3451if test "${ac_cv_prog_egrep+set}" = set; then 3068if test "${ac_cv_prog_egrep+set}" = set; then
3526 grep -v '^ *+' conftest.er1 >conftest.err 3143 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1 3144 rm -f conftest.er1
3528 cat conftest.err >&5 3145 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } && 3147 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3148 { ac_try='test -z "$ac_c_werror_flag"
3149 || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5 3151 (eval $ac_try) 2>&5
3534 ac_status=$? 3152 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } && 3154 (exit $ac_status); }; } &&
3580 grep -v '^ *+' conftest.er1 >conftest.err 3198 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1 3199 rm -f conftest.er1
3582 cat conftest.err >&5 3200 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } && 3202 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3203 { ac_try='test -z "$ac_c_werror_flag"
3204 || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5 3206 (eval $ac_try) 2>&5
3588 ac_status=$? 3207 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } && 3209 (exit $ac_status); }; } &&
3611echo "${ECHO_T}$ac_cv_search_strerror" >&6 3230echo "${ECHO_T}$ac_cv_search_strerror" >&6
3612if test "$ac_cv_search_strerror" != no; then 3231if test "$ac_cv_search_strerror" != no; then
3613 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3232 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3614 3233
3615fi 3234fi
3235
3236ac_ext=cc
3237ac_cpp='$CXXCPP $CPPFLAGS'
3238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3241
3242
3243if test x$GCC = xyes && test x$GXX = xyes; then
3244 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3245echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3246 save_CXX="$CXX"
3247 save_LIBS="$LIBS"
3248 CXX="$CC"
3249 LIBS="$LIBS -lsupc++"
3250 LINKER="$CC"
3251
3252cat >conftest.$ac_ext <<_ACEOF
3253/* confdefs.h. */
3254_ACEOF
3255cat confdefs.h >>conftest.$ac_ext
3256cat >>conftest.$ac_ext <<_ACEOF
3257/* end confdefs.h. */
3258struct test { }; void f() try { throw new test; } catch (...) { throw; }
3259int
3260main ()
3261{
3262
3263 ;
3264 return 0;
3265}
3266_ACEOF
3267rm -f conftest.$ac_objext conftest$ac_exeext
3268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>conftest.er1
3270 ac_status=$?
3271 grep -v '^ *+' conftest.er1 >conftest.err
3272 rm -f conftest.er1
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } &&
3276 { ac_try='test -z "$ac_cxx_werror_flag"
3277 || test ! -s conftest.err'
3278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3279 (eval $ac_try) 2>&5
3280 ac_status=$?
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; } &&
3283 { ac_try='test -s conftest$ac_exeext'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; }; then
3289 echo "$as_me:$LINENO: result: ok" >&5
3290echo "${ECHO_T}ok" >&6
3291else
3292 echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295
3296 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3297echo "${ECHO_T}no, making everything bigger and slower" >&6
3298 LIBS="$save_LIBS"
3299 LINKER="$save_CXX"
3300
3301
3302fi
3303rm -f conftest.err conftest.$ac_objext \
3304 conftest$ac_exeext conftest.$ac_ext
3305 CXX="$save_CXX"
3306fi
3307LINKER=$LINKER
3308
3309
3310if test -z "$orig_CXXFLAGS"; then
3311 if test x$GCC = xyes && test "x$GXX" = xyes; then
3312 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3313 cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
3319
3320int
3321main ()
3322{
3323
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328rm -f conftest.$ac_objext
3329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330 (eval $ac_compile) 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_cxx_werror_flag"
3338 || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 :
3351else
3352 echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355CXXFLAGS="-g -O3"
3356fi
3357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3358 else
3359 CXXFLAGS="-O"
3360 fi
3361 CFLAGS="$CXXFLAGS"
3362fi
3363
3364
3365cat >>confdefs.h <<\_ACEOF
3366#define _GNU_SOURCE 1
3367_ACEOF
3368
3369
3370case $host in
3371 *-*-solaris* )
3372
3373cat >>confdefs.h <<\_ACEOF
3374#define _XOPEN_SOURCE 500
3375_ACEOF
3376
3377 ;;
3378esac
3616 3379
3617 3380
3618echo "$as_me:$LINENO: checking for setlocale" >&5 3381echo "$as_me:$LINENO: checking for setlocale" >&5
3619echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 3382echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3620if test "${ac_cv_func_setlocale+set}" = set; then 3383if test "${ac_cv_func_setlocale+set}" = set; then
3678 grep -v '^ *+' conftest.er1 >conftest.err 3441 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1 3442 rm -f conftest.er1
3680 cat conftest.err >&5 3443 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } && 3445 (exit $ac_status); } &&
3683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3446 { ac_try='test -z "$ac_cxx_werror_flag"
3447 || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5 3449 (eval $ac_try) 2>&5
3686 ac_status=$? 3450 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } && 3452 (exit $ac_status); }; } &&
3743 grep -v '^ *+' conftest.er1 >conftest.err 3507 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1 3508 rm -f conftest.er1
3745 cat conftest.err >&5 3509 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } && 3511 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3512 { ac_try='test -z "$ac_cxx_werror_flag"
3513 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5 3515 (eval $ac_try) 2>&5
3751 ac_status=$? 3516 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } && 3518 (exit $ac_status); }; } &&
3840 grep -v '^ *+' conftest.er1 >conftest.err 3605 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1 3606 rm -f conftest.er1
3842 cat conftest.err >&5 3607 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && 3609 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3610 { ac_try='test -z "$ac_cxx_werror_flag"
3611 || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5 3613 (eval $ac_try) 2>&5
3848 ac_status=$? 3614 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } && 3616 (exit $ac_status); }; } &&
3905 grep -v '^ *+' conftest.er1 >conftest.err 3671 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1 3672 rm -f conftest.er1
3907 cat conftest.err >&5 3673 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && 3675 (exit $ac_status); } &&
3910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3676 { ac_try='test -z "$ac_cxx_werror_flag"
3677 || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5 3679 (eval $ac_try) 2>&5
3913 ac_status=$? 3680 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } && 3682 (exit $ac_status); }; } &&
4001 grep -v '^ *+' conftest.er1 >conftest.err 3768 grep -v '^ *+' conftest.er1 >conftest.err
4002 rm -f conftest.er1 3769 rm -f conftest.er1
4003 cat conftest.err >&5 3770 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && 3772 (exit $ac_status); } &&
4006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3773 { ac_try='test -z "$ac_cxx_werror_flag"
3774 || test ! -s conftest.err'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5 3776 (eval $ac_try) 2>&5
4009 ac_status=$? 3777 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; } && 3779 (exit $ac_status); }; } &&
4066 grep -v '^ *+' conftest.er1 >conftest.err 3834 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1 3835 rm -f conftest.er1
4068 cat conftest.err >&5 3836 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } && 3838 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3839 { ac_try='test -z "$ac_cxx_werror_flag"
3840 || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5 3842 (eval $ac_try) 2>&5
4074 ac_status=$? 3843 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } && 3845 (exit $ac_status); }; } &&
4098fi 3867fi
4099 3868
4100fi 3869fi
4101 3870
4102 3871
4103echo "$as_me:$LINENO: checking for sched_yield" >&5
4104echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4105if test "${ac_cv_func_sched_yield+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
4115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4116#define sched_yield innocuous_sched_yield
4117
4118/* System header to define __stub macros and hopefully few prototypes,
4119 which can conflict with char sched_yield (); below.
4120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121 <limits.h> exists even on freestanding compilers. */
4122
4123#ifdef __STDC__
4124# include <limits.h>
4125#else
4126# include <assert.h>
4127#endif
4128
4129#undef sched_yield
4130
4131/* Override any gcc2 internal prototype to avoid an error. */
4132#ifdef __cplusplus
4133extern "C"
4134{
4135#endif
4136/* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4138char sched_yield ();
4139/* The GNU C library defines this for functions which it implements
4140 to always fail with ENOSYS. Some functions are actually named
4141 something starting with __ and the normal name is an alias. */
4142#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
4143choke me
4144#else
4145char (*f) () = sched_yield;
4146#endif
4147#ifdef __cplusplus
4148}
4149#endif
4150
4151int
4152main ()
4153{
4154return f != sched_yield;
4155 ;
4156 return 0;
4157}
4158_ACEOF
4159rm -f conftest.$ac_objext conftest$ac_exeext
4160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161 (eval $ac_link) 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest$ac_exeext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_cv_func_sched_yield=yes
4181else
4182 echo "$as_me: failed program was:" >&5
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
4185ac_cv_func_sched_yield=no
4186fi
4187rm -f conftest.err conftest.$ac_objext \
4188 conftest$ac_exeext conftest.$ac_ext
4189fi
4190echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
4191echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
4192if test $ac_cv_func_sched_yield = yes; then
4193 :
4194else
4195 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
4196echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
4197if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 ac_check_lib_save_LIBS=$LIBS
4201LIBS="-lrt $LIBS"
4202cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h. */
4208
4209/* Override any gcc2 internal prototype to avoid an error. */
4210#ifdef __cplusplus
4211extern "C"
4212#endif
4213/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4215char sched_yield ();
4216int
4217main ()
4218{
4219sched_yield ();
4220 ;
4221 return 0;
4222}
4223_ACEOF
4224rm -f conftest.$ac_objext conftest$ac_exeext
4225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226 (eval $ac_link) 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_lib_rt_sched_yield=yes
4246else
4247 echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250ac_cv_lib_rt_sched_yield=no
4251fi
4252rm -f conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
4254LIBS=$ac_check_lib_save_LIBS
4255fi
4256echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
4257echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
4258if test $ac_cv_lib_rt_sched_yield = yes; then
4259 LIBS="$LIBS -lrt"
4260fi
4261
4262fi
4263
4264
4265echo "$as_me:$LINENO: checking for sched_yield support" >&5
4266echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4267cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h. */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h. */
4273#include <sched.h>
4274int
4275main ()
4276{
4277sched_yield ()
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext conftest$ac_exeext
4283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest$ac_exeext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 echo "$as_me:$LINENO: result: yes" >&5
4304echo "${ECHO_T}yes" >&6
4305
4306cat >>confdefs.h <<\_ACEOF
4307#define HAVE_SCHED_YIELD 1
4308_ACEOF
4309
4310else
4311 echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
4316fi
4317rm -f conftest.err conftest.$ac_objext \
4318 conftest$ac_exeext conftest.$ac_ext
4319
4320
4321MALLOC_TYPE=S
4322 3872
4323support_frills=yes 3873support_frills=yes
4324support_inheritpixmap=yes 3874support_inheritpixmap=yes
4325support_tinting=yes 3875support_tinting=yes
4326support_fading=yes 3876support_fading=yes
4327support_keepscrolling=yes 3877support_keepscrolling=yes
4328support_selectionscrolling=yes 3878support_selectionscrolling=yes
4329support_mousewheel=yes 3879support_mousewheel=yes
4330support_mouseslipwheel=yes 3880support_mouseslipwheel=yes
4331support_utmp=yes
4332support_wtmp=yes
4333support_lastlog=yes
4334support_text_blink=yes 3881support_text_blink=yes
4335support_pointer_blank=yes 3882support_pointer_blank=yes
4336support_scroll_rxvt=yes 3883support_scroll_rxvt=yes
4337support_scroll_next=yes 3884support_scroll_next=yes
4338support_scroll_xterm=yes 3885support_scroll_xterm=yes
4339support_scroll_plain=yes 3886support_scroll_plain=yes
4340support_xim=yes 3887support_xim=yes
4341support_xpm=yes 3888support_xpm=yes
3889support_afterimage=yes
3890support_afterstep=yes
4342support_xft=yes 3891support_xft=yes
4343support_unicode3=no 3892support_unicode3=no
4344support_combining=yes 3893support_combining=yes
4345support_8bitctrls=no 3894support_8bitctrls=no
4346support_iso14755=yes 3895support_iso14755=yes
4362# Check whether --enable-everything or --disable-everything was given. 3911# Check whether --enable-everything or --disable-everything was given.
4363if test "${enable_everything+set}" = set; then 3912if test "${enable_everything+set}" = set; then
4364 enableval="$enable_everything" 3913 enableval="$enable_everything"
4365 3914
4366 if test x$enableval = xno; then 3915 if test x$enableval = xno; then
4367 support_24bit=no
4368 support_frills=no 3916 support_frills=no
4369 support_inheritpixmap=no 3917 support_inheritpixmap=no
4370 support_tinting=no 3918 support_tinting=no
4371 support_fading=no 3919 support_fading=no
4372 support_keepscrolling=no 3920 support_keepscrolling=no
4382 support_scroll_plain=no 3930 support_scroll_plain=no
4383 support_utmp=no 3931 support_utmp=no
4384 support_wtmp=no 3932 support_wtmp=no
4385 support_xim=no 3933 support_xim=no
4386 support_xpm=no 3934 support_xpm=no
3935 support_afterimage=no
3936 support_afterstep=no
4387 support_xft=no 3937 support_xft=no
4388 support_unicode3=no 3938 support_unicode3=no
4389 support_combining=no 3939 support_combining=no
4390 support_8bitctrls=no 3940 support_8bitctrls=no
4391 support_iso14755=no 3941 support_iso14755=no
4392 support_styles=no 3942 support_styles=no
4393 support_perl=no 3943 support_perl=no
4394 codesets= 3944 codesets=
4395 fi 3945 fi
4396 if test x$enableval = xyes; then 3946 if test x$enableval = xyes; then
4397 support_24bit=yes
4398 support_frills=yes 3947 support_frills=yes
4399 support_inheritpixmap=yes 3948 support_inheritpixmap=yes
4400 support_tinting=yes 3949 support_tinting=yes
4401 support_fading=yes 3950 support_fading=yes
4402 support_keepscrolling=yes 3951 support_keepscrolling=yes
4412 support_scroll_plain=yes 3961 support_scroll_plain=yes
4413 support_utmp=yes 3962 support_utmp=yes
4414 support_wtmp=yes 3963 support_wtmp=yes
4415 support_xim=yes 3964 support_xim=yes
4416 support_xpm=yes 3965 support_xpm=yes
3966 support_afterimage=yes
3967 support_afterstep=yes
4417 support_xft=yes 3968 support_xft=yes
4418 support_unicode3=yes 3969 support_unicode3=yes
4419 support_combining=yes 3970 support_combining=yes
4420 #support_8bitctrls=yes 3971 #support_8bitctrls=yes
4421 support_iso14755=yes 3972 support_iso14755=yes
4456 if test x$enableval = xyes -o x$enableval = xno; then 4007 if test x$enableval = xyes -o x$enableval = xno; then
4457 support_styles=$enableval 4008 support_styles=$enableval
4458 fi 4009 fi
4459fi; 4010fi;
4460 4011
4461# Check whether --enable-utmp or --disable-utmp was given.
4462if test "${enable_utmp+set}" = set; then
4463 enableval="$enable_utmp"
4464 if test x$enableval = xyes -o x$enableval = xno; then
4465 support_utmp=$enableval
4466 fi
4467fi;
4468
4469# Check whether --enable-wtmp or --disable-wtmp was given.
4470if test "${enable_wtmp+set}" = set; then
4471 enableval="$enable_wtmp"
4472 if test x$enableval = xyes -o x$enableval = xno; then
4473 support_wtmp=$enableval
4474 fi
4475fi;
4476
4477# Check whether --enable-lastlog or --disable-lastlog was given.
4478if test "${enable_lastlog+set}" = set; then
4479 enableval="$enable_lastlog"
4480 if test x$enableval = xyes -o x$enableval = xno; then
4481 support_lastlog=$enableval
4482 fi
4483fi;
4484
4485# Check whether --enable-xpm-background or --disable-xpm-background was given. 4012# Check whether --enable-xpm-background or --disable-xpm-background was given.
4486if test "${enable_xpm_background+set}" = set; then 4013if test "${enable_xpm_background+set}" = set; then
4487 enableval="$enable_xpm_background" 4014 enableval="$enable_xpm_background"
4488 if test x$enableval = xyes -o x$enableval = xno; then 4015 if test x$enableval = xyes -o x$enableval = xno; then
4489 support_xpm=$enableval 4016 support_xpm=$enableval
4490 fi 4017 fi
4491fi; 4018fi;
4492 4019
4020# Check whether --enable-afterimage or --disable-afterimage was given.
4021if test "${enable_afterimage+set}" = set; then
4022 enableval="$enable_afterimage"
4023 if test x$enableval = xyes -o x$enableval = xno; then
4024 support_afterimage=$enableval
4025 fi
4026fi;
4027
4028
4029# Check whether --with-afterimage_config or --without-afterimage_config was given.
4030if test "${with_afterimage_config+set}" = set; then
4031 withval="$with_afterimage_config"
4032 if test "x$withval" != x; then
4033 afterimage_config=$withval/afterimage-config
4034 fi
4035fi;
4036
4037# Check whether --enable-afterstep or --disable-afterstep was given.
4038if test "${enable_afterstep+set}" = set; then
4039 enableval="$enable_afterstep"
4040 if test x$enableval = xyes -o x$enableval = xno; then
4041 support_afterstep=$enableval
4042 fi
4043fi;
4044
4493# Check whether --enable-transparency or --disable-transparency was given. 4045# Check whether --enable-transparency or --disable-transparency was given.
4494if test "${enable_transparency+set}" = set; then 4046if test "${enable_transparency+set}" = set; then
4495 enableval="$enable_transparency" 4047 enableval="$enable_transparency"
4496 if test x$enableval = xyes -o x$enableval = xno; then 4048 if test x$enableval = xyes -o x$enableval = xno; then
4497 support_inheritpixmap=$enableval 4049 support_inheritpixmap=$enableval
4553 support_scroll_plain=$enableval 4105 support_scroll_plain=$enableval
4554 fi 4106 fi
4555fi; 4107fi;
4556 4108
4557 4109
4558
4559# Check whether --with-codesets or --without-codesets was given. 4110# Check whether --with-codesets or --without-codesets was given.
4560if test "${with_codesets+set}" = set; then 4111if test "${with_codesets+set}" = set; then
4561 withval="$with_codesets" 4112 withval="$with_codesets"
4562 codesets="$withval" 4113 codesets="$withval"
4563fi; 4114fi;
4568 if test x$enableval = xyes -o x$enableval = xno; then 4119 if test x$enableval = xyes -o x$enableval = xno; then
4569 support_xim=$enableval 4120 support_xim=$enableval
4570 fi 4121 fi
4571fi; 4122fi;
4572 4123
4573# Check whether --enable-ttygid or --disable-ttygid was given.
4574if test "${enable_ttygid+set}" = set; then
4575 enableval="$enable_ttygid"
4576 if test x$enableval = xyes; then
4577
4578cat >>confdefs.h <<\_ACEOF
4579#define TTY_GID_SUPPORT 1
4580_ACEOF
4581
4582 fi
4583fi;
4584
4585# Check whether --enable-backspace-key or --disable-backspace-key was given. 4124# Check whether --enable-backspace-key or --disable-backspace-key was given.
4586if test "${enable_backspace_key+set}" = set; then 4125if test "${enable_backspace_key+set}" = set; then
4587 enableval="$enable_backspace_key" 4126 enableval="$enable_backspace_key"
4588 if test x$enableval = xno; then 4127 if test x$enableval = xno; then
4589 4128
4713 if test x$enableval = xyes -o x$enableval = xno; then 4252 if test x$enableval = xyes -o x$enableval = xno; then
4714 support_frills=$enableval 4253 support_frills=$enableval
4715 fi 4254 fi
4716fi; 4255fi;
4717 4256
4718# Check whether --enable-24bit or --disable-24bit was given.
4719if test "${enable_24bit+set}" = set; then
4720 enableval="$enable_24bit"
4721 if test x$enableval = xyes -o x$enableval = xno; then
4722 support_24bit=$enableval
4723 fi
4724fi;
4725
4726# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 4257# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4727if test "${enable_keepscrolling+set}" = set; then 4258if test "${enable_keepscrolling+set}" = set; then
4728 enableval="$enable_keepscrolling" 4259 enableval="$enable_keepscrolling"
4729 if test x$enableval = xyes -o x$enableval = xno; then 4260 if test x$enableval = xyes -o x$enableval = xno; then
4730 support_keepscrolling=$enableval 4261 support_keepscrolling=$enableval
4753 if test x$enableval = xyes -o x$enableval = xno; then 4284 if test x$enableval = xyes -o x$enableval = xno; then
4754 support_mouseslipwheel=$enableval 4285 support_mouseslipwheel=$enableval
4755 fi 4286 fi
4756fi; 4287fi;
4757 4288
4758# Check whether --enable-dmalloc or --disable-dmalloc was given.
4759if test "${enable_dmalloc+set}" = set; then
4760 enableval="$enable_dmalloc"
4761 if test x$enableval = xyes; then
4762 MALLOC_TYPE=G
4763 DEBUG=-DDEBUG_MALLOC
4764 DLIB="-L/usr/local/lib -ldmalloc"
4765 DINCLUDE=-I/usr/local/include
4766 fi
4767fi;
4768
4769# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4770if test "${enable_dlmalloc+set}" = set; then
4771 enableval="$enable_dlmalloc"
4772 if test x$enableval = xyes; then
4773 MALLOC_TYPE=D
4774 DEBUG=
4775 DLIB="-L/usr/local/lib -ldlmalloc"
4776 DINCLUDE=
4777 fi
4778fi;
4779
4780# Check whether --enable-smart-resize or --disable-smart-resize was given. 4289# Check whether --enable-smart-resize or --disable-smart-resize was given.
4781if test "${enable_smart_resize+set}" = set; then 4290if test "${enable_smart_resize+set}" = set; then
4782 enableval="$enable_smart_resize" 4291 enableval="$enable_smart_resize"
4783 if test x$enableval = xyes; then 4292 if test x$enableval = xyes; then
4784 4293
4829_ACEOF 4338_ACEOF
4830 terminfo="$withval" 4339 terminfo="$withval"
4831 fi 4340 fi
4832fi; 4341fi;
4833 4342
4834
4835
4836cat >>confdefs.h <<\_ACEOF
4837#define PROTOTYPES 1
4838_ACEOF
4839
4840
4841# Extract the first word of "mv", so it can be a program name with args.
4842set dummy mv; ac_word=$2
4843echo "$as_me:$LINENO: checking for $ac_word" >&5
4844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845if test "${ac_cv_path_MV+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847else
4848 case $MV in
4849 [\\/]* | ?:[\\/]*)
4850 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4851 ;;
4852 *)
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4863 fi
4864done
4865done
4866
4867 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4868 ;;
4869esac
4870fi
4871MV=$ac_cv_path_MV
4872
4873if test -n "$MV"; then
4874 echo "$as_me:$LINENO: result: $MV" >&5
4875echo "${ECHO_T}$MV" >&6
4876else
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879fi
4880
4881# Extract the first word of "rm", so it can be a program name with args.
4882set dummy rm; ac_word=$2
4883echo "$as_me:$LINENO: checking for $ac_word" >&5
4884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885if test "${ac_cv_path_RM+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888 case $RM in
4889 [\\/]* | ?:[\\/]*)
4890 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4891 ;;
4892 *)
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4903 fi
4904done
4905done
4906
4907 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4908 ;;
4909esac
4910fi
4911RM=$ac_cv_path_RM
4912
4913if test -n "$RM"; then
4914 echo "$as_me:$LINENO: result: $RM" >&5
4915echo "${ECHO_T}$RM" >&6
4916else
4917 echo "$as_me:$LINENO: result: no" >&5
4918echo "${ECHO_T}no" >&6
4919fi
4920
4921# Extract the first word of "cp", so it can be a program name with args.
4922set dummy cp; ac_word=$2
4923echo "$as_me:$LINENO: checking for $ac_word" >&5
4924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4925if test "${ac_cv_path_CP+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928 case $CP in
4929 [\\/]* | ?:[\\/]*)
4930 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4931 ;;
4932 *)
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944done
4945done
4946
4947 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4948 ;;
4949esac
4950fi
4951CP=$ac_cv_path_CP
4952
4953if test -n "$CP"; then
4954 echo "$as_me:$LINENO: result: $CP" >&5
4955echo "${ECHO_T}$CP" >&6
4956else
4957 echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6
4959fi
4960
4961# Extract the first word of "ln", so it can be a program name with args.
4962set dummy ln; ac_word=$2
4963echo "$as_me:$LINENO: checking for $ac_word" >&5
4964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965if test "${ac_cv_path_LN+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968 case $LN in
4969 [\\/]* | ?:[\\/]*)
4970 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4971 ;;
4972 *)
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984done
4985done
4986
4987 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4988 ;;
4989esac
4990fi
4991LN=$ac_cv_path_LN
4992
4993if test -n "$LN"; then
4994 echo "$as_me:$LINENO: result: $LN" >&5
4995echo "${ECHO_T}$LN" >&6
4996else
4997 echo "$as_me:$LINENO: result: no" >&5
4998echo "${ECHO_T}no" >&6
4999fi
5000
5001# Extract the first word of "sed", so it can be a program name with args.
5002set dummy sed; ac_word=$2
5003echo "$as_me:$LINENO: checking for $ac_word" >&5
5004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005if test "${ac_cv_path_SED+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008 case $SED in
5009 [\\/]* | ?:[\\/]*)
5010 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5011 ;;
5012 *)
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024done
5025done
5026
5027 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5028 ;;
5029esac
5030fi
5031SED=$ac_cv_path_SED
5032
5033if test -n "$SED"; then
5034 echo "$as_me:$LINENO: result: $SED" >&5
5035echo "${ECHO_T}$SED" >&6
5036else
5037 echo "$as_me:$LINENO: result: no" >&5
5038echo "${ECHO_T}no" >&6
5039fi
5040
5041# Extract the first word of "echo", so it can be a program name with args.
5042set dummy echo; ac_word=$2
5043echo "$as_me:$LINENO: checking for $ac_word" >&5
5044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045if test "${ac_cv_path_ECHO+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048 case $ECHO in
5049 [\\/]* | ?:[\\/]*)
5050 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5051 ;;
5052 *)
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054for as_dir in $PATH
5055do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064done
5065done
5066
5067 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5068 ;;
5069esac
5070fi
5071ECHO=$ac_cv_path_ECHO
5072
5073if test -n "$ECHO"; then
5074 echo "$as_me:$LINENO: result: $ECHO" >&5
5075echo "${ECHO_T}$ECHO" >&6
5076else
5077 echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6
5079fi
5080
5081# Extract the first word of "cmp", so it can be a program name with args.
5082set dummy cmp; ac_word=$2
5083echo "$as_me:$LINENO: checking for $ac_word" >&5
5084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085if test "${ac_cv_path_CMP+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5087else
5088 case $CMP in
5089 [\\/]* | ?:[\\/]*)
5090 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5091 ;;
5092 *)
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104done
5105done
5106
5107 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5108 ;;
5109esac
5110fi
5111CMP=$ac_cv_path_CMP
5112
5113if test -n "$CMP"; then
5114 echo "$as_me:$LINENO: result: $CMP" >&5
5115echo "${ECHO_T}$CMP" >&6
5116else
5117 echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119fi
5120
5121# Extract the first word of "tbl", so it can be a program name with args.
5122set dummy tbl; ac_word=$2
5123echo "$as_me:$LINENO: checking for $ac_word" >&5
5124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5125if test "${ac_cv_path_TBL+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128 case $TBL in
5129 [\\/]* | ?:[\\/]*)
5130 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5131 ;;
5132 *)
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144done
5145done
5146
5147 ;;
5148esac
5149fi
5150TBL=$ac_cv_path_TBL
5151
5152if test -n "$TBL"; then
5153 echo "$as_me:$LINENO: result: $TBL" >&5
5154echo "${ECHO_T}$TBL" >&6
5155else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158fi
5159 4343
5160# Extract the first word of "tic", so it can be a program name with args. 4344# Extract the first word of "tic", so it can be a program name with args.
5161set dummy tic; ac_word=$2 4345set dummy tic; ac_word=$2
5162echo "$as_me:$LINENO: checking for $ac_word" >&5 4346echo "$as_me:$LINENO: checking for $ac_word" >&5
5163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197fi 4381fi
5198 4382
5199 4383
5200 4384
5201 4385
4386ac_ext=cc
4387ac_cpp='$CXXCPP $CPPFLAGS'
4388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4391echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4392echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4393if test -z "$CXXCPP"; then
4394 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397 # Double quotes because CXXCPP needs to be expanded
4398 for CXXCPP in "$CXX -E" "/lib/cpp"
4399 do
4400 ac_preproc_ok=false
4401for ac_cxx_preproc_warn_flag in '' yes
4402do
4403 # Use a header file that comes with gcc, so configuring glibc
4404 # with a fresh cross-compiler works.
4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 # <limits.h> exists even on freestanding compilers.
4407 # On the NeXT, cc -E runs the code through the compiler's parser,
4408 # not just through cpp. "Syntax error" is here to catch this case.
4409 cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415#ifdef __STDC__
4416# include <limits.h>
4417#else
4418# include <assert.h>
4419#endif
4420 Syntax error
4421_ACEOF
4422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } >/dev/null; then
4430 if test -s conftest.err; then
4431 ac_cpp_err=$ac_cxx_preproc_warn_flag
4432 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4433 else
4434 ac_cpp_err=
4435 fi
4436else
4437 ac_cpp_err=yes
4438fi
4439if test -z "$ac_cpp_err"; then
4440 :
4441else
4442 echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
5202 4444
5203if test "x$ac_path_x_has_been_run" != xyes; then 4445 # Broken: fails on valid input.
4446continue
4447fi
4448rm -f conftest.err conftest.$ac_ext
4449
4450 # OK, works on sane cases. Now check whether non-existent headers
4451 # can be detected and how.
4452 cat >conftest.$ac_ext <<_ACEOF
4453/* confdefs.h. */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h. */
4458#include <ac_nonexistent.h>
4459_ACEOF
4460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null; then
4468 if test -s conftest.err; then
4469 ac_cpp_err=$ac_cxx_preproc_warn_flag
4470 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4471 else
4472 ac_cpp_err=
4473 fi
4474else
4475 ac_cpp_err=yes
4476fi
4477if test -z "$ac_cpp_err"; then
4478 # Broken: success on invalid input.
4479continue
4480else
4481 echo "$as_me: failed program was:" >&5
4482sed 's/^/| /' conftest.$ac_ext >&5
4483
4484 # Passes both tests.
4485ac_preproc_ok=:
4486break
4487fi
4488rm -f conftest.err conftest.$ac_ext
4489
4490done
4491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492rm -f conftest.err conftest.$ac_ext
4493if $ac_preproc_ok; then
4494 break
4495fi
4496
4497 done
4498 ac_cv_prog_CXXCPP=$CXXCPP
4499
4500fi
4501 CXXCPP=$ac_cv_prog_CXXCPP
4502else
4503 ac_cv_prog_CXXCPP=$CXXCPP
4504fi
4505echo "$as_me:$LINENO: result: $CXXCPP" >&5
4506echo "${ECHO_T}$CXXCPP" >&6
4507ac_preproc_ok=false
4508for ac_cxx_preproc_warn_flag in '' yes
4509do
4510 # Use a header file that comes with gcc, so configuring glibc
4511 # with a fresh cross-compiler works.
4512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513 # <limits.h> exists even on freestanding compilers.
4514 # On the NeXT, cc -E runs the code through the compiler's parser,
4515 # not just through cpp. "Syntax error" is here to catch this case.
4516 cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
4522#ifdef __STDC__
4523# include <limits.h>
4524#else
4525# include <assert.h>
4526#endif
4527 Syntax error
4528_ACEOF
4529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } >/dev/null; then
4537 if test -s conftest.err; then
4538 ac_cpp_err=$ac_cxx_preproc_warn_flag
4539 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4540 else
4541 ac_cpp_err=
4542 fi
4543else
4544 ac_cpp_err=yes
4545fi
4546if test -z "$ac_cpp_err"; then
4547 :
4548else
4549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 # Broken: fails on valid input.
4553continue
4554fi
4555rm -f conftest.err conftest.$ac_ext
4556
4557 # OK, works on sane cases. Now check whether non-existent headers
4558 # can be detected and how.
4559 cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h. */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h. */
4565#include <ac_nonexistent.h>
4566_ACEOF
4567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } >/dev/null; then
4575 if test -s conftest.err; then
4576 ac_cpp_err=$ac_cxx_preproc_warn_flag
4577 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4578 else
4579 ac_cpp_err=
4580 fi
4581else
4582 ac_cpp_err=yes
4583fi
4584if test -z "$ac_cpp_err"; then
4585 # Broken: success on invalid input.
4586continue
4587else
4588 echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591 # Passes both tests.
4592ac_preproc_ok=:
4593break
4594fi
4595rm -f conftest.err conftest.$ac_ext
4596
4597done
4598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599rm -f conftest.err conftest.$ac_ext
4600if $ac_preproc_ok; then
4601 :
4602else
4603 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4604See \`config.log' for more details." >&5
4605echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4606See \`config.log' for more details." >&2;}
4607 { (exit 1); exit 1; }; }
4608fi
4609
4610ac_ext=cc
4611ac_cpp='$CXXCPP $CPPFLAGS'
4612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4615
4616
5204 echo "$as_me:$LINENO: checking for X" >&5 4617echo "$as_me:$LINENO: checking for X" >&5
5205echo $ECHO_N "checking for X... $ECHO_C" >&6 4618echo $ECHO_N "checking for X... $ECHO_C" >&6
5206 4619
5207ac_path_x_has_been_run=yes
5208 4620
5209# Check whether --with-x or --without-x was given. 4621# Check whether --with-x or --without-x was given.
5210if test "${with_x+set}" = set; then 4622if test "${with_x+set}" = set; then
5211 withval="$with_x" 4623 withval="$with_x"
5212 4624
5295 4707
5296/usr/openwin/include 4708/usr/openwin/include
5297/usr/openwin/share/include' 4709/usr/openwin/share/include'
5298 4710
5299if test "$ac_x_includes" = no; then 4711if test "$ac_x_includes" = no; then
5300 # Guess where to find include files, by looking for a specified header file. 4712 # Guess where to find include files, by looking for Intrinsic.h.
5301 # First, try using that file with no special directory specified. 4713 # First, try using that file with no special directory specified.
5302 cat >conftest.$ac_ext <<_ACEOF 4714 cat >conftest.$ac_ext <<_ACEOF
5303/* confdefs.h. */ 4715/* confdefs.h. */
5304_ACEOF 4716_ACEOF
5305cat confdefs.h >>conftest.$ac_ext 4717cat confdefs.h >>conftest.$ac_ext
5306cat >>conftest.$ac_ext <<_ACEOF 4718cat >>conftest.$ac_ext <<_ACEOF
5307/* end confdefs.h. */ 4719/* end confdefs.h. */
5308#include <X11/Xlib.h> 4720#include <X11/Intrinsic.h>
5309_ACEOF 4721_ACEOF
5310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5312 ac_status=$? 4724 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err 4725 grep -v '^ *+' conftest.er1 >conftest.err
5330else 4742else
5331 echo "$as_me: failed program was:" >&5 4743 echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5 4744sed 's/^/| /' conftest.$ac_ext >&5
5333 4745
5334 for ac_dir in $ac_x_header_dirs; do 4746 for ac_dir in $ac_x_header_dirs; do
5335 if test -r "$ac_dir/X11/Xlib.h"; then 4747 if test -r "$ac_dir/X11/Intrinsic.h"; then
5336 ac_x_includes=$ac_dir 4748 ac_x_includes=$ac_dir
5337 break 4749 break
5338 fi 4750 fi
5339done 4751done
5340fi 4752fi
5344if test "$ac_x_libraries" = no; then 4756if test "$ac_x_libraries" = no; then
5345 # Check for the libraries. 4757 # Check for the libraries.
5346 # See if we find them without any special options. 4758 # See if we find them without any special options.
5347 # Don't add to $LIBS permanently. 4759 # Don't add to $LIBS permanently.
5348 ac_save_LIBS=$LIBS 4760 ac_save_LIBS=$LIBS
5349 LIBS="-lX11 $LIBS" 4761 LIBS="-lXt $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF 4762 cat >conftest.$ac_ext <<_ACEOF
5351/* confdefs.h. */ 4763/* confdefs.h. */
5352_ACEOF 4764_ACEOF
5353cat confdefs.h >>conftest.$ac_ext 4765cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF 4766cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h. */ 4767/* end confdefs.h. */
5356#include <X11/Xlib.h> 4768#include <X11/Intrinsic.h>
5357int 4769int
5358main () 4770main ()
5359{ 4771{
5360XrmInitialize () 4772XtMalloc (0)
5361 ; 4773 ;
5362 return 0; 4774 return 0;
5363} 4775}
5364_ACEOF 4776_ACEOF
5365rm -f conftest.$ac_objext conftest$ac_exeext 4777rm -f conftest.$ac_objext conftest$ac_exeext
5369 grep -v '^ *+' conftest.er1 >conftest.err 4781 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1 4782 rm -f conftest.er1
5371 cat conftest.err >&5 4783 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && 4785 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4786 { ac_try='test -z "$ac_cxx_werror_flag"
4787 || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5 4789 (eval $ac_try) 2>&5
5377 ac_status=$? 4790 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } && 4792 (exit $ac_status); }; } &&
5393LIBS=$ac_save_LIBS 4806LIBS=$ac_save_LIBS
5394for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4807for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5395do 4808do
5396 # Don't even attempt the hair of trying to link an X program! 4809 # Don't even attempt the hair of trying to link an X program!
5397 for ac_extension in a so sl; do 4810 for ac_extension in a so sl; do
5398 if test -r $ac_dir/libX11.$ac_extension; then 4811 if test -r $ac_dir/libXt.$ac_extension; then
5399 ac_x_libraries=$ac_dir 4812 ac_x_libraries=$ac_dir
5400 break 2 4813 break 2
5401 fi 4814 fi
5402 done 4815 done
5403done 4816done
5429 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4842 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5430 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4843 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5431 # Update the cache value to reflect the command line values. 4844 # Update the cache value to reflect the command line values.
5432 ac_cv_have_x="have_x=yes \ 4845 ac_cv_have_x="have_x=yes \
5433 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 4846 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5434 # It might be that x_includes is empty (headers are found in the
5435 # standard search path. Then output the corresponding message
5436 ac_out_x_includes=$x_includes
5437 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
5438 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 4847 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5439echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 4848echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5440fi 4849fi
5441 4850
5442fi
5443if test "$no_x" = yes; then 4851if test "$no_x" = yes; then
5444 # Not all programs may use this symbol, but it does not hurt to define it. 4852 # Not all programs may use this symbol, but it does not hurt to define it.
5445 4853
5446cat >>confdefs.h <<\_ACEOF 4854cat >>confdefs.h <<\_ACEOF
5447#define X_DISPLAY_MISSING 1 4855#define X_DISPLAY_MISSING 1
5485 grep -v '^ *+' conftest.er1 >conftest.err 4893 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1 4894 rm -f conftest.er1
5487 cat conftest.err >&5 4895 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && 4897 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4898 { ac_try='test -z "$ac_cxx_werror_flag"
4899 || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5 4901 (eval $ac_try) 2>&5
5493 ac_status=$? 4902 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } && 4904 (exit $ac_status); }; } &&
5536 grep -v '^ *+' conftest.er1 >conftest.err 4945 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1 4946 rm -f conftest.er1
5538 cat conftest.err >&5 4947 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && 4949 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 4950 { ac_try='test -z "$ac_cxx_werror_flag"
4951 || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5 4953 (eval $ac_try) 2>&5
5544 ac_status=$? 4954 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } && 4956 (exit $ac_status); }; } &&
5612 grep -v '^ *+' conftest.er1 >conftest.err 5022 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1 5023 rm -f conftest.er1
5614 cat conftest.err >&5 5024 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && 5026 (exit $ac_status); } &&
5617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5027 { ac_try='test -z "$ac_cxx_werror_flag"
5028 || test ! -s conftest.err'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 (eval $ac_try) 2>&5 5030 (eval $ac_try) 2>&5
5620 ac_status=$? 5031 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; } && 5033 (exit $ac_status); }; } &&
5667 grep -v '^ *+' conftest.er1 >conftest.err 5078 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1 5079 rm -f conftest.er1
5669 cat conftest.err >&5 5080 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } && 5082 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5083 { ac_try='test -z "$ac_cxx_werror_flag"
5084 || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5 5086 (eval $ac_try) 2>&5
5675 ac_status=$? 5087 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } && 5089 (exit $ac_status); }; } &&
5735 grep -v '^ *+' conftest.er1 >conftest.err 5147 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1 5148 rm -f conftest.er1
5737 cat conftest.err >&5 5149 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && 5151 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5152 { ac_try='test -z "$ac_cxx_werror_flag"
5153 || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5 5155 (eval $ac_try) 2>&5
5743 ac_status=$? 5156 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } && 5158 (exit $ac_status); }; } &&
5843 grep -v '^ *+' conftest.er1 >conftest.err 5256 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1 5257 rm -f conftest.er1
5845 cat conftest.err >&5 5258 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } && 5260 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5261 { ac_try='test -z "$ac_cxx_werror_flag"
5262 || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5 5264 (eval $ac_try) 2>&5
5851 ac_status=$? 5265 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } && 5267 (exit $ac_status); }; } &&
5907 grep -v '^ *+' conftest.er1 >conftest.err 5321 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1 5322 rm -f conftest.er1
5909 cat conftest.err >&5 5323 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } && 5325 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5326 { ac_try='test -z "$ac_cxx_werror_flag"
5327 || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5 5329 (eval $ac_try) 2>&5
5915 ac_status=$? 5330 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } && 5332 (exit $ac_status); }; } &&
5975 grep -v '^ *+' conftest.er1 >conftest.err 5390 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1 5391 rm -f conftest.er1
5977 cat conftest.err >&5 5392 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && 5394 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5395 { ac_try='test -z "$ac_cxx_werror_flag"
5396 || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5 5398 (eval $ac_try) 2>&5
5983 ac_status=$? 5399 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } && 5401 (exit $ac_status); }; } &&
6079 grep -v '^ *+' conftest.er1 >conftest.err 5495 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1 5496 rm -f conftest.er1
6081 cat conftest.err >&5 5497 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } && 5499 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5500 { ac_try='test -z "$ac_cxx_werror_flag"
5501 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5 5503 (eval $ac_try) 2>&5
6087 ac_status=$? 5504 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } && 5506 (exit $ac_status); }; } &&
6143 grep -v '^ *+' conftest.er1 >conftest.err 5560 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1 5561 rm -f conftest.er1
6145 cat conftest.err >&5 5562 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && 5564 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5565 { ac_try='test -z "$ac_cxx_werror_flag"
5566 || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5 5568 (eval $ac_try) 2>&5
6151 ac_status=$? 5569 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } && 5571 (exit $ac_status); }; } &&
6240 grep -v '^ *+' conftest.er1 >conftest.err 5658 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1 5659 rm -f conftest.er1
6242 cat conftest.err >&5 5660 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } && 5662 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5663 { ac_try='test -z "$ac_cxx_werror_flag"
5664 || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5 5666 (eval $ac_try) 2>&5
6248 ac_status=$? 5667 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } && 5669 (exit $ac_status); }; } &&
6304 grep -v '^ *+' conftest.er1 >conftest.err 5723 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1 5724 rm -f conftest.er1
6306 cat conftest.err >&5 5725 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } && 5727 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5728 { ac_try='test -z "$ac_cxx_werror_flag"
5729 || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5 5731 (eval $ac_try) 2>&5
6312 ac_status=$? 5732 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } && 5734 (exit $ac_status); }; } &&
6401 grep -v '^ *+' conftest.er1 >conftest.err 5821 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1 5822 rm -f conftest.er1
6403 cat conftest.err >&5 5823 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && 5825 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5826 { ac_try='test -z "$ac_cxx_werror_flag"
5827 || test ! -s conftest.err'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5 5829 (eval $ac_try) 2>&5
6409 ac_status=$? 5830 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } && 5832 (exit $ac_status); }; } &&
6465 grep -v '^ *+' conftest.er1 >conftest.err 5886 grep -v '^ *+' conftest.er1 >conftest.err
6466 rm -f conftest.er1 5887 rm -f conftest.er1
6467 cat conftest.err >&5 5888 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } && 5890 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5891 { ac_try='test -z "$ac_cxx_werror_flag"
5892 || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 (eval $ac_try) 2>&5 5894 (eval $ac_try) 2>&5
6473 ac_status=$? 5895 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } && 5897 (exit $ac_status); }; } &&
6544 grep -v '^ *+' conftest.er1 >conftest.err 5966 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1 5967 rm -f conftest.er1
6546 cat conftest.err >&5 5968 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } && 5970 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5971 { ac_try='test -z "$ac_cxx_werror_flag"
5972 || test ! -s conftest.err'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5 5974 (eval $ac_try) 2>&5
6552 ac_status=$? 5975 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; } && 5977 (exit $ac_status); }; } &&
6579 6002
6580fi 6003fi
6581 6004
6582 6005
6583 6006
6007LIBAFTERIMAGE_CFLAGS=
6008AFTERIMAGE_LIBS=
6009have_afterimage=
6010
6584if test x$support_xpm = xyes; then 6011if test x$support_afterimage = xyes; then
6012 support_afterimage=no
6013
6014 if test "x$afterimage_config" = "x" ; then
6015 # Extract the first word of "afterimage-config", so it can be a program name with args.
6016set dummy afterimage-config; ac_word=$2
6017echo "$as_me:$LINENO: checking for $ac_word" >&5
6018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6019if test "${ac_cv_path_afterimage_config+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022 case $afterimage_config in
6023 [\\/]* | ?:[\\/]*)
6024 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6025 ;;
6026 *)
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038done
6039done
6040
6041 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6042 ;;
6043esac
6044fi
6045afterimage_config=$ac_cv_path_afterimage_config
6046
6047if test -n "$afterimage_config"; then
6048 echo "$as_me:$LINENO: result: $afterimage_config" >&5
6049echo "${ECHO_T}$afterimage_config" >&6
6050else
6051 echo "$as_me:$LINENO: result: no" >&5
6052echo "${ECHO_T}no" >&6
6053fi
6054
6055 fi
6056
6057 echo "$as_me:$LINENO: checking for libAfterImage" >&5
6058echo $ECHO_N "checking for libAfterImage... $ECHO_C" >&6
6059 if $afterimage_config --version >/dev/null 2>&1 ; then
6060 LIBAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6061 AFTERIMAGE_LIBS=`$afterimage_config --libs`
6062 if test "x$AFTERIMAGE_LIBS" != "x"; then
6063 support_afterimage=yes
6064 fi
6065 fi
6066
6067 if test "x$support_afterimage" = "xyes"; then
6068 echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5
6069echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6
6070 else
6071 echo "$as_me:$LINENO: result: no" >&5
6072echo "${ECHO_T}no" >&6
6073 fi
6074fi
6075
6076if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6585 6077
6586 6078
6587 6079
6588# Initialize some more variables set by options. 6080# Initialize some more variables set by options.
6589# The variables have the same names as the options, with 6081# The variables have the same names as the options, with
6760 grep -v '^ *+' conftest.er1 >conftest.err 6252 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1 6253 rm -f conftest.er1
6762 cat conftest.err >&5 6254 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && 6256 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6257 { ac_try='test -z "$ac_cxx_werror_flag"
6258 || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5 6260 (eval $ac_try) 2>&5
6768 ac_status=$? 6261 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } && 6263 (exit $ac_status); }; } &&
6974 grep -v '^ *+' conftest.er1 >conftest.err 6467 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1 6468 rm -f conftest.er1
6976 cat conftest.err >&5 6469 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } && 6471 (exit $ac_status); } &&
6979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6472 { ac_try='test -z "$ac_cxx_werror_flag"
6473 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5 6475 (eval $ac_try) 2>&5
6982 ac_status=$? 6476 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } && 6478 (exit $ac_status); }; } &&
7038 grep -v '^ *+' conftest.er1 >conftest.err 6532 grep -v '^ *+' conftest.er1 >conftest.err
7039 rm -f conftest.er1 6533 rm -f conftest.er1
7040 cat conftest.err >&5 6534 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } && 6536 (exit $ac_status); } &&
7043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6537 { ac_try='test -z "$ac_cxx_werror_flag"
6538 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5 6540 (eval $ac_try) 2>&5
7046 ac_status=$? 6541 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } && 6543 (exit $ac_status); }; } &&
7208 grep -v '^ *+' conftest.er1 >conftest.err 6703 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1 6704 rm -f conftest.er1
7210 cat conftest.err >&5 6705 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && 6707 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6708 { ac_try='test -z "$ac_cxx_werror_flag"
6709 || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5 6711 (eval $ac_try) 2>&5
7216 ac_status=$? 6712 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } && 6714 (exit $ac_status); }; } &&
7258 6754
7259 6755
7260 6756
7261 6757
7262 6758
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272for ac_header in \ 6759for ac_header in \
7273 assert.h \ 6760 assert.h \
7274 fcntl.h \ 6761 fcntl.h \
7275 grp.h \
7276 libc.h \
7277 lastlog.h \
7278 stdarg.h \ 6762 stdarg.h \
7279 stdlib.h \ 6763 stdlib.h \
7280 string.h \ 6764 string.h \
7281 termios.h \ 6765 termios.h \
7282 unistd.h \ 6766 unistd.h \
7283 sys/byteorder.h \ 6767 sys/byteorder.h \
7284 sys/ioctl.h \ 6768 sys/ioctl.h \
7285 sys/select.h \ 6769 sys/select.h \
7286 sys/sockio.h \ 6770 sys/sockio.h \
7287 sys/strredir.h \ 6771 sys/strredir.h \
7288 sys/stropts.h \
7289 sys/time.h \ 6772 sys/time.h \
7290 utmp.h \ 6773 stdint.h \
7291 utmpx.h \ 6774 wchar.h \
7292 stdint.h \ 6775 cwchar \
7293 pty.h \ 6776 clocale \
7294 util.h \
7295 libutil.h \
7296 wchar.h \
7297 cwchar \
7298 clocale \
7299 6777
7300do 6778do
7301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7302if eval "test \"\${$as_ac_Header+set}\" = set"; then 6780if eval "test \"\${$as_ac_Header+set}\" = set"; then
7303 echo "$as_me:$LINENO: checking for $ac_header" >&5 6781 echo "$as_me:$LINENO: checking for $ac_header" >&5
7327 grep -v '^ *+' conftest.er1 >conftest.err 6805 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1 6806 rm -f conftest.er1
7329 cat conftest.err >&5 6807 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && 6809 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6810 { ac_try='test -z "$ac_cxx_werror_flag"
6811 || test ! -s conftest.err'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5 6813 (eval $ac_try) 2>&5
7335 ac_status=$? 6814 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } && 6816 (exit $ac_status); }; } &&
7476 grep -v '^ *+' conftest.er1 >conftest.err 6955 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1 6956 rm -f conftest.er1
7478 cat conftest.err >&5 6957 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && 6959 (exit $ac_status); } &&
7481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 6960 { ac_try='test -z "$ac_cxx_werror_flag"
6961 || test ! -s conftest.err'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5 6963 (eval $ac_try) 2>&5
7484 ac_status=$? 6964 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; } && 6966 (exit $ac_status); }; } &&
7541 grep -v '^ *+' conftest.er1 >conftest.err 7021 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1 7022 rm -f conftest.er1
7543 cat conftest.err >&5 7023 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && 7025 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7026 { ac_try='test -z "$ac_cxx_werror_flag"
7027 || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5 7029 (eval $ac_try) 2>&5
7549 ac_status=$? 7030 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } && 7032 (exit $ac_status); }; } &&
7564fi 7045fi
7565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7566fi 7047fi
7567echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5 7048echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7568echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6 7049echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7569
7570if test -n "$GCC"; then
7571 LDARG="-Wl,"
7572else
7573 LDARG=""
7574fi
7575R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7576
7577ac_save_CFLAGS=$CFLAGS
7578ac_save_LIBS=$LIBS
7579CFLAGS="$CFLAGS $X_CFLAGS"
7580LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7581echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7582echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7583if test "${rxvt_cv_rpath+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586 if test "$cross_compiling" = yes; then
7587 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7588echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7589else
7590 cat >conftest.$ac_ext <<_ACEOF
7591/* confdefs.h. */
7592_ACEOF
7593cat confdefs.h >>conftest.$ac_ext
7594cat >>conftest.$ac_ext <<_ACEOF
7595/* end confdefs.h. */
7596
7597main()
7598{
7599 exit(0);
7600 (void) XOpenDisplay("foobar");
7601}
7602_ACEOF
7603rm -f conftest$ac_exeext
7604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 rxvt_cv_rpath=yes
7615else
7616 echo "$as_me: program exited with status $ac_status" >&5
7617echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620( exit $ac_status )
7621rxvt_cv_rpath=no
7622fi
7623rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7624fi
7625fi
7626echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7627echo "${ECHO_T}$rxvt_cv_rpath" >&6
7628if test x$rxvt_cv_rpath != xyes; then
7629 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7630 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7631 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7632echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7633if test "${rxvt_cv_R+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 if test "$cross_compiling" = yes; then
7637 rxvt_cv_R=no
7638else
7639 cat >conftest.$ac_ext <<_ACEOF
7640/* confdefs.h. */
7641_ACEOF
7642cat confdefs.h >>conftest.$ac_ext
7643cat >>conftest.$ac_ext <<_ACEOF
7644/* end confdefs.h. */
7645
7646main()
7647{
7648 exit(0);
7649 (void) XOpenDisplay("foobar");
7650}
7651_ACEOF
7652rm -f conftest$ac_exeext
7653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663 rxvt_cv_R=yes
7664else
7665 echo "$as_me: program exited with status $ac_status" >&5
7666echo "$as_me: failed program was:" >&5
7667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669( exit $ac_status )
7670rxvt_cv_R=no
7671fi
7672rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7673fi
7674fi
7675echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7676echo "${ECHO_T}$rxvt_cv_R" >&6
7677 if test x$rxvt_cv_R != xyes; then
7678 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7679 fi
7680fi
7681 7050
7682echo "$as_me:$LINENO: checking for XPointer" >&5 7051echo "$as_me:$LINENO: checking for XPointer" >&5
7683echo $ECHO_N "checking for XPointer... $ECHO_C" >&6 7052echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7684if test "${rxvt_cv_xpointer+set}" = set; then 7053if test "${rxvt_cv_xpointer+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6 7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 grep -v '^ *+' conftest.er1 >conftest.err 7075 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1 7076 rm -f conftest.er1
7708 cat conftest.err >&5 7077 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } && 7079 (exit $ac_status); } &&
7711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7080 { ac_try='test -z "$ac_cxx_werror_flag"
7081 || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5 7083 (eval $ac_try) 2>&5
7714 ac_status=$? 7084 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } && 7086 (exit $ac_status); }; } &&
7739 7109
7740fi 7110fi
7741LIBS=$ac_save_LIBS 7111LIBS=$ac_save_LIBS
7742CFLAGS=$ac_save_CFLAGS 7112CFLAGS=$ac_save_CFLAGS
7743 7113
7114echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7115echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6
7116if test "${rxvt_xlib_illegal_access+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119 cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h. */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h. */
7125
7126#define XLIB_ILLEGAL_ACCESS
7127#include <X11/Xlib.h>
7128
7129int
7130main ()
7131{
7132
7133 Display *dpy;
7134 dpy->xdefaults = (char *)0;
7135
7136 ;
7137 return 0;
7138}
7139_ACEOF
7140rm -f conftest.$ac_objext
7141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142 (eval $ac_compile) 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
7149 { ac_try='test -z "$ac_cxx_werror_flag"
7150 || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 rxvt_xlib_illegal_access=yes
7163else
7164 echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167rxvt_xlib_illegal_access=no
7168
7169fi
7170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7173echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6
7174if test x$rxvt_xlib_illegal_access = xyes; then
7175
7176cat >>confdefs.h <<\_ACEOF
7177#define XLIB_ILLEGAL_ACCESS 1
7178_ACEOF
7179
7180fi
7744 7181
7745echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7182echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7746echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7183echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7747if test "${ac_cv_c_const+set}" = set; then 7184if test "${ac_cv_c_const+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6 7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 grep -v '^ *+' conftest.er1 >conftest.err 7252 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1 7253 rm -f conftest.er1
7817 cat conftest.err >&5 7254 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && 7256 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7257 { ac_try='test -z "$ac_cxx_werror_flag"
7258 || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5 7260 (eval $ac_try) 2>&5
7823 ac_status=$? 7261 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } && 7263 (exit $ac_status); }; } &&
7875 grep -v '^ *+' conftest.er1 >conftest.err 7313 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1 7314 rm -f conftest.er1
7877 cat conftest.err >&5 7315 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && 7317 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7318 { ac_try='test -z "$ac_cxx_werror_flag"
7319 || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5 7321 (eval $ac_try) 2>&5
7883 ac_status=$? 7322 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } && 7324 (exit $ac_status); }; } &&
7950 grep -v '^ *+' conftest.er1 >conftest.err 7389 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1 7390 rm -f conftest.er1
7952 cat conftest.err >&5 7391 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && 7393 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7394 { ac_try='test -z "$ac_cxx_werror_flag"
7395 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5 7397 (eval $ac_try) 2>&5
7958 ac_status=$? 7398 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } && 7400 (exit $ac_status); }; } &&
8015 grep -v '^ *+' conftest.er1 >conftest.err 7455 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1 7456 rm -f conftest.er1
8017 cat conftest.err >&5 7457 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && 7459 (exit $ac_status); } &&
8020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7460 { ac_try='test -z "$ac_cxx_werror_flag"
7461 || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5 7463 (eval $ac_try) 2>&5
8023 ac_status=$? 7464 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } && 7466 (exit $ac_status); }; } &&
8119 grep -v '^ *+' conftest.er1 >conftest.err 7560 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1 7561 rm -f conftest.er1
8121 cat conftest.err >&5 7562 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } && 7564 (exit $ac_status); } &&
8124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7565 { ac_try='test -z "$ac_cxx_werror_flag"
7566 || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5 7568 (eval $ac_try) 2>&5
8127 ac_status=$? 7569 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } && 7571 (exit $ac_status); }; } &&
8181 grep -v '^ *+' conftest.er1 >conftest.err 7623 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1 7624 rm -f conftest.er1
8183 cat conftest.err >&5 7625 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } && 7627 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7628 { ac_try='test -z "$ac_cxx_werror_flag"
7629 || test ! -s conftest.err'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 (eval $ac_try) 2>&5 7631 (eval $ac_try) 2>&5
8189 ac_status=$? 7632 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; } && 7634 (exit $ac_status); }; } &&
8221 grep -v '^ *+' conftest.er1 >conftest.err 7664 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1 7665 rm -f conftest.er1
8223 cat conftest.err >&5 7666 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } && 7668 (exit $ac_status); } &&
8226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7669 { ac_try='test -z "$ac_cxx_werror_flag"
7670 || test ! -s conftest.err'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5 7672 (eval $ac_try) 2>&5
8229 ac_status=$? 7673 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; } && 7675 (exit $ac_status); }; } &&
8277 grep -v '^ *+' conftest.er1 >conftest.err 7721 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1 7722 rm -f conftest.er1
8279 cat conftest.err >&5 7723 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } && 7725 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7726 { ac_try='test -z "$ac_cxx_werror_flag"
7727 || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5 7729 (eval $ac_try) 2>&5
8285 ac_status=$? 7730 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } && 7732 (exit $ac_status); }; } &&
8317 grep -v '^ *+' conftest.er1 >conftest.err 7762 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1 7763 rm -f conftest.er1
8319 cat conftest.err >&5 7764 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } && 7766 (exit $ac_status); } &&
8322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7767 { ac_try='test -z "$ac_cxx_werror_flag"
7768 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5 7770 (eval $ac_try) 2>&5
8325 ac_status=$? 7771 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } && 7773 (exit $ac_status); }; } &&
8381 grep -v '^ *+' conftest.er1 >conftest.err 7827 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1 7828 rm -f conftest.er1
8383 cat conftest.err >&5 7829 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && 7831 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7832 { ac_try='test -z "$ac_cxx_werror_flag"
7833 || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5 7835 (eval $ac_try) 2>&5
8389 ac_status=$? 7836 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } && 7838 (exit $ac_status); }; } &&
8412See \`config.log' for more details." >&2;} 7859See \`config.log' for more details." >&2;}
8413 { (exit 1); exit 1; }; } ;; 7860 { (exit 1); exit 1; }; } ;;
8414esac 7861esac
8415else 7862else
8416 if test "$cross_compiling" = yes; then 7863 if test "$cross_compiling" = yes; then
8417 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 7864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8418echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 7865See \`config.log' for more details." >&5
7866echo "$as_me: error: cannot run test program while cross compiling
7867See \`config.log' for more details." >&2;}
8419 { (exit 1); exit 1; }; } 7868 { (exit 1); exit 1; }; }
8420else 7869else
8421 cat >conftest.$ac_ext <<_ACEOF 7870 cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h. */ 7871/* confdefs.h. */
8423_ACEOF 7872_ACEOF
8525 grep -v '^ *+' conftest.er1 >conftest.err 7974 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1 7975 rm -f conftest.er1
8527 cat conftest.err >&5 7976 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && 7978 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 7979 { ac_try='test -z "$ac_cxx_werror_flag"
7980 || test ! -s conftest.err'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5 7982 (eval $ac_try) 2>&5
8533 ac_status=$? 7983 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } && 7985 (exit $ac_status); }; } &&
8587 grep -v '^ *+' conftest.er1 >conftest.err 8037 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1 8038 rm -f conftest.er1
8589 cat conftest.err >&5 8039 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && 8041 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8042 { ac_try='test -z "$ac_cxx_werror_flag"
8043 || test ! -s conftest.err'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5 8045 (eval $ac_try) 2>&5
8595 ac_status=$? 8046 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } && 8048 (exit $ac_status); }; } &&
8627 grep -v '^ *+' conftest.er1 >conftest.err 8078 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1 8079 rm -f conftest.er1
8629 cat conftest.err >&5 8080 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } && 8082 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8083 { ac_try='test -z "$ac_cxx_werror_flag"
8084 || test ! -s conftest.err'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 (eval $ac_try) 2>&5 8086 (eval $ac_try) 2>&5
8635 ac_status=$? 8087 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } && 8089 (exit $ac_status); }; } &&
8683 grep -v '^ *+' conftest.er1 >conftest.err 8135 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1 8136 rm -f conftest.er1
8685 cat conftest.err >&5 8137 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && 8139 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8140 { ac_try='test -z "$ac_cxx_werror_flag"
8141 || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5 8143 (eval $ac_try) 2>&5
8691 ac_status=$? 8144 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } && 8146 (exit $ac_status); }; } &&
8723 grep -v '^ *+' conftest.er1 >conftest.err 8176 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1 8177 rm -f conftest.er1
8725 cat conftest.err >&5 8178 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && 8180 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8181 { ac_try='test -z "$ac_cxx_werror_flag"
8182 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5 8184 (eval $ac_try) 2>&5
8731 ac_status=$? 8185 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } && 8187 (exit $ac_status); }; } &&
8787 grep -v '^ *+' conftest.er1 >conftest.err 8241 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1 8242 rm -f conftest.er1
8789 cat conftest.err >&5 8243 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && 8245 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8246 { ac_try='test -z "$ac_cxx_werror_flag"
8247 || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 (eval $ac_try) 2>&5 8249 (eval $ac_try) 2>&5
8795 ac_status=$? 8250 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } && 8252 (exit $ac_status); }; } &&
8818See \`config.log' for more details." >&2;} 8273See \`config.log' for more details." >&2;}
8819 { (exit 1); exit 1; }; } ;; 8274 { (exit 1); exit 1; }; } ;;
8820esac 8275esac
8821else 8276else
8822 if test "$cross_compiling" = yes; then 8277 if test "$cross_compiling" = yes; then
8823 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8824echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8279See \`config.log' for more details." >&5
8280echo "$as_me: error: cannot run test program while cross compiling
8281See \`config.log' for more details." >&2;}
8825 { (exit 1); exit 1; }; } 8282 { (exit 1); exit 1; }; }
8826else 8283else
8827 cat >conftest.$ac_ext <<_ACEOF 8284 cat >conftest.$ac_ext <<_ACEOF
8828/* confdefs.h. */ 8285/* confdefs.h. */
8829_ACEOF 8286_ACEOF
8931 grep -v '^ *+' conftest.er1 >conftest.err 8388 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1 8389 rm -f conftest.er1
8933 cat conftest.err >&5 8390 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } && 8392 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8393 { ac_try='test -z "$ac_cxx_werror_flag"
8394 || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5 8396 (eval $ac_try) 2>&5
8939 ac_status=$? 8397 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } && 8399 (exit $ac_status); }; } &&
8993 grep -v '^ *+' conftest.er1 >conftest.err 8451 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1 8452 rm -f conftest.er1
8995 cat conftest.err >&5 8453 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && 8455 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8456 { ac_try='test -z "$ac_cxx_werror_flag"
8457 || test ! -s conftest.err'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5 8459 (eval $ac_try) 2>&5
9001 ac_status=$? 8460 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } && 8462 (exit $ac_status); }; } &&
9033 grep -v '^ *+' conftest.er1 >conftest.err 8492 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1 8493 rm -f conftest.er1
9035 cat conftest.err >&5 8494 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } && 8496 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8497 { ac_try='test -z "$ac_cxx_werror_flag"
8498 || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5 8500 (eval $ac_try) 2>&5
9041 ac_status=$? 8501 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } && 8503 (exit $ac_status); }; } &&
9089 grep -v '^ *+' conftest.er1 >conftest.err 8549 grep -v '^ *+' conftest.er1 >conftest.err
9090 rm -f conftest.er1 8550 rm -f conftest.er1
9091 cat conftest.err >&5 8551 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } && 8553 (exit $ac_status); } &&
9094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8554 { ac_try='test -z "$ac_cxx_werror_flag"
8555 || test ! -s conftest.err'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5 8557 (eval $ac_try) 2>&5
9097 ac_status=$? 8558 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } && 8560 (exit $ac_status); }; } &&
9129 grep -v '^ *+' conftest.er1 >conftest.err 8590 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1 8591 rm -f conftest.er1
9131 cat conftest.err >&5 8592 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && 8594 (exit $ac_status); } &&
9134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8595 { ac_try='test -z "$ac_cxx_werror_flag"
8596 || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5 8598 (eval $ac_try) 2>&5
9137 ac_status=$? 8599 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } && 8601 (exit $ac_status); }; } &&
9193 grep -v '^ *+' conftest.er1 >conftest.err 8655 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1 8656 rm -f conftest.er1
9195 cat conftest.err >&5 8657 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && 8659 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8660 { ac_try='test -z "$ac_cxx_werror_flag"
8661 || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5 8663 (eval $ac_try) 2>&5
9201 ac_status=$? 8664 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } && 8666 (exit $ac_status); }; } &&
9224See \`config.log' for more details." >&2;} 8687See \`config.log' for more details." >&2;}
9225 { (exit 1); exit 1; }; } ;; 8688 { (exit 1); exit 1; }; } ;;
9226esac 8689esac
9227else 8690else
9228 if test "$cross_compiling" = yes; then 8691 if test "$cross_compiling" = yes; then
9229 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 8692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9230echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 8693See \`config.log' for more details." >&5
8694echo "$as_me: error: cannot run test program while cross compiling
8695See \`config.log' for more details." >&2;}
9231 { (exit 1); exit 1; }; } 8696 { (exit 1); exit 1; }; }
9232else 8697else
9233 cat >conftest.$ac_ext <<_ACEOF 8698 cat >conftest.$ac_ext <<_ACEOF
9234/* confdefs.h. */ 8699/* confdefs.h. */
9235_ACEOF 8700_ACEOF
9337 grep -v '^ *+' conftest.er1 >conftest.err 8802 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1 8803 rm -f conftest.er1
9339 cat conftest.err >&5 8804 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && 8806 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8807 { ac_try='test -z "$ac_cxx_werror_flag"
8808 || test ! -s conftest.err'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5 8810 (eval $ac_try) 2>&5
9345 ac_status=$? 8811 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } && 8813 (exit $ac_status); }; } &&
9399 grep -v '^ *+' conftest.er1 >conftest.err 8865 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1 8866 rm -f conftest.er1
9401 cat conftest.err >&5 8867 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } && 8869 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8870 { ac_try='test -z "$ac_cxx_werror_flag"
8871 || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5 8873 (eval $ac_try) 2>&5
9407 ac_status=$? 8874 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } && 8876 (exit $ac_status); }; } &&
9439 grep -v '^ *+' conftest.er1 >conftest.err 8906 grep -v '^ *+' conftest.er1 >conftest.err
9440 rm -f conftest.er1 8907 rm -f conftest.er1
9441 cat conftest.err >&5 8908 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && 8910 (exit $ac_status); } &&
9444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8911 { ac_try='test -z "$ac_cxx_werror_flag"
8912 || test ! -s conftest.err'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5 8914 (eval $ac_try) 2>&5
9447 ac_status=$? 8915 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } && 8917 (exit $ac_status); }; } &&
9495 grep -v '^ *+' conftest.er1 >conftest.err 8963 grep -v '^ *+' conftest.er1 >conftest.err
9496 rm -f conftest.er1 8964 rm -f conftest.er1
9497 cat conftest.err >&5 8965 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } && 8967 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 8968 { ac_try='test -z "$ac_cxx_werror_flag"
8969 || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5 8971 (eval $ac_try) 2>&5
9503 ac_status=$? 8972 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } && 8974 (exit $ac_status); }; } &&
9535 grep -v '^ *+' conftest.er1 >conftest.err 9004 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1 9005 rm -f conftest.er1
9537 cat conftest.err >&5 9006 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } && 9008 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9009 { ac_try='test -z "$ac_cxx_werror_flag"
9010 || test ! -s conftest.err'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5 9012 (eval $ac_try) 2>&5
9543 ac_status=$? 9013 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } && 9015 (exit $ac_status); }; } &&
9599 grep -v '^ *+' conftest.er1 >conftest.err 9069 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1 9070 rm -f conftest.er1
9601 cat conftest.err >&5 9071 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } && 9073 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9074 { ac_try='test -z "$ac_cxx_werror_flag"
9075 || test ! -s conftest.err'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5 9077 (eval $ac_try) 2>&5
9607 ac_status=$? 9078 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; } && 9080 (exit $ac_status); }; } &&
9630See \`config.log' for more details." >&2;} 9101See \`config.log' for more details." >&2;}
9631 { (exit 1); exit 1; }; } ;; 9102 { (exit 1); exit 1; }; } ;;
9632esac 9103esac
9633else 9104else
9634 if test "$cross_compiling" = yes; then 9105 if test "$cross_compiling" = yes; then
9635 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 9106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9636echo "$as_me: error: internal error: not reached in cross-compile" >&2;} 9107See \`config.log' for more details." >&5
9108echo "$as_me: error: cannot run test program while cross compiling
9109See \`config.log' for more details." >&2;}
9637 { (exit 1); exit 1; }; } 9110 { (exit 1); exit 1; }; }
9638else 9111else
9639 cat >conftest.$ac_ext <<_ACEOF 9112 cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h. */ 9113/* confdefs.h. */
9641_ACEOF 9114_ACEOF
9742 grep -v '^ *+' conftest.er1 >conftest.err 9215 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1 9216 rm -f conftest.er1
9744 cat conftest.err >&5 9217 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && 9219 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9220 { ac_try='test -z "$ac_cxx_werror_flag"
9221 || test ! -s conftest.err'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5 9223 (eval $ac_try) 2>&5
9750 ac_status=$? 9224 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } && 9226 (exit $ac_status); }; } &&
9824 grep -v '^ *+' conftest.er1 >conftest.err 9298 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1 9299 rm -f conftest.er1
9826 cat conftest.err >&5 9300 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && 9302 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9303 { ac_try='test -z "$ac_cxx_werror_flag"
9304 || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5 9306 (eval $ac_try) 2>&5
9832 ac_status=$? 9307 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } && 9309 (exit $ac_status); }; } &&
9906 grep -v '^ *+' conftest.er1 >conftest.err 9381 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1 9382 rm -f conftest.er1
9908 cat conftest.err >&5 9383 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && 9385 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9386 { ac_try='test -z "$ac_cxx_werror_flag"
9387 || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5 9389 (eval $ac_try) 2>&5
9914 ac_status=$? 9390 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } && 9392 (exit $ac_status); }; } &&
9988 grep -v '^ *+' conftest.er1 >conftest.err 9464 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1 9465 rm -f conftest.er1
9990 cat conftest.err >&5 9466 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } && 9468 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9469 { ac_try='test -z "$ac_cxx_werror_flag"
9470 || test ! -s conftest.err'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5 9472 (eval $ac_try) 2>&5
9996 ac_status=$? 9473 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } && 9475 (exit $ac_status); }; } &&
10100 grep -v '^ *+' conftest.er1 >conftest.err 9577 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1 9578 rm -f conftest.er1
10102 cat conftest.err >&5 9579 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && 9581 (exit $ac_status); } &&
10105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9582 { ac_try='test -z "$ac_cxx_werror_flag"
9583 || test ! -s conftest.err'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5 9585 (eval $ac_try) 2>&5
10108 ac_status=$? 9586 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } && 9588 (exit $ac_status); }; } &&
10133 9611
10134 9612
10135 9613
10136 9614
10137 9615
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152for ac_func in \ 9616for ac_func in \
10153 revoke \
10154 unsetenv \ 9617 unsetenv \
10155 setutent \ 9618 setutent \
10156 seteuid \
10157 setresuid \
10158 setreuid \
10159 _getpty \
10160 getpt \
10161 posix_openpt \
10162 grantpt \
10163 unlockpt \
10164 isastream \
10165 on_exit \ 9619 on_exit \
10166 nanosleep \
10167 updwtmp \
10168 updwtmpx \
10169 ttyslot \
10170 9620
10171do 9621do
10172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10173echo "$as_me:$LINENO: checking for $ac_func" >&5 9623echo "$as_me:$LINENO: checking for $ac_func" >&5
10174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10233 grep -v '^ *+' conftest.er1 >conftest.err 9683 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1 9684 rm -f conftest.er1
10235 cat conftest.err >&5 9685 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && 9687 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 9688 { ac_try='test -z "$ac_cxx_werror_flag"
9689 || test ! -s conftest.err'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5 9691 (eval $ac_try) 2>&5
10241 ac_status=$? 9692 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } && 9694 (exit $ac_status); }; } &&
10267fi 9718fi
10268done 9719done
10269 9720
10270 9721
10271 9722
9723support_utmp=yes
9724support_wtmp=yes
9725support_lastlog=yes
9726
9727# Check whether --enable-utmp or --disable-utmp was given.
9728if test "${enable_utmp+set}" = set; then
9729 enableval="$enable_utmp"
9730 if test x$enableval = xyes -o x$enableval = xno; then
9731 support_utmp=$enableval
9732 fi
9733fi;
9734
9735# Check whether --enable-wtmp or --disable-wtmp was given.
9736if test "${enable_wtmp+set}" = set; then
9737 enableval="$enable_wtmp"
9738 if test x$enableval = xyes -o x$enableval = xno; then
9739 support_wtmp=$enableval
9740 fi
9741fi;
9742
9743# Check whether --enable-lastlog or --disable-lastlog was given.
9744if test "${enable_lastlog+set}" = set; then
9745 enableval="$enable_lastlog"
9746 if test x$enableval = xyes -o x$enableval = xno; then
9747 support_lastlog=$enableval
9748 fi
9749fi;
9750
9751if test x$support_utmp = xyes; then
9752
9753cat >>confdefs.h <<\_ACEOF
9754#define UTMP_SUPPORT 1
9755_ACEOF
9756
9757fi
9758if test x$support_wtmp = xyes; then
9759
9760cat >>confdefs.h <<\_ACEOF
9761#define WTMP_SUPPORT 1
9762_ACEOF
9763
9764fi
9765if test x$support_lastlog = xyes; then
9766
9767cat >>confdefs.h <<\_ACEOF
9768#define LASTLOG_SUPPORT 1
9769_ACEOF
9770
9771fi
9772
9773
9774
9775
9776for ac_func in \
9777 ttyslot \
9778 updwtmp \
9779 updwtmpx \
9780
9781do
9782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783echo "$as_me:$LINENO: checking for $ac_func" >&5
9784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9785if eval "test \"\${$as_ac_var+set}\" = set"; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787else
9788 cat >conftest.$ac_ext <<_ACEOF
9789/* confdefs.h. */
9790_ACEOF
9791cat confdefs.h >>conftest.$ac_ext
9792cat >>conftest.$ac_ext <<_ACEOF
9793/* end confdefs.h. */
9794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796#define $ac_func innocuous_$ac_func
9797
9798/* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9802
9803#ifdef __STDC__
9804# include <limits.h>
9805#else
9806# include <assert.h>
9807#endif
9808
9809#undef $ac_func
9810
9811/* Override any gcc2 internal prototype to avoid an error. */
9812#ifdef __cplusplus
9813extern "C"
9814{
9815#endif
9816/* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9818char $ac_func ();
9819/* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823choke me
9824#else
9825char (*f) () = $ac_func;
9826#endif
9827#ifdef __cplusplus
9828}
9829#endif
9830
9831int
9832main ()
9833{
9834return f != $ac_func;
9835 ;
9836 return 0;
9837}
9838_ACEOF
9839rm -f conftest.$ac_objext conftest$ac_exeext
9840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_cxx_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 eval "$as_ac_var=yes"
9862else
9863 echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
9866eval "$as_ac_var=no"
9867fi
9868rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870fi
9871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9872echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9873if test `eval echo '${'$as_ac_var'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876_ACEOF
9877
9878fi
9879done
9880
9881
9882
9883
9884
9885for ac_header in \
9886 utmp.h \
9887 utmpx.h \
9888 lastlog.h \
9889
9890do
9891as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9892if eval "test \"\${$as_ac_Header+set}\" = set"; then
9893 echo "$as_me:$LINENO: checking for $ac_header" >&5
9894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9895if eval "test \"\${$as_ac_Header+set}\" = set"; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897fi
9898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9900else
9901 # Is the header compilable?
9902echo "$as_me:$LINENO: checking $ac_header usability" >&5
9903echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9904cat >conftest.$ac_ext <<_ACEOF
9905/* confdefs.h. */
9906_ACEOF
9907cat confdefs.h >>conftest.$ac_ext
9908cat >>conftest.$ac_ext <<_ACEOF
9909/* end confdefs.h. */
9910$ac_includes_default
9911#include <$ac_header>
9912_ACEOF
9913rm -f conftest.$ac_objext
9914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9915 (eval $ac_compile) 2>conftest.er1
9916 ac_status=$?
9917 grep -v '^ *+' conftest.er1 >conftest.err
9918 rm -f conftest.er1
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } &&
9922 { ac_try='test -z "$ac_cxx_werror_flag"
9923 || test ! -s conftest.err'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; } &&
9929 { ac_try='test -s conftest.$ac_objext'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_header_compiler=yes
9936else
9937 echo "$as_me: failed program was:" >&5
9938sed 's/^/| /' conftest.$ac_ext >&5
9939
9940ac_header_compiler=no
9941fi
9942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9943echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9944echo "${ECHO_T}$ac_header_compiler" >&6
9945
9946# Is the header present?
9947echo "$as_me:$LINENO: checking $ac_header presence" >&5
9948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9949cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955#include <$ac_header>
9956_ACEOF
9957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } >/dev/null; then
9965 if test -s conftest.err; then
9966 ac_cpp_err=$ac_cxx_preproc_warn_flag
9967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9968 else
9969 ac_cpp_err=
9970 fi
9971else
9972 ac_cpp_err=yes
9973fi
9974if test -z "$ac_cpp_err"; then
9975 ac_header_preproc=yes
9976else
9977 echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 ac_header_preproc=no
9981fi
9982rm -f conftest.err conftest.$ac_ext
9983echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9984echo "${ECHO_T}$ac_header_preproc" >&6
9985
9986# So? What about this header?
9987case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9988 yes:no: )
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9990echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9992echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9993 ac_header_preproc=yes
9994 ;;
9995 no:yes:* )
9996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9997echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9999echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10001echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10003echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10005echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10007echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10008 (
10009 cat <<\_ASBOX
10010## ------------------------------------------ ##
10011## Report this to the AC_PACKAGE_NAME lists. ##
10012## ------------------------------------------ ##
10013_ASBOX
10014 ) |
10015 sed "s/^/$as_me: WARNING: /" >&2
10016 ;;
10017esac
10018echo "$as_me:$LINENO: checking for $ac_header" >&5
10019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10020if eval "test \"\${$as_ac_Header+set}\" = set"; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10022else
10023 eval "$as_ac_Header=\$ac_header_preproc"
10024fi
10025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10027
10028fi
10029if test `eval echo '${'$as_ac_Header'}'` = yes; then
10030 cat >>confdefs.h <<_ACEOF
10031#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10032_ACEOF
10033
10034fi
10035
10036done
10037
10038
10039
10272if test "${ac_cv_header_utmp_h+set}" = set; then 10040if test "${ac_cv_header_utmp_h+set}" = set; then
10273 echo "$as_me:$LINENO: checking for utmp.h" >&5 10041 echo "$as_me:$LINENO: checking for utmp.h" >&5
10274echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 10042echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10275if test "${ac_cv_header_utmp_h+set}" = set; then 10043if test "${ac_cv_header_utmp_h+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6 10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 grep -v '^ *+' conftest.er1 >conftest.err 10065 grep -v '^ *+' conftest.er1 >conftest.err
10298 rm -f conftest.er1 10066 rm -f conftest.er1
10299 cat conftest.err >&5 10067 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && 10069 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10070 { ac_try='test -z "$ac_cxx_werror_flag"
10071 || test ! -s conftest.err'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5 10073 (eval $ac_try) 2>&5
10305 ac_status=$? 10074 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } && 10076 (exit $ac_status); }; } &&
10406 10175
10407fi 10176fi
10408if test $ac_cv_header_utmp_h = yes; then 10177if test $ac_cv_header_utmp_h = yes; then
10409 echo "$as_me:$LINENO: checking for struct utmp" >&5 10178 echo "$as_me:$LINENO: checking for struct utmp" >&5
10410echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10179echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10411if test "${rxvt_cv_struct_utmp+set}" = set; then 10180if test "${struct_utmp+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6 10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else 10182else
10414 cat >conftest.$ac_ext <<_ACEOF 10183 cat >conftest.$ac_ext <<_ACEOF
10415/* confdefs.h. */ 10184/* confdefs.h. */
10416_ACEOF 10185_ACEOF
10417cat confdefs.h >>conftest.$ac_ext 10186cat confdefs.h >>conftest.$ac_ext
10418cat >>conftest.$ac_ext <<_ACEOF 10187cat >>conftest.$ac_ext <<_ACEOF
10419/* end confdefs.h. */ 10188/* end confdefs.h. */
10420#include <sys/types.h> 10189#include <sys/types.h>
10421#include <stdint.h>
10422#include <utmp.h> 10190#include <utmp.h>
10423int 10191int
10424main () 10192main ()
10425{ 10193{
10426struct utmp ut; 10194struct utmp ut;
10435 grep -v '^ *+' conftest.er1 >conftest.err 10203 grep -v '^ *+' conftest.er1 >conftest.err
10436 rm -f conftest.er1 10204 rm -f conftest.er1
10437 cat conftest.err >&5 10205 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } && 10207 (exit $ac_status); } &&
10440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10208 { ac_try='test -z "$ac_cxx_werror_flag"
10209 || test ! -s conftest.err'
10441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442 (eval $ac_try) 2>&5 10211 (eval $ac_try) 2>&5
10443 ac_status=$? 10212 ac_status=$?
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); }; } && 10214 (exit $ac_status); }; } &&
10447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448 (eval $ac_try) 2>&5 10217 (eval $ac_try) 2>&5
10449 ac_status=$? 10218 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then 10220 (exit $ac_status); }; }; then
10452 rxvt_cv_struct_utmp=yes 10221 struct_utmp=yes
10453else 10222else
10454 echo "$as_me: failed program was:" >&5 10223 echo "$as_me: failed program was:" >&5
10455sed 's/^/| /' conftest.$ac_ext >&5 10224sed 's/^/| /' conftest.$ac_ext >&5
10456 10225
10457rxvt_cv_struct_utmp=no 10226struct_utmp=no
10458fi 10227fi
10459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10460fi 10229fi
10461echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10230echo "$as_me:$LINENO: result: $struct_utmp" >&5
10462echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10231echo "${ECHO_T}$struct_utmp" >&6
10463if test x$rxvt_cv_struct_utmp = xyes; then 10232if test x$struct_utmp = xyes; then
10464 10233
10465cat >>confdefs.h <<\_ACEOF 10234cat >>confdefs.h <<\_ACEOF
10466#define HAVE_STRUCT_UTMP 1 10235#define HAVE_STRUCT_UTMP 1
10467_ACEOF 10236_ACEOF
10468 10237
10469fi 10238fi
10470 10239
10471 10240
10472echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10241echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10473echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10242echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10474if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10243if test "${struct_utmp_host+set}" = set; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6 10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10476else 10245else
10477 cat >conftest.$ac_ext <<_ACEOF 10246 cat >conftest.$ac_ext <<_ACEOF
10478/* confdefs.h. */ 10247/* confdefs.h. */
10479_ACEOF 10248_ACEOF
10497 grep -v '^ *+' conftest.er1 >conftest.err 10266 grep -v '^ *+' conftest.er1 >conftest.err
10498 rm -f conftest.er1 10267 rm -f conftest.er1
10499 cat conftest.err >&5 10268 cat conftest.err >&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } && 10270 (exit $ac_status); } &&
10502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10271 { ac_try='test -z "$ac_cxx_werror_flag"
10272 || test ! -s conftest.err'
10503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504 (eval $ac_try) 2>&5 10274 (eval $ac_try) 2>&5
10505 ac_status=$? 10275 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; } && 10277 (exit $ac_status); }; } &&
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5 10280 (eval $ac_try) 2>&5
10511 ac_status=$? 10281 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then 10283 (exit $ac_status); }; }; then
10514 rxvt_cv_struct_utmp_host=yes 10284 struct_utmp_host=yes
10515else 10285else
10516 echo "$as_me: failed program was:" >&5 10286 echo "$as_me: failed program was:" >&5
10517sed 's/^/| /' conftest.$ac_ext >&5 10287sed 's/^/| /' conftest.$ac_ext >&5
10518 10288
10519rxvt_cv_struct_utmp_host=no 10289struct_utmp_host=no
10520fi 10290fi
10521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10522fi 10292fi
10523echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10293echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10524echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10294echo "${ECHO_T}$struct_utmp_host" >&6
10525if test x$rxvt_cv_struct_utmp_host = xyes; then 10295if test x$struct_utmp_host = xyes; then
10526 10296
10527cat >>confdefs.h <<\_ACEOF 10297cat >>confdefs.h <<\_ACEOF
10528#define HAVE_UTMP_HOST 1 10298#define HAVE_UTMP_HOST 1
10529_ACEOF 10299_ACEOF
10530 10300
10531fi 10301fi
10532 10302
10533echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10303echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10534echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10304echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
10535if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10305if test "${struct_utmp_pid+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6 10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10537else 10307else
10538 cat >conftest.$ac_ext <<_ACEOF 10308 cat >conftest.$ac_ext <<_ACEOF
10539/* confdefs.h. */ 10309/* confdefs.h. */
10540_ACEOF 10310_ACEOF
10558 grep -v '^ *+' conftest.er1 >conftest.err 10328 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1 10329 rm -f conftest.er1
10560 cat conftest.err >&5 10330 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && 10332 (exit $ac_status); } &&
10563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10333 { ac_try='test -z "$ac_cxx_werror_flag"
10334 || test ! -s conftest.err'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5 10336 (eval $ac_try) 2>&5
10566 ac_status=$? 10337 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } && 10339 (exit $ac_status); }; } &&
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5 10342 (eval $ac_try) 2>&5
10572 ac_status=$? 10343 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then 10345 (exit $ac_status); }; }; then
10575 rxvt_cv_struct_utmp_pid=yes 10346 struct_utmp_pid=yes
10576else 10347else
10577 echo "$as_me: failed program was:" >&5 10348 echo "$as_me: failed program was:" >&5
10578sed 's/^/| /' conftest.$ac_ext >&5 10349sed 's/^/| /' conftest.$ac_ext >&5
10579 10350
10580rxvt_cv_struct_utmp_pid=no 10351struct_utmp_pid=no
10581fi 10352fi
10582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10583fi 10354fi
10584echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10355echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10585echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10356echo "${ECHO_T}$struct_utmp_pid" >&6
10586if test x$rxvt_cv_struct_utmp_pid = xyes; then 10357if test x$struct_utmp_pid = xyes; then
10587 10358
10588cat >>confdefs.h <<\_ACEOF 10359cat >>confdefs.h <<\_ACEOF
10589#define HAVE_UTMP_PID 1 10360#define HAVE_UTMP_PID 1
10590_ACEOF 10361_ACEOF
10591 10362
10623 grep -v '^ *+' conftest.er1 >conftest.err 10394 grep -v '^ *+' conftest.er1 >conftest.err
10624 rm -f conftest.er1 10395 rm -f conftest.er1
10625 cat conftest.err >&5 10396 cat conftest.err >&5
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); } && 10398 (exit $ac_status); } &&
10628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10399 { ac_try='test -z "$ac_cxx_werror_flag"
10400 || test ! -s conftest.err'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5 10402 (eval $ac_try) 2>&5
10631 ac_status=$? 10403 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } && 10405 (exit $ac_status); }; } &&
10732 10504
10733fi 10505fi
10734if test $ac_cv_header_utmpx_h = yes; then 10506if test $ac_cv_header_utmpx_h = yes; then
10735 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10507 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10736echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10508echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10737if test "${rxvt_cv_struct_utmpx+set}" = set; then 10509if test "${struct_utmpx+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6 10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else 10511else
10740 cat >conftest.$ac_ext <<_ACEOF 10512 cat >conftest.$ac_ext <<_ACEOF
10741/* confdefs.h. */ 10513/* confdefs.h. */
10742_ACEOF 10514_ACEOF
10760 grep -v '^ *+' conftest.er1 >conftest.err 10532 grep -v '^ *+' conftest.er1 >conftest.err
10761 rm -f conftest.er1 10533 rm -f conftest.er1
10762 cat conftest.err >&5 10534 cat conftest.err >&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } && 10536 (exit $ac_status); } &&
10765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10537 { ac_try='test -z "$ac_cxx_werror_flag"
10538 || test ! -s conftest.err'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5 10540 (eval $ac_try) 2>&5
10768 ac_status=$? 10541 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; } && 10543 (exit $ac_status); }; } &&
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5 10546 (eval $ac_try) 2>&5
10774 ac_status=$? 10547 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; }; then 10549 (exit $ac_status); }; }; then
10777 rxvt_cv_struct_utmpx=yes 10550 struct_utmpx=yes
10778else 10551else
10779 echo "$as_me: failed program was:" >&5 10552 echo "$as_me: failed program was:" >&5
10780sed 's/^/| /' conftest.$ac_ext >&5 10553sed 's/^/| /' conftest.$ac_ext >&5
10781 10554
10782rxvt_cv_struct_utmpx=no 10555struct_utmpx=no
10783fi 10556fi
10784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10785fi 10558fi
10786echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10559echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10787echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10560echo "${ECHO_T}$struct_utmpx" >&6
10788if test x$rxvt_cv_struct_utmpx = xyes; then 10561if test x$struct_utmpx = xyes; then
10789 10562
10790cat >>confdefs.h <<\_ACEOF 10563cat >>confdefs.h <<\_ACEOF
10791#define HAVE_STRUCT_UTMPX 1 10564#define HAVE_STRUCT_UTMPX 1
10792_ACEOF 10565_ACEOF
10793 10566
10794fi 10567fi
10795 10568
10796 10569
10797echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10570echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
10798echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10571echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
10799if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10572if test "${struct_utmpx_host+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6 10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10801else 10574else
10802 cat >conftest.$ac_ext <<_ACEOF 10575 cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h. */ 10576/* confdefs.h. */
10804_ACEOF 10577_ACEOF
10822 grep -v '^ *+' conftest.er1 >conftest.err 10595 grep -v '^ *+' conftest.er1 >conftest.err
10823 rm -f conftest.er1 10596 rm -f conftest.er1
10824 cat conftest.err >&5 10597 cat conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); } && 10599 (exit $ac_status); } &&
10827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10600 { ac_try='test -z "$ac_cxx_werror_flag"
10601 || test ! -s conftest.err'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5 10603 (eval $ac_try) 2>&5
10830 ac_status=$? 10604 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } && 10606 (exit $ac_status); }; } &&
10834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10835 (eval $ac_try) 2>&5 10609 (eval $ac_try) 2>&5
10836 ac_status=$? 10610 ac_status=$?
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); }; }; then 10612 (exit $ac_status); }; }; then
10839 rxvt_cv_struct_utmpx_host=yes 10613 struct_utmpx_host=yes
10840else 10614else
10841 echo "$as_me: failed program was:" >&5 10615 echo "$as_me: failed program was:" >&5
10842sed 's/^/| /' conftest.$ac_ext >&5 10616sed 's/^/| /' conftest.$ac_ext >&5
10843 10617
10844rxvt_cv_struct_utmpx_host=no 10618struct_utmpx_host=no
10845fi 10619fi
10846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10847fi 10621fi
10848echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10622echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10849echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10623echo "${ECHO_T}$struct_utmpx_host" >&6
10850if test x$rxvt_cv_struct_utmpx_host = xyes; then 10624if test x$struct_utmpx_host = xyes; then
10851 10625
10852cat >>confdefs.h <<\_ACEOF 10626cat >>confdefs.h <<\_ACEOF
10853#define HAVE_UTMPX_HOST 1 10627#define HAVE_UTMPX_HOST 1
10854_ACEOF 10628_ACEOF
10855 10629
10856fi 10630fi
10857 10631
10858echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 10632echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10859echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 10633echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10860if test "${rxvt_cv_struct_utmpx_session+set}" = set; then 10634if test "${struct_utmpx_session+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6 10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10862else 10636else
10863 cat >conftest.$ac_ext <<_ACEOF 10637 cat >conftest.$ac_ext <<_ACEOF
10864/* confdefs.h. */ 10638/* confdefs.h. */
10865_ACEOF 10639_ACEOF
10883 grep -v '^ *+' conftest.er1 >conftest.err 10657 grep -v '^ *+' conftest.er1 >conftest.err
10884 rm -f conftest.er1 10658 rm -f conftest.er1
10885 cat conftest.err >&5 10659 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } && 10661 (exit $ac_status); } &&
10888 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10662 { ac_try='test -z "$ac_cxx_werror_flag"
10663 || test ! -s conftest.err'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5 10665 (eval $ac_try) 2>&5
10891 ac_status=$? 10666 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } && 10668 (exit $ac_status); }; } &&
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5 10671 (eval $ac_try) 2>&5
10897 ac_status=$? 10672 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then 10674 (exit $ac_status); }; }; then
10900 rxvt_cv_struct_utmpx_session=yes 10675 struct_utmpx_session=yes
10901else 10676else
10902 echo "$as_me: failed program was:" >&5 10677 echo "$as_me: failed program was:" >&5
10903sed 's/^/| /' conftest.$ac_ext >&5 10678sed 's/^/| /' conftest.$ac_ext >&5
10904 10679
10905rxvt_cv_struct_utmpx_session=no 10680struct_utmpx_session=no
10906fi 10681fi
10907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10908fi 10683fi
10909echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 10684echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10910echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 10685echo "${ECHO_T}$struct_utmpx_session" >&6
10911if test x$rxvt_cv_struct_utmpx_session = xyes; then 10686if test x$struct_utmpx_session = xyes; then
10912 10687
10913cat >>confdefs.h <<\_ACEOF 10688cat >>confdefs.h <<\_ACEOF
10914#define HAVE_UTMPX_SESSION 1 10689#define HAVE_UTMPX_SESSION 1
10915_ACEOF 10690_ACEOF
10916 10691
10919fi 10694fi
10920 10695
10921 10696
10922echo "$as_me:$LINENO: checking for struct lastlog" >&5 10697echo "$as_me:$LINENO: checking for struct lastlog" >&5
10923echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10698echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10924if test "${rxvt_cv_struct_lastlog+set}" = set; then 10699if test "${struct_lastlog+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6 10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10926else 10701else
10927 cat >conftest.$ac_ext <<_ACEOF 10702 cat >conftest.$ac_ext <<_ACEOF
10928/* confdefs.h. */ 10703/* confdefs.h. */
10929_ACEOF 10704_ACEOF
10951 grep -v '^ *+' conftest.er1 >conftest.err 10726 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1 10727 rm -f conftest.er1
10953 cat conftest.err >&5 10728 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && 10730 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10731 { ac_try='test -z "$ac_cxx_werror_flag"
10732 || test ! -s conftest.err'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5 10734 (eval $ac_try) 2>&5
10959 ac_status=$? 10735 ac_status=$?
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } && 10737 (exit $ac_status); }; } &&
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5 10740 (eval $ac_try) 2>&5
10965 ac_status=$? 10741 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then 10743 (exit $ac_status); }; }; then
10968 rxvt_cv_struct_lastlog=yes 10744 struct_lastlog=yes
10969else 10745else
10970 echo "$as_me: failed program was:" >&5 10746 echo "$as_me: failed program was:" >&5
10971sed 's/^/| /' conftest.$ac_ext >&5 10747sed 's/^/| /' conftest.$ac_ext >&5
10972 10748
10973rxvt_cv_struct_lastlog=no 10749struct_lastlog=no
10974fi 10750fi
10975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10976fi 10752fi
10977echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 10753echo "$as_me:$LINENO: result: $struct_lastlog" >&5
10978echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 10754echo "${ECHO_T}$struct_lastlog" >&6
10979if test x$rxvt_cv_struct_lastlog = xyes; then 10755if test x$struct_lastlog = xyes; then
10980 10756
10981cat >>confdefs.h <<\_ACEOF 10757cat >>confdefs.h <<\_ACEOF
10982#define HAVE_STRUCT_LASTLOG 1 10758#define HAVE_STRUCT_LASTLOG 1
10983_ACEOF 10759_ACEOF
10984 10760
10985fi 10761fi
10986 10762
10987echo "$as_me:$LINENO: checking for struct lastlogx" >&5 10763echo "$as_me:$LINENO: checking for struct lastlogx" >&5
10988echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 10764echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
10989if test "${rxvt_cv_struct_lastlogx+set}" = set; then 10765if test "${struct_lastlogx+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6 10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10991else 10767else
10992 cat >conftest.$ac_ext <<_ACEOF 10768 cat >conftest.$ac_ext <<_ACEOF
10993/* confdefs.h. */ 10769/* confdefs.h. */
10994_ACEOF 10770_ACEOF
11016 grep -v '^ *+' conftest.er1 >conftest.err 10792 grep -v '^ *+' conftest.er1 >conftest.err
11017 rm -f conftest.er1 10793 rm -f conftest.er1
11018 cat conftest.err >&5 10794 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } && 10796 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10797 { ac_try='test -z "$ac_cxx_werror_flag"
10798 || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5 10800 (eval $ac_try) 2>&5
11024 ac_status=$? 10801 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } && 10803 (exit $ac_status); }; } &&
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5 10806 (eval $ac_try) 2>&5
11030 ac_status=$? 10807 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then 10809 (exit $ac_status); }; }; then
11033 rxvt_cv_struct_lastlogx=yes 10810 struct_lastlogx=yes
11034else 10811else
11035 echo "$as_me: failed program was:" >&5 10812 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5 10813sed 's/^/| /' conftest.$ac_ext >&5
11037 10814
11038rxvt_cv_struct_lastlogx=no 10815struct_lastlogx=no
11039fi 10816fi
11040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11041fi 10818fi
11042echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 10819echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
11043echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 10820echo "${ECHO_T}$struct_lastlogx" >&6
11044if test x$rxvt_cv_struct_lastlogx = xyes; then 10821if test x$struct_lastlogx = xyes; then
11045 10822
11046cat >>confdefs.h <<\_ACEOF 10823cat >>confdefs.h <<\_ACEOF
11047#define HAVE_STRUCT_LASTLOGX 1 10824#define HAVE_STRUCT_LASTLOGX 1
11048_ACEOF 10825_ACEOF
11049 10826
11050fi 10827fi
11051 10828
11052 10829
11053echo "$as_me:$LINENO: checking where utmp is located" >&5 10830echo "$as_me:$LINENO: checking where utmp is located" >&5
11054echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 10831echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
11055if test "${rxvt_cv_path_utmp+set}" = set; then 10832if test "${path_utmp+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6 10833 echo $ECHO_N "(cached) $ECHO_C" >&6
11057else 10834else
11058 if test "$cross_compiling" = yes; then 10835 if test "$cross_compiling" = yes; then
11059 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 10836 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
11060echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 10837echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
11061else 10838else
11062 cat >conftest.$ac_ext <<_ACEOF 10839 cat >conftest.$ac_ext <<_ACEOF
11063/* confdefs.h. */ 10840/* confdefs.h. */
11064_ACEOF 10841_ACEOF
11065cat confdefs.h >>conftest.$ac_ext 10842cat confdefs.h >>conftest.$ac_ext
11066cat >>conftest.$ac_ext <<_ACEOF 10843cat >>conftest.$ac_ext <<_ACEOF
11067/* end confdefs.h. */ 10844/* end confdefs.h. */
11068#include <stdio.h> 10845#include <stdio.h>
10846#include <stdlib.h>
11069#include <sys/types.h> 10847#include <sys/types.h>
11070#include <utmp.h> 10848#include <utmp.h>
11071#include <errno.h> 10849#include <errno.h>
11072main() 10850main()
11073{ 10851{
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5 10880 (eval $ac_try) 2>&5
11103 ac_status=$? 10881 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then 10883 (exit $ac_status); }; }; then
11106 rxvt_cv_path_utmp=`cat conftestval` 10884 path_utmp=`cat conftestval`
11107else 10885else
11108 echo "$as_me: program exited with status $ac_status" >&5 10886 echo "$as_me: program exited with status $ac_status" >&5
11109echo "$as_me: failed program was:" >&5 10887echo "$as_me: failed program was:" >&5
11110sed 's/^/| /' conftest.$ac_ext >&5 10888sed 's/^/| /' conftest.$ac_ext >&5
11111 10889
11112( exit $ac_status ) 10890( exit $ac_status )
11113rxvt_cv_path_utmp= 10891path_utmp=
11114fi 10892fi
11115rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11116fi 10894fi
11117fi 10895fi
11118echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 10896echo "$as_me:$LINENO: result: $path_utmp" >&5
11119echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 10897echo "${ECHO_T}$path_utmp" >&6
11120if test x$rxvt_cv_path_utmp != x; then 10898if test x$path_utmp != x; then
11121 10899
11122cat >>confdefs.h <<_ACEOF 10900cat >>confdefs.h <<_ACEOF
11123#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 10901#define UTMP_FILE "$path_utmp"
11124_ACEOF 10902_ACEOF
11125 10903
11126fi 10904fi
11127 10905
11128 10906
11129echo "$as_me:$LINENO: checking where utmpx is located" >&5 10907echo "$as_me:$LINENO: checking where utmpx is located" >&5
11130echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 10908echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11131if test "${rxvt_cv_path_utmpx+set}" = set; then 10909if test "${path_utmpx+set}" = set; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6 10910 echo $ECHO_N "(cached) $ECHO_C" >&6
11133else 10911else
11134 if test "$cross_compiling" = yes; then 10912 if test "$cross_compiling" = yes; then
11135 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 10913 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
11136echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 10914echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
11137else 10915else
11138 cat >conftest.$ac_ext <<_ACEOF 10916 cat >conftest.$ac_ext <<_ACEOF
11139/* confdefs.h. */ 10917/* confdefs.h. */
11140_ACEOF 10918_ACEOF
11141cat confdefs.h >>conftest.$ac_ext 10919cat confdefs.h >>conftest.$ac_ext
11142cat >>conftest.$ac_ext <<_ACEOF 10920cat >>conftest.$ac_ext <<_ACEOF
11143/* end confdefs.h. */ 10921/* end confdefs.h. */
11144#include <stdio.h> 10922#include <stdio.h>
10923#include <stdlib.h>
11145#include <sys/types.h> 10924#include <sys/types.h>
11146#include <utmpx.h> 10925#include <utmpx.h>
11147#include <errno.h> 10926#include <errno.h>
11148#include <sys/stat.h> 10927#include <sys/stat.h>
11149#ifdef HAVE_STRING_H 10928#ifdef HAVE_STRING_H
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5 10967 (eval $ac_try) 2>&5
11189 ac_status=$? 10968 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then 10970 (exit $ac_status); }; }; then
11192 rxvt_cv_path_utmpx=`cat conftestval` 10971 path_utmpx=`cat conftestval`
11193else 10972else
11194 echo "$as_me: program exited with status $ac_status" >&5 10973 echo "$as_me: program exited with status $ac_status" >&5
11195echo "$as_me: failed program was:" >&5 10974echo "$as_me: failed program was:" >&5
11196sed 's/^/| /' conftest.$ac_ext >&5 10975sed 's/^/| /' conftest.$ac_ext >&5
11197 10976
11198( exit $ac_status ) 10977( exit $ac_status )
11199rxvt_cv_path_utmpx= 10978path_utmpx=
11200fi 10979fi
11201rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10980rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11202fi 10981fi
11203fi 10982fi
11204echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 10983echo "$as_me:$LINENO: result: $path_utmpx" >&5
11205echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 10984echo "${ECHO_T}$path_utmpx" >&6
11206if test x$rxvt_cv_path_utmpx != x; then 10985if test x$path_utmpx != x; then
11207 10986
11208cat >>confdefs.h <<_ACEOF 10987cat >>confdefs.h <<_ACEOF
11209#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 10988#define UTMPX_FILE "$path_utmpx"
11210_ACEOF 10989_ACEOF
11211 10990
11212fi 10991fi
11213 10992
11214 10993
11215echo "$as_me:$LINENO: checking where wtmp is located" >&5 10994echo "$as_me:$LINENO: checking where wtmp is located" >&5
11216echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 10995echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11217if test "${rxvt_cv_path_wtmp+set}" = set; then 10996if test "${path_wtmp+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6 10997 echo $ECHO_N "(cached) $ECHO_C" >&6
11219else 10998else
11220 if test "$cross_compiling" = yes; then 10999 if test "$cross_compiling" = yes; then
11221 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11000 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
11222echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11001echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
11223else 11002else
11224 cat >conftest.$ac_ext <<_ACEOF 11003 cat >conftest.$ac_ext <<_ACEOF
11225/* confdefs.h. */ 11004/* confdefs.h. */
11226_ACEOF 11005_ACEOF
11227cat confdefs.h >>conftest.$ac_ext 11006cat confdefs.h >>conftest.$ac_ext
11228cat >>conftest.$ac_ext <<_ACEOF 11007cat >>conftest.$ac_ext <<_ACEOF
11229/* end confdefs.h. */ 11008/* end confdefs.h. */
11230#include <stdio.h> 11009#include <stdio.h>
11010#include <stdlib.h>
11231#include <sys/types.h> 11011#include <sys/types.h>
11232#ifdef HAVE_UTMP_H 11012#ifdef HAVE_UTMP_H
11233#include <utmp.h> 11013#include <utmp.h>
11234#endif 11014#endif
11235#include <errno.h> 11015#include <errno.h>
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5 11046 (eval $ac_try) 2>&5
11267 ac_status=$? 11047 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; }; then 11049 (exit $ac_status); }; }; then
11270 rxvt_cv_path_wtmp=`cat conftestval` 11050 path_wtmp=`cat conftestval`
11271else 11051else
11272 echo "$as_me: program exited with status $ac_status" >&5 11052 echo "$as_me: program exited with status $ac_status" >&5
11273echo "$as_me: failed program was:" >&5 11053echo "$as_me: failed program was:" >&5
11274sed 's/^/| /' conftest.$ac_ext >&5 11054sed 's/^/| /' conftest.$ac_ext >&5
11275 11055
11276( exit $ac_status ) 11056( exit $ac_status )
11277rxvt_cv_path_wtmp= 11057path_wtmp=
11278fi 11058fi
11279rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11059rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11280fi 11060fi
11281fi 11061fi
11282echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11062echo "$as_me:$LINENO: result: $path_wtmp" >&5
11283echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11063echo "${ECHO_T}$path_wtmp" >&6
11284if test x$rxvt_cv_path_wtmp != x; then 11064if test x$path_wtmp != x; then
11285 11065
11286cat >>confdefs.h <<_ACEOF 11066cat >>confdefs.h <<_ACEOF
11287#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11067#define WTMP_FILE "$path_wtmp"
11288_ACEOF 11068_ACEOF
11289 11069
11290fi 11070fi
11291 11071
11292echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11072echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11293echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11073echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11294if test "${rxvt_cv_path_wtmpx+set}" = set; then 11074if test "${path_wtmpx+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6 11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11296else 11076else
11297 if test "$cross_compiling" = yes; then 11077 if test "$cross_compiling" = yes; then
11298 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11078 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
11299echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11079echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
11300else 11080else
11301 cat >conftest.$ac_ext <<_ACEOF 11081 cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */ 11082/* confdefs.h. */
11303_ACEOF 11083_ACEOF
11304cat confdefs.h >>conftest.$ac_ext 11084cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF 11085cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */ 11086/* end confdefs.h. */
11307#include <stdio.h> 11087#include <stdio.h>
11088#include <stdlib.h>
11308#ifdef HAVE_UTMPX_H 11089#ifdef HAVE_UTMPX_H
11309#include <utmpx.h> 11090#include <utmpx.h>
11310#endif 11091#endif
11311#include <errno.h> 11092#include <errno.h>
11312main() 11093main()
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5 11123 (eval $ac_try) 2>&5
11343 ac_status=$? 11124 ac_status=$?
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then 11126 (exit $ac_status); }; }; then
11346 rxvt_cv_path_wtmpx=`cat conftestval` 11127 path_wtmpx=`cat conftestval`
11347else 11128else
11348 echo "$as_me: program exited with status $ac_status" >&5 11129 echo "$as_me: program exited with status $ac_status" >&5
11349echo "$as_me: failed program was:" >&5 11130echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5 11131sed 's/^/| /' conftest.$ac_ext >&5
11351 11132
11352( exit $ac_status ) 11133( exit $ac_status )
11353rxvt_cv_path_wtmpx= 11134path_wtmpx=
11354fi 11135fi
11355rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11356fi 11137fi
11357fi 11138fi
11358echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11139echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11359echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11140echo "${ECHO_T}$path_wtmpx" >&6
11360if test x$rxvt_cv_path_wtmpx != x; then 11141if test x$path_wtmpx != x; then
11361 11142
11362cat >>confdefs.h <<_ACEOF 11143cat >>confdefs.h <<_ACEOF
11363#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11144#define WTMPX_FILE "$path_wtmpx"
11364_ACEOF 11145_ACEOF
11365 11146
11366fi 11147fi
11367 11148
11368echo "$as_me:$LINENO: checking where lastlog is located" >&5 11149echo "$as_me:$LINENO: checking where lastlog is located" >&5
11369echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11150echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11370if test "${rxvt_cv_path_lastlog+set}" = set; then 11151if test "${path_lastlog+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6 11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11372else 11153else
11373 if test "$cross_compiling" = yes; then 11154 if test "$cross_compiling" = yes; then
11374 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11155 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
11375echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11156echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
11376else 11157else
11377 cat >conftest.$ac_ext <<_ACEOF 11158 cat >conftest.$ac_ext <<_ACEOF
11378/* confdefs.h. */ 11159/* confdefs.h. */
11379_ACEOF 11160_ACEOF
11380cat confdefs.h >>conftest.$ac_ext 11161cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF 11162cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */ 11163/* end confdefs.h. */
11383#include <stdio.h> 11164#include <stdio.h>
11165#include <stdlib.h>
11384#include <sys/types.h> 11166#include <sys/types.h>
11385#ifdef HAVE_UTMPX_H 11167#ifdef HAVE_UTMPX_H
11386#include <utmpx.h> 11168#include <utmpx.h>
11387#elif defined(HAVE_UTMP_H) 11169#elif defined(HAVE_UTMP_H)
11388#include <utmp.h> 11170#include <utmp.h>
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5 11205 (eval $ac_try) 2>&5
11424 ac_status=$? 11206 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then 11208 (exit $ac_status); }; }; then
11427 rxvt_cv_path_lastlog=`cat conftestval` 11209 path_lastlog=`cat conftestval`
11428else 11210else
11429 echo "$as_me: program exited with status $ac_status" >&5 11211 echo "$as_me: program exited with status $ac_status" >&5
11430echo "$as_me: failed program was:" >&5 11212echo "$as_me: failed program was:" >&5
11431sed 's/^/| /' conftest.$ac_ext >&5 11213sed 's/^/| /' conftest.$ac_ext >&5
11432 11214
11433( exit $ac_status ) 11215( exit $ac_status )
11434rxvt_cv_path_lastlog= 11216path_lastlog=
11435fi 11217fi
11436rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11437fi 11219fi
11438fi 11220fi
11439echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11221echo "$as_me:$LINENO: result: $path_lastlog" >&5
11440echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11222echo "${ECHO_T}$path_lastlog" >&6
11441if test x$rxvt_cv_path_lastlog != x; then 11223if test x$path_lastlog != x; then
11442 11224
11443cat >>confdefs.h <<_ACEOF 11225cat >>confdefs.h <<_ACEOF
11444#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11226#define LASTLOG_FILE "$path_lastlog"
11445_ACEOF 11227_ACEOF
11446 11228
11447 if test -d "$rxvt_cv_path_lastlog"; then 11229 if test -d "$path_lastlog"; then
11448 11230
11449cat >>confdefs.h <<\_ACEOF 11231cat >>confdefs.h <<\_ACEOF
11450#define LASTLOG_IS_DIR 1 11232#define LASTLOG_IS_DIR 1
11451_ACEOF 11233_ACEOF
11452 11234
11453 fi 11235 fi
11454fi 11236fi
11455 11237
11456echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11238echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11457echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11239echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11458if test "${rxvt_cv_path_lastlogx+set}" = set; then 11240if test "${path_lastlogx+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6 11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11460else 11242else
11461 if test "$cross_compiling" = yes; then 11243 if test "$cross_compiling" = yes; then
11462 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11244 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
11463echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11245echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
11464else 11246else
11465 cat >conftest.$ac_ext <<_ACEOF 11247 cat >conftest.$ac_ext <<_ACEOF
11466/* confdefs.h. */ 11248/* confdefs.h. */
11467_ACEOF 11249_ACEOF
11468cat confdefs.h >>conftest.$ac_ext 11250cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF 11251cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */ 11252/* end confdefs.h. */
11471#include <stdio.h> 11253#include <stdio.h>
11254#include <stdlib.h>
11472#ifdef HAVE_UTMPX_H 11255#ifdef HAVE_UTMPX_H
11473#include <utmpx.h> 11256#include <utmpx.h>
11474#endif 11257#endif
11475#include <errno.h> 11258#include <errno.h>
11476main() 11259main()
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5 11288 (eval $ac_try) 2>&5
11506 ac_status=$? 11289 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then 11291 (exit $ac_status); }; }; then
11509 rxvt_cv_path_lastlogx=`cat conftestval` 11292 path_lastlogx=`cat conftestval`
11510else 11293else
11511 echo "$as_me: program exited with status $ac_status" >&5 11294 echo "$as_me: program exited with status $ac_status" >&5
11512echo "$as_me: failed program was:" >&5 11295echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5 11296sed 's/^/| /' conftest.$ac_ext >&5
11514 11297
11515( exit $ac_status ) 11298( exit $ac_status )
11516rxvt_cv_path_lastlogx= 11299path_lastlogx=
11517fi 11300fi
11518rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11301rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11519fi 11302fi
11520fi 11303fi
11521echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11304echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11522echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11305echo "${ECHO_T}$path_lastlogx" >&6
11523if test x$rxvt_cv_path_lastlogx != x; then 11306if test x$path_lastlogx != x; then
11524 11307
11525cat >>confdefs.h <<_ACEOF 11308cat >>confdefs.h <<_ACEOF
11526#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11309#define LASTLOGX_FILE "$path_lastlogx"
11527_ACEOF 11310_ACEOF
11528 11311
11529fi 11312fi
11313
11530 11314
11531 11315
11532echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11316echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11533echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11317echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11534if test "${rxvt_cv_path_ttytab+set}" = set; then 11318if test "${rxvt_cv_path_ttytab+set}" = set; then
11556 11340
11557ac_save_LIBS=$LIBS 11341ac_save_LIBS=$LIBS
11558ac_save_CFLAGS=$CFLAGS 11342ac_save_CFLAGS=$CFLAGS
11559CFLAGS="$CFLAGS $X_CFLAGS" 11343CFLAGS="$CFLAGS $X_CFLAGS"
11560LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 11344LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11561if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11562 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11563fi
11564echo "$as_me:$LINENO: checking for working Xlocale" >&5 11345echo "$as_me:$LINENO: checking for working Xlocale" >&5
11565echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6 11346echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11566if test "${rxvt_cv_func_xlocale+set}" = set; then 11347if test "${rxvt_cv_func_xlocale+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6 11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11568else 11349else
11569 if test "$cross_compiling" = yes; then 11350 if test "$cross_compiling" = yes; then
11570 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 11351 :
11571echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11572else 11352else
11573 cat >conftest.$ac_ext <<_ACEOF 11353 cat >conftest.$ac_ext <<_ACEOF
11574/* confdefs.h. */ 11354/* confdefs.h. */
11575_ACEOF 11355_ACEOF
11576cat confdefs.h >>conftest.$ac_ext 11356cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF 11357cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */ 11358/* end confdefs.h. */
11579#include <X11/Xlib.h> 11359#include <X11/Xlib.h>
11360#include <stdlib.h>
11580main() { 11361main() {
11581char *p; 11362char *p;
11582if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 11363if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11583exit (XSupportsLocale() ? 0 : 1); 11364exit (XSupportsLocale() ? 0 : 1);
11584else 11365else
11607rm -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
11608fi 11389fi
11609fi 11390fi
11610echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 11391echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11611echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6 11392echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11393if test x$support_xim = xyes; then
11612if test x$rxvt_cv_func_xlocale = xyes; then 11394 if test x$rxvt_cv_func_xlocale = xyes; then
11613 11395
11614cat >>confdefs.h <<\_ACEOF 11396cat >>confdefs.h <<\_ACEOF
11615#define HAVE_XLOCALE 1 11397#define USE_XIM 1
11616_ACEOF 11398_ACEOF
11617 11399
11400 fi
11618fi 11401fi
11619 11402
11620echo "$as_me:$LINENO: checking for working X setlocale" >&5 11403echo "$as_me:$LINENO: checking for working X setlocale" >&5
11621echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6 11404echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6
11622if test "${rxvt_cv_func_xsetlocale+set}" = set; then 11405if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11645 grep -v '^ *+' conftest.er1 >conftest.err 11428 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1 11429 rm -f conftest.er1
11647 cat conftest.err >&5 11430 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && 11432 (exit $ac_status); } &&
11650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11433 { ac_try='test -z "$ac_cxx_werror_flag"
11434 || test ! -s conftest.err'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5 11436 (eval $ac_try) 2>&5
11653 ac_status=$? 11437 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } && 11439 (exit $ac_status); }; } &&
11708 grep -v '^ *+' conftest.er1 >conftest.err 11492 grep -v '^ *+' conftest.er1 >conftest.err
11709 rm -f conftest.er1 11493 rm -f conftest.er1
11710 cat conftest.err >&5 11494 cat conftest.err >&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && 11496 (exit $ac_status); } &&
11713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11497 { ac_try='test -z "$ac_cxx_werror_flag"
11498 || test ! -s conftest.err'
11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5 11500 (eval $ac_try) 2>&5
11716 ac_status=$? 11501 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; } && 11503 (exit $ac_status); }; } &&
11769 grep -v '^ *+' conftest.er1 >conftest.err 11554 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1 11555 rm -f conftest.er1
11771 cat conftest.err >&5 11556 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } && 11558 (exit $ac_status); } &&
11774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11559 { ac_try='test -z "$ac_cxx_werror_flag"
11560 || test ! -s conftest.err'
11775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11776 (eval $ac_try) 2>&5 11562 (eval $ac_try) 2>&5
11777 ac_status=$? 11563 ac_status=$?
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; } && 11565 (exit $ac_status); }; } &&
11801#define HAVE_NL_LANGINFO 1 11587#define HAVE_NL_LANGINFO 1
11802_ACEOF 11588_ACEOF
11803 11589
11804fi 11590fi
11805 11591
11592
11806echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 11593echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11807echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 11594echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11808if test "${rxvt_can_pass_fds+set}" = set; then 11595if test "${can_pass_fds+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6 11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11810else 11597else
11811 cat >conftest.$ac_ext <<_ACEOF 11598 cat >conftest.$ac_ext <<_ACEOF
11812/* confdefs.h. */ 11599/* confdefs.h. */
11813_ACEOF 11600_ACEOF
11814cat confdefs.h >>conftest.$ac_ext 11601cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF 11602cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */ 11603/* end confdefs.h. */
11817 11604
11605#include <cstddef> // broken bsds (is that redundant?) need this
11818#include <sys/types.h> 11606#include <sys/types.h>
11819#include <sys/socket.h> 11607#include <sys/socket.h>
11608#include <sys/uio.h>
11820 11609
11821int 11610int
11822main () 11611main ()
11823{ 11612{
11824 11613
11857 grep -v '^ *+' conftest.er1 >conftest.err 11646 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1 11647 rm -f conftest.er1
11859 cat conftest.err >&5 11648 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && 11650 (exit $ac_status); } &&
11862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11651 { ac_try='test -z "$ac_cxx_werror_flag"
11652 || test ! -s conftest.err'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5 11654 (eval $ac_try) 2>&5
11865 ac_status=$? 11655 ac_status=$?
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; } && 11657 (exit $ac_status); }; } &&
11869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5 11660 (eval $ac_try) 2>&5
11871 ac_status=$? 11661 ac_status=$?
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then 11663 (exit $ac_status); }; }; then
11874 rxvt_can_pass_fds=yes 11664 can_pass_fds=yes
11875else 11665else
11876 echo "$as_me: failed program was:" >&5 11666 echo "$as_me: failed program was:" >&5
11877sed 's/^/| /' conftest.$ac_ext >&5 11667sed 's/^/| /' conftest.$ac_ext >&5
11878 11668
11879rxvt_can_pass_fds=no 11669can_pass_fds=no
11880fi 11670fi
11881rm -f conftest.err conftest.$ac_objext \ 11671rm -f conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext 11672 conftest$ac_exeext conftest.$ac_ext
11883fi 11673fi
11884echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 11674echo "$as_me:$LINENO: result: $can_pass_fds" >&5
11885echo "${ECHO_T}$rxvt_can_pass_fds" >&6 11675echo "${ECHO_T}$can_pass_fds" >&6
11886if test x$rxvt_can_pass_fds = xyes; then 11676if test x$can_pass_fds = xyes; then
11887 11677
11888cat >>confdefs.h <<\_ACEOF 11678cat >>confdefs.h <<\_ACEOF
11889#define HAVE_UNIX_FDPASS 1 11679#define HAVE_UNIX_FDPASS 1
11890_ACEOF 11680_ACEOF
11891 11681
11892else 11682else
11893 { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5 11683 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
11894echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;} 11684echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
11895 { (exit 1); exit 1; }; } 11685 { (exit 1); exit 1; }; }
11896fi 11686fi
11687
11897 11688
11898echo "$as_me:$LINENO: checking for broken XIM callback" >&5 11689echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11899echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 11690echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11900if test "${rxvt_broken_ximcb+set}" = set; then 11691if test "${rxvt_broken_ximcb+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6 11692 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 grep -v '^ *+' conftest.er1 >conftest.err 11710 grep -v '^ *+' conftest.er1 >conftest.err
11920 rm -f conftest.er1 11711 rm -f conftest.er1
11921 cat conftest.err >&5 11712 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && 11714 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11715 { ac_try='test -z "$ac_cxx_werror_flag"
11716 || test ! -s conftest.err'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5 11718 (eval $ac_try) 2>&5
11927 ac_status=$? 11719 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } && 11721 (exit $ac_status); }; } &&
11951#define XIMCB_PROTO_BROKEN 1 11743#define XIMCB_PROTO_BROKEN 1
11952_ACEOF 11744_ACEOF
11953 11745
11954fi 11746fi
11955 11747
11956if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
11957 echo "$as_me:$LINENO: checking for openpty" >&5
11958echo $ECHO_N "checking for openpty... $ECHO_C" >&6
11959if test "${ac_cv_func_openpty+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 cat >conftest.$ac_ext <<_ACEOF
11963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
11968/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970#define openpty innocuous_openpty
11971 11748
11972/* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char openpty (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
11976 11749
11977#ifdef __STDC__
11978# include <limits.h>
11979#else
11980# include <assert.h>
11981#endif
11982 11750
11983#undef openpty
11984 11751
11985/* Override any gcc2 internal prototype to avoid an error. */
11986#ifdef __cplusplus
11987extern "C"
11988{
11989#endif
11990/* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11992char openpty ();
11993/* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996#if defined (__stub_openpty) || defined (__stub___openpty)
11997choke me
11998#else
11999char (*f) () = openpty;
12000#endif
12001#ifdef __cplusplus
12002}
12003#endif
12004 11752
12005int
12006main ()
12007{
12008return f != openpty;
12009 ;
12010 return 0;
12011}
12012_ACEOF
12013rm -f conftest.$ac_objext conftest$ac_exeext
12014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12015 (eval $ac_link) 2>conftest.er1
12016 ac_status=$?
12017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; } &&
12028 { ac_try='test -s conftest$ac_exeext'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 ac_cv_func_openpty=yes
12035else
12036 echo "$as_me: failed program was:" >&5
12037sed 's/^/| /' conftest.$ac_ext >&5
12038 11753
12039ac_cv_func_openpty=no 11754for ac_header in \
12040fi 11755 pty.h \
12041rm -f conftest.err conftest.$ac_objext \ 11756 util.h \
12042 conftest$ac_exeext conftest.$ac_ext 11757 libutil.h \
12043fi 11758 sys/ioctl.h \
12044echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 11759 sys/stropts.h \
12045echo "${ECHO_T}$ac_cv_func_openpty" >&6
12046if test $ac_cv_func_openpty = yes; then
12047 :
12048else
12049 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12050echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12051if test "${ac_cv_lib_util_openpty+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 ac_check_lib_save_LIBS=$LIBS
12055LIBS="-lutil $LIBS"
12056cat >conftest.$ac_ext <<_ACEOF
12057/* confdefs.h. */
12058_ACEOF
12059cat confdefs.h >>conftest.$ac_ext
12060cat >>conftest.$ac_ext <<_ACEOF
12061/* end confdefs.h. */
12062 11760
12063/* Override any gcc2 internal prototype to avoid an error. */
12064#ifdef __cplusplus
12065extern "C"
12066#endif
12067/* We use char because int might match the return type of a gcc2
12068 builtin and then its argument prototype would still apply. */
12069char openpty ();
12070int
12071main ()
12072{
12073openpty ();
12074 ;
12075 return 0;
12076}
12077_ACEOF
12078rm -f conftest.$ac_objext conftest$ac_exeext
12079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12080 (eval $ac_link) 2>conftest.er1
12081 ac_status=$?
12082 grep -v '^ *+' conftest.er1 >conftest.err
12083 rm -f conftest.er1
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_cv_lib_util_openpty=yes
12100else
12101 echo "$as_me: failed program was:" >&5
12102sed 's/^/| /' conftest.$ac_ext >&5
12103
12104ac_cv_lib_util_openpty=no
12105fi
12106rm -f conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
12108LIBS=$ac_check_lib_save_LIBS
12109fi
12110echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12111echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12112if test $ac_cv_lib_util_openpty = yes; then
12113 LIBS="$LIBS -lutil"
12114fi
12115
12116fi
12117
12118fi
12119
12120echo "$as_me:$LINENO: checking for pty/tty type" >&5
12121echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
12122if test "${rxvt_cv_ptys+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124else
12125 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
12126 rxvt_cv_ptys=OPENPTY
12127 else if test x$ac_cv_func_getpt = xyes; then
12128 rxvt_cv_ptys=GLIBC
12129 else if test x$ac_cv_func_posix_openpt = xyes; then
12130 rxvt_cv_ptys=POSIX
12131 else if test x$ac_cv_func__getpty = xyes; then
12132 rxvt_cv_ptys=SGI4
12133 else if test -c /dev/ttyp20; then
12134 rxvt_cv_ptys=SCO
12135 else if test -c /dev/ptym/clone; then
12136 rxvt_cv_ptys=HPUX
12137 else if test -c /dev/ptc -a -c /dev/pts; then
12138 rxvt_cv_ptys=PTC
12139 else if test -c /dev/ptc -a -d /dev/pts; then
12140 rxvt_cv_ptys=PTC
12141 else if test -c /dev/ptmx -a -c /dev/pts/0; then
12142 rxvt_cv_ptys=STREAMS
12143 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
12144 rxvt_cv_ptys=STREAMS
12145 else
12146 rxvt_cv_ptys=BSD
12147fi
12148fi
12149fi
12150fi
12151fi
12152fi
12153fi
12154fi
12155fi
12156fi
12157
12158fi
12159echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12160echo "${ECHO_T}$rxvt_cv_ptys" >&6
12161
12162if test x$rxvt_cv_ptys = xGLIBC; then
12163
12164cat >>confdefs.h <<\_ACEOF
12165#define PTYS_ARE_GETPT 1
12166_ACEOF
12167
12168fi
12169if test x$rxvt_cv_ptys = xPOSIX; then
12170
12171cat >>confdefs.h <<\_ACEOF
12172#define PTYS_ARE_POSIX 1
12173_ACEOF
12174
12175fi
12176if test x$rxvt_cv_ptys = xOPENPTY; then
12177
12178cat >>confdefs.h <<\_ACEOF
12179#define PTYS_ARE_OPENPTY 1
12180_ACEOF
12181
12182fi
12183if test x$rxvt_cv_ptys = xSCO; then
12184
12185cat >>confdefs.h <<\_ACEOF
12186#define PTYS_ARE_NUMERIC 1
12187_ACEOF
12188
12189fi
12190if test x$rxvt_cv_ptys = xSTREAMS; then
12191
12192cat >>confdefs.h <<\_ACEOF
12193#define PTYS_ARE_PTMX 1
12194_ACEOF
12195
12196fi
12197if test x$rxvt_cv_ptys = xPTC; then
12198
12199cat >>confdefs.h <<\_ACEOF
12200#define PTYS_ARE_PTC 1
12201_ACEOF
12202
12203fi
12204if test x$rxvt_cv_ptys = xSGI4; then
12205
12206cat >>confdefs.h <<\_ACEOF
12207#define PTYS_ARE__GETPTY 1
12208_ACEOF
12209
12210fi
12211if test x$rxvt_cv_ptys = xHPUX; then
12212
12213cat >>confdefs.h <<\_ACEOF
12214#define PTYS_ARE_CLONE 1
12215_ACEOF
12216
12217fi
12218if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12219
12220cat >>confdefs.h <<\_ACEOF
12221#define PTYS_ARE_SEARCHED 1
12222_ACEOF
12223
12224fi
12225
12226
12227{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
12228echo "$as_me: checking for pty ranges..." >&6;}
12229ptys=`echo /dev/pty??`
12230pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12231pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12232if test x$pch1 != x; then
12233
12234cat >>confdefs.h <<_ACEOF
12235#define PTYCHAR1 "$pch1"
12236_ACEOF
12237
12238fi
12239if test x$pch2 != x; then
12240
12241cat >>confdefs.h <<_ACEOF
12242#define PTYCHAR2 "$pch2"
12243_ACEOF
12244
12245fi
12246
12247if test x$support_xft = xyes; then
12248 LIBS="$LIBS `pkg-config xft --libs`"
12249 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12250
12251
12252for ac_header in X11/Xft/Xft.h
12253do 11761do
12254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12255if eval "test \"\${$as_ac_Header+set}\" = set"; then 11763if eval "test \"\${$as_ac_Header+set}\" = set"; then
12256 echo "$as_me:$LINENO: checking for $ac_header" >&5 11764 echo "$as_me:$LINENO: checking for $ac_header" >&5
12257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12280 grep -v '^ *+' conftest.er1 >conftest.err 11788 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1 11789 rm -f conftest.er1
12282 cat conftest.err >&5 11790 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } && 11792 (exit $ac_status); } &&
12285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11793 { ac_try='test -z "$ac_cxx_werror_flag"
11794 || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5 11796 (eval $ac_try) 2>&5
12288 ac_status=$? 11797 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } && 11799 (exit $ac_status); }; } &&
12391if test `eval echo '${'$as_ac_Header'}'` = yes; then 11900if test `eval echo '${'$as_ac_Header'}'` = yes; then
12392 cat >>confdefs.h <<_ACEOF 11901 cat >>confdefs.h <<_ACEOF
12393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12394_ACEOF 11903_ACEOF
12395 11904
11905fi
11906
11907done
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919for ac_func in \
11920 revoke \
11921 _getpty \
11922 getpt \
11923 posix_openpt \
11924 isastream \
11925 setuid \
11926 seteuid \
11927 setreuid \
11928 setresuid \
11929
11930do
11931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11932echo "$as_me:$LINENO: checking for $ac_func" >&5
11933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11934if eval "test \"\${$as_ac_var+set}\" = set"; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11936else
11937 cat >conftest.$ac_ext <<_ACEOF
11938/* confdefs.h. */
11939_ACEOF
11940cat confdefs.h >>conftest.$ac_ext
11941cat >>conftest.$ac_ext <<_ACEOF
11942/* end confdefs.h. */
11943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11945#define $ac_func innocuous_$ac_func
11946
11947/* System header to define __stub macros and hopefully few prototypes,
11948 which can conflict with char $ac_func (); below.
11949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11950 <limits.h> exists even on freestanding compilers. */
11951
11952#ifdef __STDC__
11953# include <limits.h>
11954#else
11955# include <assert.h>
11956#endif
11957
11958#undef $ac_func
11959
11960/* Override any gcc2 internal prototype to avoid an error. */
11961#ifdef __cplusplus
11962extern "C"
11963{
11964#endif
11965/* We use char because int might match the return type of a gcc2
11966 builtin and then its argument prototype would still apply. */
11967char $ac_func ();
11968/* The GNU C library defines this for functions which it implements
11969 to always fail with ENOSYS. Some functions are actually named
11970 something starting with __ and the normal name is an alias. */
11971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11972choke me
11973#else
11974char (*f) () = $ac_func;
11975#endif
11976#ifdef __cplusplus
11977}
11978#endif
11979
11980int
11981main ()
11982{
11983return f != $ac_func;
11984 ;
11985 return 0;
11986}
11987_ACEOF
11988rm -f conftest.$ac_objext conftest$ac_exeext
11989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11990 (eval $ac_link) 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -z "$ac_cxx_werror_flag"
11998 || test ! -s conftest.err'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest$ac_exeext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 eval "$as_ac_var=yes"
12011else
12012 echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
12015eval "$as_ac_var=no"
12016fi
12017rm -f conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext conftest.$ac_ext
12019fi
12020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12022if test `eval echo '${'$as_ac_var'}'` = yes; then
12023 cat >>confdefs.h <<_ACEOF
12024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12025_ACEOF
12026
12027fi
12028done
12029
12030
12031have_clone=no
12032
12033echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12034echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12035if test -e /dev/ptym/clone; then
12036 echo "$as_me:$LINENO: result: yes" >&5
12037echo "${ECHO_T}yes" >&6
12038
12039cat >>confdefs.h <<\_ACEOF
12040#define HAVE_DEV_CLONE 1
12041_ACEOF
12042
12043
12044cat >>confdefs.h <<\_ACEOF
12045#define CLONE_DEVICE "/dev/ptym/clone"
12046_ACEOF
12047
12048 have_clone=yes
12049else
12050 echo "$as_me:$LINENO: result: no" >&5
12051echo "${ECHO_T}no" >&6
12052fi
12053
12054echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12055echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12056if test -e /dev/ptc; then
12057 echo "$as_me:$LINENO: result: yes" >&5
12058echo "${ECHO_T}yes" >&6
12059
12060cat >>confdefs.h <<\_ACEOF
12061#define HAVE_DEV_PTC 1
12062_ACEOF
12063
12064
12065cat >>confdefs.h <<\_ACEOF
12066#define CLONE_DEVICE "/dev/ptc"
12067_ACEOF
12068
12069 have_clone=yes
12070else
12071 echo "$as_me:$LINENO: result: no" >&5
12072echo "${ECHO_T}no" >&6
12073fi
12074
12075case $host in
12076 *-*-cygwin*)
12077 have_clone=yes
12078
12079cat >>confdefs.h <<\_ACEOF
12080#define CLONE_DEVICE "/dev/ptmx"
12081_ACEOF
12082
12083 ;;
12084 *)
12085 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12086echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12087 if test -e /dev/ptmx; then
12088 echo "$as_me:$LINENO: result: yes" >&5
12089echo "${ECHO_T}yes" >&6
12090
12091cat >>confdefs.h <<\_ACEOF
12092#define HAVE_DEV_PTMX 1
12093_ACEOF
12094
12095
12096cat >>confdefs.h <<\_ACEOF
12097#define CLONE_DEVICE "/dev/ptmx"
12098_ACEOF
12099
12100 have_clone=yes
12101 else
12102 echo "$as_me:$LINENO: result: no" >&5
12103echo "${ECHO_T}no" >&6
12104 fi
12105 ;;
12106esac
12107
12108if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12109 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12110echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12111 cat >conftest.$ac_ext <<_ACEOF
12112/* confdefs.h. */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h. */
12117#include <stdlib.h>
12118int
12119main ()
12120{
12121grantpt(0);unlockpt(0);ptsname(0);
12122 ;
12123 return 0;
12124}
12125_ACEOF
12126rm -f conftest.$ac_objext conftest$ac_exeext
12127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>conftest.er1
12129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_cxx_werror_flag"
12136 || test ! -s conftest.err'
12137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138 (eval $ac_try) 2>&5
12139 ac_status=$?
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); }; } &&
12142 { ac_try='test -s conftest$ac_exeext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 unix98_pty=yes
12149
12150cat >>confdefs.h <<\_ACEOF
12151#define UNIX98_PTY 1
12152_ACEOF
12153
12154 echo "$as_me:$LINENO: result: yes" >&5
12155echo "${ECHO_T}yes" >&6
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
12160echo "$as_me:$LINENO: result: no" >&5
12161echo "${ECHO_T}no" >&6
12162fi
12163rm -f conftest.err conftest.$ac_objext \
12164 conftest$ac_exeext conftest.$ac_ext
12165fi
12166
12167if test -z "$unix98_pty"; then
12168
12169for ac_func in openpty
12170do
12171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12172echo "$as_me:$LINENO: checking for $ac_func" >&5
12173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12174if eval "test \"\${$as_ac_var+set}\" = set"; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176else
12177 cat >conftest.$ac_ext <<_ACEOF
12178/* confdefs.h. */
12179_ACEOF
12180cat confdefs.h >>conftest.$ac_ext
12181cat >>conftest.$ac_ext <<_ACEOF
12182/* end confdefs.h. */
12183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12185#define $ac_func innocuous_$ac_func
12186
12187/* System header to define __stub macros and hopefully few prototypes,
12188 which can conflict with char $ac_func (); below.
12189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12190 <limits.h> exists even on freestanding compilers. */
12191
12192#ifdef __STDC__
12193# include <limits.h>
12194#else
12195# include <assert.h>
12196#endif
12197
12198#undef $ac_func
12199
12200/* Override any gcc2 internal prototype to avoid an error. */
12201#ifdef __cplusplus
12202extern "C"
12203{
12204#endif
12205/* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12207char $ac_func ();
12208/* The GNU C library defines this for functions which it implements
12209 to always fail with ENOSYS. Some functions are actually named
12210 something starting with __ and the normal name is an alias. */
12211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12212choke me
12213#else
12214char (*f) () = $ac_func;
12215#endif
12216#ifdef __cplusplus
12217}
12218#endif
12219
12220int
12221main ()
12222{
12223return f != $ac_func;
12224 ;
12225 return 0;
12226}
12227_ACEOF
12228rm -f conftest.$ac_objext conftest$ac_exeext
12229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230 (eval $ac_link) 2>conftest.er1
12231 ac_status=$?
12232 grep -v '^ *+' conftest.er1 >conftest.err
12233 rm -f conftest.er1
12234 cat conftest.err >&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); } &&
12237 { ac_try='test -z "$ac_cxx_werror_flag"
12238 || test ! -s conftest.err'
12239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12240 (eval $ac_try) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); }; } &&
12244 { ac_try='test -s conftest$ac_exeext'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 eval "$as_ac_var=yes"
12251else
12252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255eval "$as_ac_var=no"
12256fi
12257rm -f conftest.err conftest.$ac_objext \
12258 conftest$ac_exeext conftest.$ac_ext
12259fi
12260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12262if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 cat >>confdefs.h <<_ACEOF
12264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265_ACEOF
12266
12267else
12268 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12269echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12270if test "${ac_cv_lib_util_openpty+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272else
12273 ac_check_lib_save_LIBS=$LIBS
12274LIBS="-lutil $LIBS"
12275cat >conftest.$ac_ext <<_ACEOF
12276/* confdefs.h. */
12277_ACEOF
12278cat confdefs.h >>conftest.$ac_ext
12279cat >>conftest.$ac_ext <<_ACEOF
12280/* end confdefs.h. */
12281
12282/* Override any gcc2 internal prototype to avoid an error. */
12283#ifdef __cplusplus
12284extern "C"
12285#endif
12286/* We use char because int might match the return type of a gcc2
12287 builtin and then its argument prototype would still apply. */
12288char openpty ();
12289int
12290main ()
12291{
12292openpty ();
12293 ;
12294 return 0;
12295}
12296_ACEOF
12297rm -f conftest.$ac_objext conftest$ac_exeext
12298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>conftest.er1
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); } &&
12306 { ac_try='test -z "$ac_cxx_werror_flag"
12307 || test ! -s conftest.err'
12308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309 (eval $ac_try) 2>&5
12310 ac_status=$?
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_cv_lib_util_openpty=yes
12320else
12321 echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324ac_cv_lib_util_openpty=no
12325fi
12326rm -f conftest.err conftest.$ac_objext \
12327 conftest$ac_exeext conftest.$ac_ext
12328LIBS=$ac_check_lib_save_LIBS
12329fi
12330echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12331echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12332if test $ac_cv_lib_util_openpty = yes; then
12333 cat >>confdefs.h <<\_ACEOF
12334#define HAVE_OPENPTY 1
12335_ACEOF
12336 LIBS="$LIBS -lutil"
12337fi
12338
12339fi
12340done
12341
12342fi
12343
12344
12345
12346echo "$as_me:$LINENO: checking for tty group" >&5
12347echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12348if test "${tty_group+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350else
12351 if test "$cross_compiling" = yes; then
12352 tty_group=no
12353else
12354 cat >conftest.$ac_ext <<_ACEOF
12355/* confdefs.h. */
12356_ACEOF
12357cat confdefs.h >>conftest.$ac_ext
12358cat >>conftest.$ac_ext <<_ACEOF
12359/* end confdefs.h. */
12360
12361#include <sys/types.h>
12362#include <sys/stat.h>
12363#include <unistd.h>
12364#include <grp.h>
12365
12366main()
12367{
12368 struct stat st;
12369 struct group *gr;
12370 char *tty;
12371 gr = getgrnam("tty");
12372 tty = ttyname(0);
12373 if (gr != 0
12374 && tty != 0
12375 && (stat(tty, &st)) == 0
12376 && st.st_gid == gr->gr_gid)
12377 return 0;
12378 else
12379 return 1;
12380}
12381_ACEOF
12382rm -f conftest$ac_exeext
12383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
12393 tty_group=yes
12394else
12395 echo "$as_me: program exited with status $ac_status" >&5
12396echo "$as_me: failed program was:" >&5
12397sed 's/^/| /' conftest.$ac_ext >&5
12398
12399( exit $ac_status )
12400tty_group=no
12401fi
12402rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12403fi
12404fi
12405echo "$as_me:$LINENO: result: $tty_group" >&5
12406echo "${ECHO_T}$tty_group" >&6
12407if test x$tty_group = xyes; then
12408
12409cat >>confdefs.h <<\_ACEOF
12410#define TTY_GID_SUPPORT 1
12411_ACEOF
12412
12413fi
12414
12415if test x$support_xft = xyes; then
12416 # Extract the first word of "pkg-config", so it can be a program name with args.
12417set dummy pkg-config; ac_word=$2
12418echo "$as_me:$LINENO: checking for $ac_word" >&5
12419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12420if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422else
12423 case $PKG_CONFIG in
12424 [\\/]* | ?:[\\/]*)
12425 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12426 ;;
12427 *)
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429for as_dir in $PATH
12430do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_exec_ext in '' $ac_executable_extensions; do
12434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12435 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 break 2
12438 fi
12439done
12440done
12441
12442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12443 ;;
12444esac
12445fi
12446PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12447
12448if test -n "$PKG_CONFIG"; then
12449 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12450echo "${ECHO_T}$PKG_CONFIG" >&6
12451else
12452 echo "$as_me:$LINENO: result: no" >&5
12453echo "${ECHO_T}no" >&6
12454fi
12455
12456 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12457 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12458 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12459 else
12460 # Extract the first word of "xft-config", so it can be a program name with args.
12461set dummy xft-config; ac_word=$2
12462echo "$as_me:$LINENO: checking for $ac_word" >&5
12463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12464if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
12467 case $XFT_CONFIG in
12468 [\\/]* | ?:[\\/]*)
12469 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12470 ;;
12471 *)
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $PATH
12474do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12479 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12481 break 2
12482 fi
12483done
12484done
12485
12486 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12487 ;;
12488esac
12489fi
12490XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12491
12492if test -n "$XFT_CONFIG"; then
12493 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12494echo "${ECHO_T}$XFT_CONFIG" >&6
12495else
12496 echo "$as_me:$LINENO: result: no" >&5
12497echo "${ECHO_T}no" >&6
12498fi
12499
12500 if test $XFT_CONFIG != no; then
12501 LIBS="$LIBS `$XFT_CONFIG --libs`"
12502 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12503 fi
12504 fi
12505
12506
12507for ac_header in X11/Xft/Xft.h
12508do
12509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12510if eval "test \"\${$as_ac_Header+set}\" = set"; then
12511 echo "$as_me:$LINENO: checking for $ac_header" >&5
12512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12513if eval "test \"\${$as_ac_Header+set}\" = set"; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515fi
12516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12517echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12518else
12519 # Is the header compilable?
12520echo "$as_me:$LINENO: checking $ac_header usability" >&5
12521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12522cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528$ac_includes_default
12529#include <$ac_header>
12530_ACEOF
12531rm -f conftest.$ac_objext
12532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12533 (eval $ac_compile) 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_cxx_werror_flag"
12541 || test ! -s conftest.err'
12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543 (eval $ac_try) 2>&5
12544 ac_status=$?
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); }; } &&
12547 { ac_try='test -s conftest.$ac_objext'
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; }; then
12553 ac_header_compiler=yes
12554else
12555 echo "$as_me: failed program was:" >&5
12556sed 's/^/| /' conftest.$ac_ext >&5
12557
12558ac_header_compiler=no
12559fi
12560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12561echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562echo "${ECHO_T}$ac_header_compiler" >&6
12563
12564# Is the header present?
12565echo "$as_me:$LINENO: checking $ac_header presence" >&5
12566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12567cat >conftest.$ac_ext <<_ACEOF
12568/* confdefs.h. */
12569_ACEOF
12570cat confdefs.h >>conftest.$ac_ext
12571cat >>conftest.$ac_ext <<_ACEOF
12572/* end confdefs.h. */
12573#include <$ac_header>
12574_ACEOF
12575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } >/dev/null; then
12583 if test -s conftest.err; then
12584 ac_cpp_err=$ac_cxx_preproc_warn_flag
12585 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12586 else
12587 ac_cpp_err=
12588 fi
12589else
12590 ac_cpp_err=yes
12591fi
12592if test -z "$ac_cpp_err"; then
12593 ac_header_preproc=yes
12594else
12595 echo "$as_me: failed program was:" >&5
12596sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 ac_header_preproc=no
12599fi
12600rm -f conftest.err conftest.$ac_ext
12601echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602echo "${ECHO_T}$ac_header_preproc" >&6
12603
12604# So? What about this header?
12605case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12606 yes:no: )
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12611 ac_header_preproc=yes
12612 ;;
12613 no:yes:* )
12614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12626 (
12627 cat <<\_ASBOX
12628## ------------------------------------------ ##
12629## Report this to the AC_PACKAGE_NAME lists. ##
12630## ------------------------------------------ ##
12631_ASBOX
12632 ) |
12633 sed "s/^/$as_me: WARNING: /" >&2
12634 ;;
12635esac
12636echo "$as_me:$LINENO: checking for $ac_header" >&5
12637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12638if eval "test \"\${$as_ac_Header+set}\" = set"; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640else
12641 eval "$as_ac_Header=\$ac_header_preproc"
12642fi
12643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12645
12646fi
12647if test `eval echo '${'$as_ac_Header'}'` = yes; then
12648 cat >>confdefs.h <<_ACEOF
12649#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12650_ACEOF
12651
12396else 12652else
12397 support_xft=no 12653 support_xft=no
12398fi 12654fi
12399 12655
12400done 12656done
12436 grep -v '^ *+' conftest.er1 >conftest.err 12692 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1 12693 rm -f conftest.er1
12438 cat conftest.err >&5 12694 cat conftest.err >&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } && 12696 (exit $ac_status); } &&
12441 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 12697 { ac_try='test -z "$ac_cxx_werror_flag"
12698 || test ! -s conftest.err'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5 12700 (eval $ac_try) 2>&5
12444 ac_status=$? 12701 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; } && 12703 (exit $ac_status); }; } &&
12519 12776
12520fi 12777fi
12521if test x$support_inheritpixmap = xyes; then 12778if test x$support_inheritpixmap = xyes; then
12522 12779
12523cat >>confdefs.h <<\_ACEOF 12780cat >>confdefs.h <<\_ACEOF
12524#define TRANSPARENT 1 12781#define ENABLE_TRANSPARENCY 1
12525_ACEOF 12782_ACEOF
12526 12783
12527fi 12784fi
12528if test x$support_keepscrolling = xno; then 12785if test x$support_keepscrolling = xno; then
12529 12786
12537cat >>confdefs.h <<\_ACEOF 12794cat >>confdefs.h <<\_ACEOF
12538#define SELECTION_SCROLLING 1 12795#define SELECTION_SCROLLING 1
12539_ACEOF 12796_ACEOF
12540 12797
12541fi 12798fi
12542if test x$support_frills = xyes; then
12543
12544cat >>confdefs.h <<\_ACEOF
12545#define ENABLE_FRILLS 1
12546_ACEOF
12547
12548fi
12549if test x$support_24bit = xyes; then
12550
12551cat >>confdefs.h <<\_ACEOF
12552#define PREFER_24BIT 1
12553_ACEOF
12554
12555fi
12556if test x$support_mousewheel = xyes; then 12799if test x$support_mousewheel = xyes; then
12557 12800
12558cat >>confdefs.h <<\_ACEOF 12801cat >>confdefs.h <<\_ACEOF
12559#define MOUSE_WHEEL 1 12802#define MOUSE_WHEEL 1
12560_ACEOF 12803_ACEOF
12565cat >>confdefs.h <<\_ACEOF 12808cat >>confdefs.h <<\_ACEOF
12566#define MOUSE_SLIP_WHEELING 1 12809#define MOUSE_SLIP_WHEELING 1
12567_ACEOF 12810_ACEOF
12568 12811
12569fi 12812fi
12570if test x$support_utmp = xyes; then
12571
12572cat >>confdefs.h <<\_ACEOF
12573#define UTMP_SUPPORT 1
12574_ACEOF
12575
12576fi
12577if test x$support_wtmp = xyes; then
12578
12579cat >>confdefs.h <<\_ACEOF
12580#define WTMP_SUPPORT 1
12581_ACEOF
12582
12583fi
12584if test x$support_lastlog = xyes; then
12585
12586cat >>confdefs.h <<\_ACEOF
12587#define LASTLOG_SUPPORT 1
12588_ACEOF
12589
12590fi
12591if test x$support_xim = xyes -o x$multichar_set = xyes; then 12813if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
12592 if test x$rxvt_cv_func_xlocale = xyes; then
12593
12594cat >>confdefs.h <<\_ACEOF
12595#define USE_XIM 1
12596_ACEOF
12597
12598 fi
12599fi
12600if test x$support_xpm = xyes; then
12601 12814
12602cat >>confdefs.h <<\_ACEOF 12815cat >>confdefs.h <<\_ACEOF
12603#define XPM_BACKGROUND 1 12816#define XPM_BACKGROUND 1
12604_ACEOF 12817_ACEOF
12605 12818
12606fi 12819fi
12820
12821if test x$support_afterimage = xyes; then
12822
12823cat >>confdefs.h <<\_ACEOF
12824#define HAVE_AFTERIMAGE 1
12825_ACEOF
12826
12827fi
12828
12829if test x$support_afterstep = xyes; then
12830
12831cat >>confdefs.h <<\_ACEOF
12832#define AFTERSTEP_INTEGRATION 1
12833_ACEOF
12834
12835fi
12836
12607if test x$support_scroll_rxvt = xyes; then 12837if test x$support_scroll_rxvt = xyes; then
12608 12838
12609cat >>confdefs.h <<\_ACEOF 12839cat >>confdefs.h <<\_ACEOF
12610#define RXVT_SCROLLBAR 1 12840#define RXVT_SCROLLBAR 1
12611_ACEOF 12841_ACEOF
12824 grep -v '^ *+' conftest.er1 >conftest.err 13054 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1 13055 rm -f conftest.er1
12826 cat conftest.err >&5 13056 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && 13058 (exit $ac_status); } &&
12829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 13059 { ac_try='test -z "$ac_cxx_werror_flag"
13060 || test ! -s conftest.err'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5 13062 (eval $ac_try) 2>&5
12832 ac_status=$? 13063 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; } && 13065 (exit $ac_status); }; } &&
12883 13114
12884if test x$support_perl = xyes; then 13115if test x$support_perl = xyes; then
12885 support_frills=yes 13116 support_frills=yes
12886fi 13117fi
12887 13118
13119if test x$support_frills = xyes; then
12888 13120
12889CFLAGS=${CFLAGS--O} 13121cat >>confdefs.h <<\_ACEOF
12890LDFLAGS=${LDFLAGS--O} 13122#define ENABLE_FRILLS 1
13123_ACEOF
12891 13124
12892CPPFLAGS="$CPPFLAGS"
12893
12894
12895
12896
12897
12898
12899
12900if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12901 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12902 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12903 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12904 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12905 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12906fi 13125fi
13126
13127
13128
13129
13130
13131
13132
13133
12907 13134
12908 13135
12909 13136
12910 13137
12911 13138
13632s,@ac_ct_CXX@,$ac_ct_CXX,;t t 13859s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13633s,@CPP@,$CPP,;t t 13860s,@CPP@,$CPP,;t t
13634s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13861s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13635s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13862s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13636s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13863s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13637s,@AWK@,$AWK,;t t 13864s,@EGREP@,$EGREP,;t t
13638s,@LINKER@,$LINKER,;t t 13865s,@LINKER@,$LINKER,;t t
13639s,@CXXCPP@,$CXXCPP,;t t
13640s,@EGREP@,$EGREP,;t t
13641s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13866s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13642s,@RXVTNAME@,$RXVTNAME,;t t 13867s,@RXVTNAME@,$RXVTNAME,;t t
13643s,@MV@,$MV,;t t
13644s,@RM@,$RM,;t t
13645s,@CP@,$CP,;t t
13646s,@LN@,$LN,;t t
13647s,@SED@,$SED,;t t
13648s,@ECHO@,$ECHO,;t t
13649s,@CMP@,$CMP,;t t
13650s,@TBL@,$TBL,;t t
13651s,@TIC@,$TIC,;t t 13868s,@TIC@,$TIC,;t t
13869s,@CXXCPP@,$CXXCPP,;t t
13652s,@X_CFLAGS@,$X_CFLAGS,;t t 13870s,@X_CFLAGS@,$X_CFLAGS,;t t
13653s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13871s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13654s,@X_LIBS@,$X_LIBS,;t t 13872s,@X_LIBS@,$X_LIBS,;t t
13655s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13873s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13874s,@afterimage_config@,$afterimage_config,;t t
13656s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13875s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13657s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t 13876s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13658s,@XPM_LIBS@,$XPM_LIBS,;t t 13877s,@XPM_LIBS@,$XPM_LIBS,;t t
13659s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t 13878s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13660s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 13879s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13661s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 13880s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13662s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 13881s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13663s,@rxvt_intp_define@,$rxvt_intp_define,;t t 13882s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13664s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 13883s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13884s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13885s,@XFT_CONFIG@,$XFT_CONFIG,;t t
13665s,@PERL@,$PERL,;t t 13886s,@PERL@,$PERL,;t t
13666s,@PERLLIB@,$PERLLIB,;t t 13887s,@PERLLIB@,$PERLLIB,;t t
13667s,@PERLFLAGS@,$PERLFLAGS,;t t 13888s,@PERLFLAGS@,$PERLFLAGS,;t t
13668s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t 13889s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13669s,@IF_PERL@,$IF_PERL,;t t 13890s,@IF_PERL@,$IF_PERL,;t t
13670s,@PERL_O@,$PERL_O,;t t 13891s,@PERL_O@,$PERL_O,;t t
13671s,@DEBUG@,$DEBUG,;t t 13892s,@LIBAFTERIMAGE_CFLAGS@,$LIBAFTERIMAGE_CFLAGS,;t t
13672s,@DINCLUDE@,$DINCLUDE,;t t 13893s,@AFTERIMAGE_LIBS@,$AFTERIMAGE_LIBS,;t t
13673s,@DLIB@,$DLIB,;t t
13674s,@include_stdint_h@,$include_stdint_h,;t t 13894s,@include_stdint_h@,$include_stdint_h,;t t
13675s,@include_stdarg_h@,$include_stdarg_h,;t t 13895s,@include_stdarg_h@,$include_stdarg_h,;t t
13676s,@include_stdlib_h@,$include_stdlib_h,;t t 13896s,@include_stdlib_h@,$include_stdlib_h,;t t
13677s,@include_unistd_h@,$include_unistd_h,;t t 13897s,@include_unistd_h@,$include_unistd_h,;t t
13678s,@include_string_h@,$include_string_h,;t t 13898s,@include_string_h@,$include_string_h,;t t
13850 case $INSTALL in 14070 case $INSTALL in
13851 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13852 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14072 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13853 esac 14073 esac
13854 14074
14075 if test x"$ac_file" != x-; then
14076 { echo "$as_me:$LINENO: creating $ac_file" >&5
14077echo "$as_me: creating $ac_file" >&6;}
14078 rm -f "$ac_file"
14079 fi
13855 # Let's still pretend it is `configure' which instantiates (i.e., don't 14080 # Let's still pretend it is `configure' which instantiates (i.e., don't
13856 # use $as_me), people would be surprised to read: 14081 # use $as_me), people would be surprised to read:
13857 # /* config.h. Generated by config.status. */ 14082 # /* config.h. Generated by config.status. */
13858 if test x"$ac_file" = x-; then 14083 if test x"$ac_file" = x-; then
13859 configure_input= 14084 configure_input=
13888echo "$as_me: error: cannot find input file: $f" >&2;} 14113echo "$as_me: error: cannot find input file: $f" >&2;}
13889 { (exit 1); exit 1; }; } 14114 { (exit 1); exit 1; }; }
13890 fi;; 14115 fi;;
13891 esac 14116 esac
13892 done` || { (exit 1); exit 1; } 14117 done` || { (exit 1); exit 1; }
13893
13894 if test x"$ac_file" != x-; then
13895 { echo "$as_me:$LINENO: creating $ac_file" >&5
13896echo "$as_me: creating $ac_file" >&6;}
13897 rm -f "$ac_file"
13898 fi
13899_ACEOF 14118_ACEOF
13900cat >>$CONFIG_STATUS <<_ACEOF 14119cat >>$CONFIG_STATUS <<_ACEOF
13901 sed "$ac_vpsub 14120 sed "$ac_vpsub
13902$extrasub 14121$extrasub
13903_ACEOF 14122_ACEOF
14183 14402
14184 Rxvt version: $VERSION : $DATE 14403 Rxvt version: $VERSION : $DATE
14185 Source code location: $srcdir 14404 Source code location: $srcdir
14186 Install path: ${prefix}/bin 14405 Install path: ${prefix}/bin
14187 Compiler: $CXX 14406 Compiler: $CXX
14188 Compiler flags: $CFLAGS 14407 Compiler flags: $CXXFLAGS
14189 Linker: $LINKER" 14408 Linker: $LINKER"
14190
14191if test "$MALLOC_TYPE" = S; then
14192 echo " malloc support: system default"
14193fi
14194if test "$MALLOC_TYPE" = G; then
14195 echo " malloc support: Gray Watson's dmalloc"
14196fi
14197if test "$MALLOC_TYPE" = D; then
14198 echo " malloc support: Doug Lea's malloc"
14199fi
14200 14409
14201if test x$support_xpm = xyes; then 14410if test x$support_xpm = xyes; then
14202 echo " Xpm library: $XPM_LIBS" 14411 echo " Xpm library: $XPM_LIBS"
14203fi 14412fi
14204 14413
14205echo " 14414if test x$support_afterimage = xyes; then
14206The following are set in config.h 14415 echo " AfterImage support: yes"
14207" 14416fi
14208echo " pty/tty type: "$rxvt_cv_ptys 14417
14209if test x$support_utmp != xyes; then 14418if test x$support_afterstep = xyes; then
14210 echo " utmp support: disabled" 14419 echo " AfterStep integration: yes"
14211 echo
14212else
14213 echo " utmp support: enabled
14214 utmp file: $rxvt_cv_path_utmp
14215 utmpx file: $rxvt_cv_path_utmpx
14216 wtmp file: $rxvt_cv_path_wtmp
14217 wtmpx file: $rxvt_cv_path_wtmpx
14218 lastlog file: $rxvt_cv_path_lastlog
14219 ttys/ttytab file: $rxvt_cv_path_ttytab
14220 embedded perl: $support_perl"
14221 echo
14222fi 14420fi
14421
14223if test x$term != x; then 14422if test x$term != x; then
14224 echo " set TERM to: $term" 14423 echo " set TERM to: $term"
14225fi 14424fi
14226if test x$terminfo != x; then 14425if test x$terminfo != x; then
14227 echo " set TERMINFO to: $terminfo" 14426 echo " set TERMINFO to: $terminfo"
14230echo " resource class: $RESCLASS" 14429echo " resource class: $RESCLASS"
14231if test x$RESFALLBACK != x; then 14430if test x$RESFALLBACK != x; then
14232 echo " resource class fallback: $RESFALLBACK" 14431 echo " resource class fallback: $RESFALLBACK"
14233fi 14432fi
14234echo 14433echo
14235if test x$rxvt_cv_ptys = xUNKNOWN; then 14434echo " embedded perl: $support_perl"
14236 echo ".----------------------------------------------------------------." 14435echo
14237 echo ". WARNING: could not determine pty/tty type. Do not build until ."
14238 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14239 echo ".----------------------------------------------------------------."
14240fi
14241if test x$support_xpm = xneedsmanualspecification; then 14436if test x$support_xpm = xneedsmanualspecification; then
14242 echo ".----------------------------------------------------------------." 14437 echo ".----------------------------------------------------------------."
14243 echo ". WARNING: --enable-xpm-background was specified however the ." 14438 echo ". WARNING: --enable-xpm-background was specified however the ."
14244 echo ". XPM includes files and libraries could not be found. ." 14439 echo ". XPM includes files and libraries could not be found. ."
14245 echo ". XPM backgrounds are now being DISABLED! If you want ." 14440 echo ". XPM backgrounds are now being DISABLED! If you want ."
14254 echo ". functions could not be found. ." 14449 echo ". functions could not be found. ."
14255 echo ". XIM is now being DISABLED! ." 14450 echo ". XIM is now being DISABLED! ."
14256 echo ".----------------------------------------------------------------." 14451 echo ".----------------------------------------------------------------."
14257fi 14452fi
14258 14453
14259echo " *** Optionally check src/feature.h for further options ***" 14454echo "*** Optionally check src/feature.h for further, rarely used options ***"
14260echo 14455echo
14261 14456
14262echo ".----------------------------------------------------------------."
14263echo ". NOTE: some features are disabled by default, try ."
14264echo ". configure --help to get an idea of the optional features, ."
14265echo ". or read ./README.configure ."
14266echo ". ."
14267echo ". The script ./reconf gives a reasonable baseline, try it if ."
14268echo ". you do not want to read documentation and still want some ."
14269echo ". useful features. ."
14270echo ".----------------------------------------------------------------."
14271echo
14272

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines