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

Comparing rxvt-unicode/configure (file contents):
Revision 1.20 by pcg, Sun Mar 14 17:50:40 2004 UTC vs.
Revision 1.50 by root, Sun Feb 13 08:56:27 2005 UTC

465#endif 465#endif
466#if HAVE_UNISTD_H 466#if HAVE_UNISTD_H
467# include <unistd.h> 467# include <unistd.h>
468#endif" 468#endif"
469 469
470ac_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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 470ac_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 LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471ac_subst_files='MCOMMON' 471ac_subst_files='MCOMMON'
472 472
473# Initialize some variables set by options. 473# Initialize some variables set by options.
474ac_init_help= 474ac_init_help=
475ac_init_version=false 475ac_init_version=false
1031 NOTE: this option is order dependent 1031 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 1032 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters 1034 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 1035 --enable-xft enable xft support on systems that have it
1036 --enable-font-styles enable bold and italic support
1036 --enable-utmp enable utmp (utmpx) support 1037 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1038 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp) 1039 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 1040 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds 1041 --enable-transparency enable transparent backgrounds
1042 --enable-tinting enable tinting of transparent bg
1043 --enable-fading enable colors fading when off focus
1041 --enable-menubar enable menubar 1044 --enable-menubar enable menubar
1042 --enable-rxvt-scroll enable rxvt style scrollbar 1045 --enable-rxvt-scroll enable rxvt style scrollbar
1043 --enable-next-scroll enable NeXT style scrollbar 1046 --enable-next-scroll enable NeXT style scrollbar
1044 --enable-xterm-scroll enable Xterm style scrollbar 1047 --enable-xterm-scroll enable Xterm style scrollbar
1045 --enable-plain-scroll enable plain style scrollbar 1048 --enable-plain-scroll enable plain style scrollbar
1048 --enable-ttygid enable tty setting to group named "tty" 1051 --enable-ttygid enable tty setting to group named "tty"
1049 --disable-backspace-key disable handling of the backspace key 1052 --disable-backspace-key disable handling of the backspace key
1050 --disable-delete-key disable handling of the delete key 1053 --disable-delete-key disable handling of the delete key
1051 --disable-resources disable all resource checking 1054 --disable-resources disable all resource checking
1052 --enable-xgetdefault enable resources via X instead of our small version 1055 --enable-xgetdefault enable resources via X instead of our small version
1056 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1053 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1057 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1054 --enable-strings enable some replacement system functions 1058 --enable-strings enable some replacement system functions
1055 --disable-swapscreen disable swap screen support 1059 --disable-swapscreen disable swap screen support
1060 --enable-iso14755 enable support for extended ISO 14755 modes
1056 --enable-frills enable support for rarely used features 1061 --enable-frills enable support for rarely used features
1057 --enable-linespace enable support for linespace
1058 --enable-24bit enable support for using 24bit visuals if available 1062 --enable-24bit enable support for using 24bit visuals if available
1059 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1063 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1060 --enable-selectionscrolling enable scrolling during selections 1064 --enable-selectionscrolling enable scrolling during selections
1061 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1065 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1062 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1066 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1063 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1064 --disable-new-selection disable new mouse (xterm) selection style support
1065 --enable-dmalloc enable Gray Watson's malloc - for debugging use 1067 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1066 --enable-dlmalloc enable Doug Lea's malloc - for production use 1068 --enable-dlmalloc enable Doug Lea's malloc - for production use
1067 NOTE: enable only one malloc package 1069 NOTE: enable only one malloc package
1068 --enable-smart-resize enable smart growth/shrink behaviour 1070 --enable-smart-resize enable smart growth/shrink behaviour
1069 --enable-256-color enable 256-color support
1070 --enable-cursor-blink enable blinking cursor 1071 --enable-cursor-blink enable blinking cursor
1071 --enable-text-blink enable blinking text 1072 --enable-text-blink enable blinking text
1072 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1073 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1073 1074
1074Optional Packages: 1075Optional Packages:
1075 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1076 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1076 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1077 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1077 --with-gnu-ld assume the C compiler uses GNU ld default=no 1078 --with-gnu-ld assume the C compiler uses GNU ld default=no
1078 --with-pic try to use only PIC/non-PIC objects default=use both 1079 --with-pic try to use only PIC/non-PIC objects default=use both
1079 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 1080 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1080 --with-res-name=NAME use this as default resource name (default: urxvt) 1081 --with-res-name=NAME use this as default resource name (default: urxvt)
1081 --with-res-class=CLASS use this as the resource class (default: URxvt) 1082 --with-res-class=CLASS use this as the resource class (default: URxvt)
1082 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1083 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1083 --with-term=NAME set the terminal to NAME (default: rxvt) 1084 --with-term=NAME set the terminal to NAME (default: rxvt)
1084 --with-terminfo=PATH set the path to the terminfo tree to PATH 1085 --with-terminfo=PATH set the path to the terminfo tree to PATH
1535 1536
1536 1537
1537 1538
1538 1539
1539 1540
1541
1540ac_aux_dir= 1542ac_aux_dir=
1541for ac_dir in autoconf $srcdir/autoconf; do 1543for ac_dir in autoconf $srcdir/autoconf; do
1542 if test -f $ac_dir/install-sh; then 1544 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir 1545 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c" 1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564 1566
1565 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1567 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1568
1569
1570# Make sure we can run config.sub.
1571$ac_config_sub sun4 >/dev/null 2>&1 ||
1572 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1573echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1574 { (exit 1); exit 1; }; }
1575
1576echo "$as_me:$LINENO: checking build system type" >&5
1577echo $ECHO_N "checking build system type... $ECHO_C" >&6
1578if test "${ac_cv_build+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580else
1581 ac_cv_build_alias=$build_alias
1582test -z "$ac_cv_build_alias" &&
1583 ac_cv_build_alias=`$ac_config_guess`
1584test -z "$ac_cv_build_alias" &&
1585 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1586echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1587 { (exit 1); exit 1; }; }
1588ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1595echo "${ECHO_T}$ac_cv_build" >&6
1596build=$ac_cv_build
1597build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602echo "$as_me:$LINENO: checking host system type" >&5
1603echo $ECHO_N "checking host system type... $ECHO_C" >&6
1604if test "${ac_cv_host+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 ac_cv_host_alias=$host_alias
1608test -z "$ac_cv_host_alias" &&
1609 ac_cv_host_alias=$ac_cv_build_alias
1610ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1611 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1612echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1613 { (exit 1); exit 1; }; }
1614
1615fi
1616echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1617echo "${ECHO_T}$ac_cv_host" >&6
1618host=$ac_cv_host
1619host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1620host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1621host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622
1566 1623
1567 1624
1568VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1625VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1569DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1626DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1627LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu 3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 3268
3212 3269
3270if test -z "$orig_CXXFLAGS"; then
3271 CXXFLAGS='-O'
3272 if test x$GCC = xyes && test "x$GXX" = xyes; then
3273 CXXFLAGS="-g -O3"
3274 fi
3275 CFLAGS="$CXXFLAGS"
3276fi
3277
3213LINKER="$CXX" 3278LINKER="$CXX"
3214if test x$GCC = xyes && test x$GXX = xyes; then 3279if test x$GCC = xyes && test x$GXX = xyes; then
3215 3280
3216echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 3281echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3217echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 3282echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3279 3344
3280fi 3345fi
3281LINKER=$LINKER 3346LINKER=$LINKER
3282 3347
3283 3348
3284CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3285 3349
3286if test x$GXX = xyes; then 3350cat >>confdefs.h <<\_ACEOF
3287 CXXFLAGS="$CXXFLAGS -fno-exceptions" 3351#define _GNU_SOURCE 1
3288fi 3352_ACEOF
3353
3354
3355case $host in
3356 *-*-solaris* )
3357
3358cat >>confdefs.h <<\_ACEOF
3359#define _XOPEN_SOURCE_EXTENDED 1
3360_ACEOF
3361
3362
3363cat >>confdefs.h <<\_ACEOF
3364#define _XOPEN_SOURCE 2
3365_ACEOF
3366
3367
3368cat >>confdefs.h <<\_ACEOF
3369#define __EXTENSIONS__ 1
3370_ACEOF
3371
3372 ;;
3373esac
3374
3289 3375
3290ac_ext=cc 3376ac_ext=cc
3291ac_cpp='$CXXCPP $CPPFLAGS' 3377ac_cpp='$CXXCPP $CPPFLAGS'
3292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3776echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3691echo "${ECHO_T}$ac_cv_search_strerror" >&6 3777echo "${ECHO_T}$ac_cv_search_strerror" >&6
3692if test "$ac_cv_search_strerror" != no; then 3778if test "$ac_cv_search_strerror" != no; then
3693 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3779 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3694 3780
3781fi
3782
3783
3784echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3785echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3786if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789 ac_check_lib_save_LIBS=$LIBS
3790LIBS="-lxpg4 $LIBS"
3791cat >conftest.$ac_ext <<_ACEOF
3792/* confdefs.h. */
3793_ACEOF
3794cat confdefs.h >>conftest.$ac_ext
3795cat >>conftest.$ac_ext <<_ACEOF
3796/* end confdefs.h. */
3797
3798/* Override any gcc2 internal prototype to avoid an error. */
3799#ifdef __cplusplus
3800extern "C"
3801#endif
3802/* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3804char setlocale ();
3805int
3806main ()
3807{
3808setlocale ();
3809 ;
3810 return 0;
3811}
3812_ACEOF
3813rm -f conftest.$ac_objext conftest$ac_exeext
3814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815 (eval $ac_link) 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; } &&
3828 { ac_try='test -s conftest$ac_exeext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_cv_lib_xpg4_setlocale=yes
3835else
3836 echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839ac_cv_lib_xpg4_setlocale=no
3840fi
3841rm -f conftest.err conftest.$ac_objext \
3842 conftest$ac_exeext conftest.$ac_ext
3843LIBS=$ac_check_lib_save_LIBS
3844fi
3845echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3846echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3847if test $ac_cv_lib_xpg4_setlocale = yes; then
3848 LIBS="$LIBS -lxpg4"
3849fi
3850
3851
3852echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3853echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3854if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3856else
3857 ac_check_lib_save_LIBS=$LIBS
3858LIBS="-lnsl $LIBS"
3859cat >conftest.$ac_ext <<_ACEOF
3860/* confdefs.h. */
3861_ACEOF
3862cat confdefs.h >>conftest.$ac_ext
3863cat >>conftest.$ac_ext <<_ACEOF
3864/* end confdefs.h. */
3865
3866/* Override any gcc2 internal prototype to avoid an error. */
3867#ifdef __cplusplus
3868extern "C"
3869#endif
3870/* We use char because int might match the return type of a gcc2
3871 builtin and then its argument prototype would still apply. */
3872char gethostbyname ();
3873int
3874main ()
3875{
3876gethostbyname ();
3877 ;
3878 return 0;
3879}
3880_ACEOF
3881rm -f conftest.$ac_objext conftest$ac_exeext
3882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3883 (eval $ac_link) 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; } &&
3896 { ac_try='test -s conftest$ac_exeext'
3897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 ac_cv_lib_nsl_gethostbyname=yes
3903else
3904 echo "$as_me: failed program was:" >&5
3905sed 's/^/| /' conftest.$ac_ext >&5
3906
3907ac_cv_lib_nsl_gethostbyname=no
3908fi
3909rm -f conftest.err conftest.$ac_objext \
3910 conftest$ac_exeext conftest.$ac_ext
3911LIBS=$ac_check_lib_save_LIBS
3912fi
3913echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3914echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3915if test $ac_cv_lib_nsl_gethostbyname = yes; then
3916 LIBS="$LIBS -lnsl"
3917fi
3918
3919echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3920echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3921if test "${ac_cv_lib_socket_socket+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924 ac_check_lib_save_LIBS=$LIBS
3925LIBS="-lsocket $LIBS"
3926cat >conftest.$ac_ext <<_ACEOF
3927/* confdefs.h. */
3928_ACEOF
3929cat confdefs.h >>conftest.$ac_ext
3930cat >>conftest.$ac_ext <<_ACEOF
3931/* end confdefs.h. */
3932
3933/* Override any gcc2 internal prototype to avoid an error. */
3934#ifdef __cplusplus
3935extern "C"
3936#endif
3937/* We use char because int might match the return type of a gcc2
3938 builtin and then its argument prototype would still apply. */
3939char socket ();
3940int
3941main ()
3942{
3943socket ();
3944 ;
3945 return 0;
3946}
3947_ACEOF
3948rm -f conftest.$ac_objext conftest$ac_exeext
3949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3950 (eval $ac_link) 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959 (eval $ac_try) 2>&5
3960 ac_status=$?
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; } &&
3963 { ac_try='test -s conftest$ac_exeext'
3964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 (eval $ac_try) 2>&5
3966 ac_status=$?
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; }; then
3969 ac_cv_lib_socket_socket=yes
3970else
3971 echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
3973
3974ac_cv_lib_socket_socket=no
3975fi
3976rm -f conftest.err conftest.$ac_objext \
3977 conftest$ac_exeext conftest.$ac_ext
3978LIBS=$ac_check_lib_save_LIBS
3979fi
3980echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3981echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3982if test $ac_cv_lib_socket_socket = yes; then
3983 LIBS="$LIBS -lsocket"
3695fi 3984fi
3696 3985
3697 3986
3698# Check whether --enable-shared or --disable-shared was given. 3987# Check whether --enable-shared or --disable-shared was given.
3699if test "${enable_shared+set}" = set; then 3988if test "${enable_shared+set}" = set; then
3757 ;; 4046 ;;
3758esac 4047esac
3759else 4048else
3760 enable_fast_install=yes 4049 enable_fast_install=yes
3761fi; 4050fi;
3762# Make sure we can run config.sub.
3763$ac_config_sub sun4 >/dev/null 2>&1 ||
3764 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3765echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3766 { (exit 1); exit 1; }; }
3767
3768echo "$as_me:$LINENO: checking build system type" >&5
3769echo $ECHO_N "checking build system type... $ECHO_C" >&6
3770if test "${ac_cv_build+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3772else
3773 ac_cv_build_alias=$build_alias
3774test -z "$ac_cv_build_alias" &&
3775 ac_cv_build_alias=`$ac_config_guess`
3776test -z "$ac_cv_build_alias" &&
3777 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3778echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3779 { (exit 1); exit 1; }; }
3780ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3781 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3782echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3783 { (exit 1); exit 1; }; }
3784
3785fi
3786echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3787echo "${ECHO_T}$ac_cv_build" >&6
3788build=$ac_cv_build
3789build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3790build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3791build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3792
3793
3794echo "$as_me:$LINENO: checking host system type" >&5
3795echo $ECHO_N "checking host system type... $ECHO_C" >&6
3796if test "${ac_cv_host+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799 ac_cv_host_alias=$host_alias
3800test -z "$ac_cv_host_alias" &&
3801 ac_cv_host_alias=$ac_cv_build_alias
3802ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3803 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3804echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3805 { (exit 1); exit 1; }; }
3806
3807fi
3808echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3809echo "${ECHO_T}$ac_cv_host" >&6
3810host=$ac_cv_host
3811host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3812host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3813host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3814
3815
3816 4051
3817# Check whether --with-gnu-ld or --without-gnu-ld was given. 4052# Check whether --with-gnu-ld or --without-gnu-ld was given.
3818if test "${with_gnu_ld+set}" = set; then 4053if test "${with_gnu_ld+set}" = set; then
3819 withval="$with_gnu_ld" 4054 withval="$with_gnu_ld"
3820 test "$withval" = no || with_gnu_ld=yes 4055 test "$withval" = no || with_gnu_ld=yes
5035# Some flags need to be propagated to the compiler or linker for good 5270# Some flags need to be propagated to the compiler or linker for good
5036# libtool support. 5271# libtool support.
5037case "$host" in 5272case "$host" in
5038*-*-irix6*) 5273*-*-irix6*)
5039 # Find out which ABI we are using. 5274 # Find out which ABI we are using.
5040 echo '#line 5040 "configure"' > conftest.$ac_ext 5275 echo '#line 5275 "configure"' > conftest.$ac_ext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5 5277 (eval $ac_compile) 2>&5
5043 ac_status=$? 5278 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; then 5280 (exit $ac_status); }; then
5586# builds. 5821# builds.
5587chmod -w . 5822chmod -w .
5588save_CFLAGS="$CFLAGS" 5823save_CFLAGS="$CFLAGS"
5589CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5824CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5590compiler_c_o=no 5825compiler_c_o=no
5591if { (eval echo configure:5591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 5826if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5592 # The compiler can only warn and ignore the option if not recognized 5827 # The compiler can only warn and ignore the option if not recognized
5593 # So say no if there are warnings 5828 # So say no if there are warnings
5594 if test -s out/conftest.err; then 5829 if test -s out/conftest.err; then
5595 compiler_c_o=no 5830 compiler_c_o=no
5596 else 5831 else
7202 lt_cv_dlopen_self=cross 7437 lt_cv_dlopen_self=cross
7203else 7438else
7204 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7205 lt_status=$lt_dlunknown 7440 lt_status=$lt_dlunknown
7206 cat > conftest.$ac_ext <<EOF 7441 cat > conftest.$ac_ext <<EOF
7207#line 7207 "configure" 7442#line 7442 "configure"
7208#include "confdefs.h" 7443#include "confdefs.h"
7209 7444
7210#if HAVE_DLFCN_H 7445#if HAVE_DLFCN_H
7211#include <dlfcn.h> 7446#include <dlfcn.h>
7212#endif 7447#endif
7300 lt_cv_dlopen_self_static=cross 7535 lt_cv_dlopen_self_static=cross
7301else 7536else
7302 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7303 lt_status=$lt_dlunknown 7538 lt_status=$lt_dlunknown
7304 cat > conftest.$ac_ext <<EOF 7539 cat > conftest.$ac_ext <<EOF
7305#line 7305 "configure" 7540#line 7540 "configure"
7306#include "confdefs.h" 7541#include "confdefs.h"
7307 7542
7308#if HAVE_DLFCN_H 7543#if HAVE_DLFCN_H
7309#include <dlfcn.h> 7544#include <dlfcn.h>
7310#endif 7545#endif
8031 8266
8032 8267
8033MALLOC_TYPE=S 8268MALLOC_TYPE=S
8034support_addstrings=no 8269support_addstrings=no
8035support_frills=no 8270support_frills=no
8036support_linespace=no
8037support_inheritpixmap=no 8271support_inheritpixmap=no
8272support_tinting=no
8273support_fading=no
8038support_keepscrolling=no 8274support_keepscrolling=no
8039support_selectionscrolling=no 8275support_selectionscrolling=no
8040support_menubar=no 8276support_menubar=no
8041support_mousewheel=no 8277support_mousewheel=no
8042support_mouseslipwheel=no 8278support_mouseslipwheel=no
8043support_oldselection=no
8044support_utmp=no 8279support_utmp=no
8045support_wtmp=no 8280support_wtmp=no
8046support_lastlog=no 8281support_lastlog=no
8047support_cursor_blink=no 8282support_cursor_blink=no
8048support_text_blink=no 8283support_text_blink=no
8054support_xim=no 8289support_xim=no
8055support_xpm=no 8290support_xpm=no
8056support_xft=no 8291support_xft=no
8057support_unicode3=no 8292support_unicode3=no
8058support_combining=no 8293support_combining=no
8294support_8bitctrls=no
8295support_iso14755=no
8296support_styles=no
8059codesets= 8297codesets=
8060 8298
8061 8299
8062if test "x$enable_shared" = xyes; then 8300if test "x$enable_shared" = xyes; then
8063 8301
8073if test "${enable_everything+set}" = set; then 8311if test "${enable_everything+set}" = set; then
8074 enableval="$enable_everything" 8312 enableval="$enable_everything"
8075 if test x$enableval = xyes; then 8313 if test x$enableval = xyes; then
8076 support_24bit=yes 8314 support_24bit=yes
8077 support_frills=yes 8315 support_frills=yes
8078 support_linespace=yes
8079 support_inheritpixmap=yes 8316 support_inheritpixmap=yes
8317 support_tinting=yes
8318 support_fading=yes
8080 support_keepscrolling=yes 8319 support_keepscrolling=yes
8081 support_selectionscrolling=yes 8320 support_selectionscrolling=yes
8082 support_lastlog=yes 8321 support_lastlog=yes
8083 support_menubar=yes 8322 support_menubar=yes
8084 support_mousewheel=yes 8323 support_mousewheel=yes
8085 support_mouseslipwheel=yes 8324 support_mouseslipwheel=yes
8086 support_oldselection=yes
8087 support_cursor_blink=yes 8325 support_cursor_blink=yes
8088 support_text_blink=yes 8326 support_text_blink=yes
8089 support_pointer_blank=yes 8327 support_pointer_blank=yes
8090 support_scroll_rxvt=yes 8328 support_scroll_rxvt=yes
8091 support_scroll_next=yes 8329 support_scroll_next=yes
8096 support_xim=yes 8334 support_xim=yes
8097 support_xpm=yes 8335 support_xpm=yes
8098 support_xft=yes 8336 support_xft=yes
8099 support_unicode3=yes 8337 support_unicode3=yes
8100 support_combining=yes 8338 support_combining=yes
8339 #support_8bitctrls=yes
8340 support_iso14755=yes
8341 support_styles=yes
8101 codesets=all 8342 codesets=all
8102 fi 8343 fi
8103fi; 8344fi;
8104 8345
8105# Check whether --enable-unicode3 or --disable-unicode3 was given. 8346# Check whether --enable-unicode3 or --disable-unicode3 was given.
8106if test "${enable_unicode3+set}" = set; then 8347if test "${enable_unicode3+set}" = set; then
8107 enableval="$enable_unicode3" 8348 enableval="$enable_unicode3"
8108 if test x$enableval = xyes -o x$enableval = xno; then 8349 if test x$enableval = xyes -o x$enableval = xno; then
8109 support_unicode3=yes 8350 support_unicode3=$enableval
8110 fi 8351 fi
8111fi; 8352fi;
8112 8353
8113# Check whether --enable-combining or --disable-combining was given. 8354# Check whether --enable-combining or --disable-combining was given.
8114if test "${enable_combining+set}" = set; then 8355if test "${enable_combining+set}" = set; then
8115 enableval="$enable_combining" 8356 enableval="$enable_combining"
8116 if test x$enableval = xyes -o x$enableval = xno; then 8357 if test x$enableval = xyes -o x$enableval = xno; then
8117 support_combining=yes 8358 support_combining=$enableval
8118 fi 8359 fi
8119fi; 8360fi;
8120 8361
8121# Check whether --enable-xft or --disable-xft was given. 8362# Check whether --enable-xft or --disable-xft was given.
8122if test "${enable_xft+set}" = set; then 8363if test "${enable_xft+set}" = set; then
8123 enableval="$enable_xft" 8364 enableval="$enable_xft"
8124 if test x$enableval = xyes -o x$enableval = xno; then 8365 if test x$enableval = xyes -o x$enableval = xno; then
8125 support_xft=yes 8366 support_xft=$enableval
8367 fi
8368fi;
8369
8370# Check whether --enable-font-styles or --disable-font-styles was given.
8371if test "${enable_font_styles+set}" = set; then
8372 enableval="$enable_font_styles"
8373 if test x$enableval = xyes -o x$enableval = xno; then
8374 support_styles=$enableval
8126 fi 8375 fi
8127fi; 8376fi;
8128 8377
8129# Check whether --enable-utmp or --disable-utmp was given. 8378# Check whether --enable-utmp or --disable-utmp was given.
8130if test "${enable_utmp+set}" = set; then 8379if test "${enable_utmp+set}" = set; then
8164 if test x$enableval = xyes -o x$enableval = xno; then 8413 if test x$enableval = xyes -o x$enableval = xno; then
8165 support_inheritpixmap=$enableval 8414 support_inheritpixmap=$enableval
8166 fi 8415 fi
8167fi; 8416fi;
8168 8417
8418# Check whether --enable-tinting or --disable-tinting was given.
8419if test "${enable_tinting+set}" = set; then
8420 enableval="$enable_tinting"
8421 if test x$enableval = xyes -o x$enableval = xno; then
8422 support_tinting=$enableval
8423 fi
8424fi;
8425
8426# Check whether --enable-fading or --disable-fading was given.
8427if test "${enable_fading+set}" = set; then
8428 enableval="$enable_fading"
8429 if test x$enableval = xyes -o x$enableval = xno; then
8430 support_fading=$enableval
8431 fi
8432fi;
8433
8169# Check whether --enable-menubar or --disable-menubar was given. 8434# Check whether --enable-menubar or --disable-menubar was given.
8170if test "${enable_menubar+set}" = set; then 8435if test "${enable_menubar+set}" = set; then
8171 enableval="$enable_menubar" 8436 enableval="$enable_menubar"
8172 if test x$enableval = xyes -o x$enableval = xno; then 8437 if test x$enableval = xyes -o x$enableval = xno; then
8173 support_menubar=$enableval 8438 support_menubar=$enableval
8291_ACEOF 8556_ACEOF
8292 8557
8293 fi 8558 fi
8294fi; 8559fi;
8295 8560
8561# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8562if test "${enable_8bitctrls+set}" = set; then
8563 enableval="$enable_8bitctrls"
8564 if test x$enableval = xyes -o x$enableval = xno; then
8565 support_8bitctrls=$enableval
8566 fi
8567fi;
8568
8296RESFALLBACK=Rxvt 8569RESFALLBACK=Rxvt
8297# Check whether --enable-fallback or --disable-fallback was given. 8570# Check whether --enable-fallback or --disable-fallback was given.
8298if test "${enable_fallback+set}" = set; then 8571if test "${enable_fallback+set}" = set; then
8299 enableval="$enable_fallback" 8572 enableval="$enable_fallback"
8300 8573
8343# Check whether --with-name or --without-name was given. 8616# Check whether --with-name or --without-name was given.
8344if test "${with_name+set}" = set; then 8617if test "${with_name+set}" = set; then
8345 withval="$with_name" 8618 withval="$with_name"
8346 RXVTNAME="$withval" 8619 RXVTNAME="$withval"
8347fi; 8620fi;
8621
8622cat >>confdefs.h <<_ACEOF
8623#define RXVTNAME "$RXVTNAME"
8624_ACEOF
8625
8348 8626
8349RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 8627RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8350 8628
8351 8629
8352# Check whether --enable-strings or --disable-strings was given. 8630# Check whether --enable-strings or --disable-strings was given.
8367_ACEOF 8645_ACEOF
8368 8646
8369 fi 8647 fi
8370fi; 8648fi;
8371 8649
8650# Check whether --enable-iso14755 or --disable-iso14755 was given.
8651if test "${enable_iso14755+set}" = set; then
8652 enableval="$enable_iso14755"
8653 if test x$enableval = xyes -o x$enableval = xno; then
8654 support_iso14755=$enableval
8655 fi
8656fi;
8657
8372# Check whether --enable-frills or --disable-frills was given. 8658# Check whether --enable-frills or --disable-frills was given.
8373if test "${enable_frills+set}" = set; then 8659if test "${enable_frills+set}" = set; then
8374 enableval="$enable_frills" 8660 enableval="$enable_frills"
8375 if test x$enableval = xyes -o x$enableval = xno; then 8661 if test x$enableval = xyes -o x$enableval = xno; then
8376 support_frills=$enableval 8662 support_frills=$enableval
8377 fi 8663 fi
8378fi; 8664fi;
8379 8665
8380# Check whether --enable-linespace or --disable-linespace was given.
8381if test "${enable_linespace+set}" = set; then
8382 enableval="$enable_linespace"
8383 if test x$enableval = xyes -o x$enableval = xno; then
8384 support_linespace=$enableval
8385 fi
8386fi;
8387
8388# Check whether --enable-24bit or --disable-24bit was given. 8666# Check whether --enable-24bit or --disable-24bit was given.
8389if test "${enable_24bit+set}" = set; then 8667if test "${enable_24bit+set}" = set; then
8390 enableval="$enable_24bit" 8668 enableval="$enable_24bit"
8391 if test x$enableval = xyes -o x$enableval = xno; then 8669 if test x$enableval = xyes -o x$enableval = xno; then
8392 support_24bit=$enableval 8670 support_24bit=$enableval
8420# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8698# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
8421if test "${enable_slipwheeling+set}" = set; then 8699if test "${enable_slipwheeling+set}" = set; then
8422 enableval="$enable_slipwheeling" 8700 enableval="$enable_slipwheeling"
8423 if test x$enableval = xyes -o x$enableval = xno; then 8701 if test x$enableval = xyes -o x$enableval = xno; then
8424 support_mouseslipwheel=$enableval 8702 support_mouseslipwheel=$enableval
8425 fi
8426fi;
8427
8428# Check whether --enable-old-selection or --disable-old-selection was given.
8429if test "${enable_old_selection+set}" = set; then
8430 enableval="$enable_old_selection"
8431 if test x$enableval = xyes -o x$enableval = xno; then
8432 support_oldselection=$enableval
8433 fi
8434fi;
8435
8436# Check whether --enable-new-selection or --disable-new-selection was given.
8437if test "${enable_new_selection+set}" = set; then
8438 enableval="$enable_new_selection"
8439 if test x$enableval = xno; then
8440
8441cat >>confdefs.h <<\_ACEOF
8442#define NO_NEW_SELECTION 1
8443_ACEOF
8444
8445 fi 8703 fi
8446fi; 8704fi;
8447 8705
8448# Check whether --enable-dmalloc or --disable-dmalloc was given. 8706# Check whether --enable-dmalloc or --disable-dmalloc was given.
8449if test "${enable_dmalloc+set}" = set; then 8707if test "${enable_dmalloc+set}" = set; then
8477_ACEOF 8735_ACEOF
8478 8736
8479 fi 8737 fi
8480fi; 8738fi;
8481 8739
8482# Check whether --enable-256-color or --disable-256-color was given.
8483if test "${enable_256_color+set}" = set; then
8484 enableval="$enable_256_color"
8485 if test x$enableval = xyes; then
8486
8487cat >>confdefs.h <<\_ACEOF
8488#define TTY_256COLOR 1
8489_ACEOF
8490
8491 fi
8492fi;
8493
8494# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8740# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8495if test "${enable_cursor_blink+set}" = set; then 8741if test "${enable_cursor_blink+set}" = set; then
8496 enableval="$enable_cursor_blink" 8742 enableval="$enable_cursor_blink"
8497 if test x$enableval = xyes -o x$enableval = xno; then 8743 if test x$enableval = xyes -o x$enableval = xno; then
8498 support_cursor_blink=$enableval 8744 support_cursor_blink=$enableval
8545 8791
8546cat >>confdefs.h <<\_ACEOF 8792cat >>confdefs.h <<\_ACEOF
8547#define PROTOTYPES 1 8793#define PROTOTYPES 1
8548_ACEOF 8794_ACEOF
8549 8795
8550
8551if test -z "$CFLAGS"; then
8552 if test -z "$CCOPTS"; then
8553 CCOPTS='-O'
8554 fi
8555 CFLAGS="$CCOPTS"
8556fi
8557 8796
8558# Extract the first word of "mv", so it can be a program name with args. 8797# Extract the first word of "mv", so it can be a program name with args.
8559set dummy mv; ac_word=$2 8798set dummy mv; ac_word=$2
8560echo "$as_me:$LINENO: checking for $ac_word" >&5 8799echo "$as_me:$LINENO: checking for $ac_word" >&5
8561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8872else 9111else
8873 echo "$as_me:$LINENO: result: no" >&5 9112 echo "$as_me:$LINENO: result: no" >&5
8874echo "${ECHO_T}no" >&6 9113echo "${ECHO_T}no" >&6
8875fi 9114fi
8876 9115
9116# Extract the first word of "tic", so it can be a program name with args.
9117set dummy tic; ac_word=$2
9118echo "$as_me:$LINENO: checking for $ac_word" >&5
9119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9120if test "${ac_cv_path_TIC+set}" = set; then
9121 echo $ECHO_N "(cached) $ECHO_C" >&6
9122else
9123 case $TIC in
9124 [\\/]* | ?:[\\/]*)
9125 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9126 ;;
9127 *)
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129for as_dir in $PATH
9130do
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9135 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
9136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 break 2
9138 fi
9139done
9140done
8877 9141
9142 ;;
9143esac
9144fi
9145TIC=$ac_cv_path_TIC
8878 9146
9147if test -n "$TIC"; then
9148 echo "$as_me:$LINENO: result: $TIC" >&5
9149echo "${ECHO_T}$TIC" >&6
9150else
9151 echo "$as_me:$LINENO: result: no" >&5
9152echo "${ECHO_T}no" >&6
9153fi
8879 9154
9155
9156
9157
9158
9159if test "x$ac_path_x_has_been_run" != xyes; then
8880echo "$as_me:$LINENO: checking for X" >&5 9160 echo "$as_me:$LINENO: checking for X" >&5
8881echo $ECHO_N "checking for X... $ECHO_C" >&6 9161echo $ECHO_N "checking for X... $ECHO_C" >&6
8882 9162
9163ac_path_x_has_been_run=yes
8883 9164
8884# Check whether --with-x or --without-x was given. 9165# Check whether --with-x or --without-x was given.
8885if test "${with_x+set}" = set; then 9166if test "${with_x+set}" = set; then
8886 withval="$with_x" 9167 withval="$with_x"
8887 9168
8970 9251
8971/usr/openwin/include 9252/usr/openwin/include
8972/usr/openwin/share/include' 9253/usr/openwin/share/include'
8973 9254
8974if test "$ac_x_includes" = no; then 9255if test "$ac_x_includes" = no; then
8975 # Guess where to find include files, by looking for Intrinsic.h. 9256 # Guess where to find include files, by looking for a specified header file.
8976 # First, try using that file with no special directory specified. 9257 # First, try using that file with no special directory specified.
8977 cat >conftest.$ac_ext <<_ACEOF 9258 cat >conftest.$ac_ext <<_ACEOF
8978/* confdefs.h. */ 9259/* confdefs.h. */
8979_ACEOF 9260_ACEOF
8980cat confdefs.h >>conftest.$ac_ext 9261cat confdefs.h >>conftest.$ac_ext
9104 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9385 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9105 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9386 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9106 # Update the cache value to reflect the command line values. 9387 # Update the cache value to reflect the command line values.
9107 ac_cv_have_x="have_x=yes \ 9388 ac_cv_have_x="have_x=yes \
9108 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 9389 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9390 # It might be that x_includes is empty (headers are found in the
9391 # standard search path. Then output the corresponding message
9392 ac_out_x_includes=$x_includes
9393 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9109 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 9394 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9110echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 9395echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9111fi 9396fi
9112 9397
9398fi
9113if test "$no_x" = yes; then 9399if test "$no_x" = yes; then
9114 # Not all programs may use this symbol, but it does not hurt to define it. 9400 # Not all programs may use this symbol, but it does not hurt to define it.
9115 9401
9116cat >>confdefs.h <<\_ACEOF 9402cat >>confdefs.h <<\_ACEOF
9117#define X_DISPLAY_MISSING 1 9403#define X_DISPLAY_MISSING 1
10694 10980
10695 10981
10696 10982
10697 10983
10698 10984
10985
10986
10987
10988
10989
10699for ac_header in \ 10990for ac_header in \
10700 assert.h \ 10991 assert.h \
10701 fcntl.h \ 10992 fcntl.h \
10702 grp.h \ 10993 grp.h \
10703 libc.h \ 10994 libc.h \
10710 sys/byteorder.h \ 11001 sys/byteorder.h \
10711 sys/ioctl.h \ 11002 sys/ioctl.h \
10712 sys/select.h \ 11003 sys/select.h \
10713 sys/sockio.h \ 11004 sys/sockio.h \
10714 sys/strredir.h \ 11005 sys/strredir.h \
11006 sys/stropts.h \
10715 sys/time.h \ 11007 sys/time.h \
10716 utmp.h \ 11008 utmp.h \
10717 utmpx.h \ 11009 utmpx.h \
10718 stdint.h \ 11010 stdint.h \
11011 pty.h \
11012 wchar.h \
11013 cwchar \
11014 clocale \
10719 11015
10720do 11016do
10721as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10722if eval "test \"\${$as_ac_Header+set}\" = set"; then 11018if eval "test \"\${$as_ac_Header+set}\" = set"; then
10723 echo "$as_me:$LINENO: checking for $ac_header" >&5 11019 echo "$as_me:$LINENO: checking for $ac_header" >&5
11507_ACEOF 11803_ACEOF
11508 11804
11509fi 11805fi
11510 11806
11511 11807
11512
11513echo "$as_me:$LINENO: checking for char" >&5
11514echo $ECHO_N "checking for char... $ECHO_C" >&6
11515if test "${ac_cv_type_char+set}" = set; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517else
11518 cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
11524$ac_includes_default
11525int
11526main ()
11527{
11528if ((char *) 0)
11529 return 0;
11530if (sizeof (char))
11531 return 0;
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536rm -f conftest.$ac_objext
11537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11538 (eval $ac_compile) 2>conftest.er1
11539 ac_status=$?
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
11545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; } &&
11551 { ac_try='test -s conftest.$ac_objext'
11552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553 (eval $ac_try) 2>&5
11554 ac_status=$?
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; }; then
11557 ac_cv_type_char=yes
11558else
11559 echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562ac_cv_type_char=no
11563fi
11564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11565fi
11566echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11567echo "${ECHO_T}$ac_cv_type_char" >&6
11568
11569echo "$as_me:$LINENO: checking size of char" >&5
11570echo $ECHO_N "checking size of char... $ECHO_C" >&6
11571if test "${ac_cv_sizeof_char+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11573else
11574 if test "$ac_cv_type_char" = yes; then
11575 # The cast to unsigned long works around a bug in the HP C Compiler
11576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11578 # This bug is HP SR number 8606223364.
11579 if test "$cross_compiling" = yes; then
11580 # Depending upon the size, compute the lo and hi bounds.
11581cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h. */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h. */
11587$ac_includes_default
11588int
11589main ()
11590{
11591static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11592test_array [0] = 0
11593
11594 ;
11595 return 0;
11596}
11597_ACEOF
11598rm -f conftest.$ac_objext
11599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11600 (eval $ac_compile) 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } &&
11607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest.$ac_objext'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11616 ac_status=$?
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; }; then
11619 ac_lo=0 ac_mid=0
11620 while :; do
11621 cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h. */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h. */
11627$ac_includes_default
11628int
11629main ()
11630{
11631static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11632test_array [0] = 0
11633
11634 ;
11635 return 0;
11636}
11637_ACEOF
11638rm -f conftest.$ac_objext
11639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>conftest.er1
11641 ac_status=$?
11642 grep -v '^ *+' conftest.er1 >conftest.err
11643 rm -f conftest.er1
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest.$ac_objext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 ac_hi=$ac_mid; break
11660else
11661 echo "$as_me: failed program was:" >&5
11662sed 's/^/| /' conftest.$ac_ext >&5
11663
11664ac_lo=`expr $ac_mid + 1`
11665 if test $ac_lo -le $ac_mid; then
11666 ac_lo= ac_hi=
11667 break
11668 fi
11669 ac_mid=`expr 2 '*' $ac_mid + 1`
11670fi
11671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11672 done
11673else
11674 echo "$as_me: failed program was:" >&5
11675sed 's/^/| /' conftest.$ac_ext >&5
11676
11677cat >conftest.$ac_ext <<_ACEOF
11678/* confdefs.h. */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h. */
11683$ac_includes_default
11684int
11685main ()
11686{
11687static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11688test_array [0] = 0
11689
11690 ;
11691 return 0;
11692}
11693_ACEOF
11694rm -f conftest.$ac_objext
11695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11696 (eval $ac_compile) 2>conftest.er1
11697 ac_status=$?
11698 grep -v '^ *+' conftest.er1 >conftest.err
11699 rm -f conftest.er1
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; } &&
11709 { ac_try='test -s conftest.$ac_objext'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 ac_hi=-1 ac_mid=-1
11716 while :; do
11717 cat >conftest.$ac_ext <<_ACEOF
11718/* confdefs.h. */
11719_ACEOF
11720cat confdefs.h >>conftest.$ac_ext
11721cat >>conftest.$ac_ext <<_ACEOF
11722/* end confdefs.h. */
11723$ac_includes_default
11724int
11725main ()
11726{
11727static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11728test_array [0] = 0
11729
11730 ;
11731 return 0;
11732}
11733_ACEOF
11734rm -f conftest.$ac_objext
11735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11736 (eval $ac_compile) 2>conftest.er1
11737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
11743 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest.$ac_objext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 ac_lo=$ac_mid; break
11756else
11757 echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
11760ac_hi=`expr '(' $ac_mid ')' - 1`
11761 if test $ac_mid -le $ac_hi; then
11762 ac_lo= ac_hi=
11763 break
11764 fi
11765 ac_mid=`expr 2 '*' $ac_mid`
11766fi
11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768 done
11769else
11770 echo "$as_me: failed program was:" >&5
11771sed 's/^/| /' conftest.$ac_ext >&5
11772
11773ac_lo= ac_hi=
11774fi
11775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11776fi
11777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11778# Binary search between lo and hi bounds.
11779while test "x$ac_lo" != "x$ac_hi"; do
11780 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11781 cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
11787$ac_includes_default
11788int
11789main ()
11790{
11791static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11792test_array [0] = 0
11793
11794 ;
11795 return 0;
11796}
11797_ACEOF
11798rm -f conftest.$ac_objext
11799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11800 (eval $ac_compile) 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest.$ac_objext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_hi=$ac_mid
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824ac_lo=`expr '(' $ac_mid ')' + 1`
11825fi
11826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11827done
11828case $ac_lo in
11829?*) ac_cv_sizeof_char=$ac_lo;;
11830'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11831See \`config.log' for more details." >&5
11832echo "$as_me: error: cannot compute sizeof (char), 77
11833See \`config.log' for more details." >&2;}
11834 { (exit 1); exit 1; }; } ;;
11835esac
11836else
11837 if test "$cross_compiling" = yes; then
11838 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11839echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11840 { (exit 1); exit 1; }; }
11841else
11842 cat >conftest.$ac_ext <<_ACEOF
11843/* confdefs.h. */
11844_ACEOF
11845cat confdefs.h >>conftest.$ac_ext
11846cat >>conftest.$ac_ext <<_ACEOF
11847/* end confdefs.h. */
11848$ac_includes_default
11849long longval () { return (long) (sizeof (char)); }
11850unsigned long ulongval () { return (long) (sizeof (char)); }
11851#include <stdio.h>
11852#include <stdlib.h>
11853int
11854main ()
11855{
11856
11857 FILE *f = fopen ("conftest.val", "w");
11858 if (! f)
11859 exit (1);
11860 if (((long) (sizeof (char))) < 0)
11861 {
11862 long i = longval ();
11863 if (i != ((long) (sizeof (char))))
11864 exit (1);
11865 fprintf (f, "%ld\n", i);
11866 }
11867 else
11868 {
11869 unsigned long i = ulongval ();
11870 if (i != ((long) (sizeof (char))))
11871 exit (1);
11872 fprintf (f, "%lu\n", i);
11873 }
11874 exit (ferror (f) || fclose (f) != 0);
11875
11876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest$ac_exeext
11881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11882 (eval $ac_link) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_sizeof_char=`cat conftest.val`
11892else
11893 echo "$as_me: program exited with status $ac_status" >&5
11894echo "$as_me: failed program was:" >&5
11895sed 's/^/| /' conftest.$ac_ext >&5
11896
11897( exit $ac_status )
11898{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11899See \`config.log' for more details." >&5
11900echo "$as_me: error: cannot compute sizeof (char), 77
11901See \`config.log' for more details." >&2;}
11902 { (exit 1); exit 1; }; }
11903fi
11904rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11905fi
11906fi
11907rm -f conftest.val
11908else
11909 ac_cv_sizeof_char=0
11910fi
11911fi
11912echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11913echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11914cat >>confdefs.h <<_ACEOF
11915#define SIZEOF_CHAR $ac_cv_sizeof_char
11916_ACEOF
11917
11918
11919echo "$as_me:$LINENO: checking for short" >&5 11808echo "$as_me:$LINENO: checking for short" >&5
11920echo $ECHO_N "checking for short... $ECHO_C" >&6 11809echo $ECHO_N "checking for short... $ECHO_C" >&6
11921if test "${ac_cv_type_short+set}" = set; then 11810if test "${ac_cv_type_short+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6 11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11923else 11812else
12726cat >>confdefs.h <<_ACEOF 12615cat >>confdefs.h <<_ACEOF
12727#define SIZEOF_INT $ac_cv_sizeof_int 12616#define SIZEOF_INT $ac_cv_sizeof_int
12728_ACEOF 12617_ACEOF
12729 12618
12730 12619
12731echo "$as_me:$LINENO: checking for long" >&5
12732echo $ECHO_N "checking for long... $ECHO_C" >&6
12733if test "${ac_cv_type_long+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736 cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742$ac_includes_default
12743int
12744main ()
12745{
12746if ((long *) 0)
12747 return 0;
12748if (sizeof (long))
12749 return 0;
12750 ;
12751 return 0;
12752}
12753_ACEOF
12754rm -f conftest.$ac_objext
12755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
12763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 ac_cv_type_long=yes
12776else
12777 echo "$as_me: failed program was:" >&5
12778sed 's/^/| /' conftest.$ac_ext >&5
12779
12780ac_cv_type_long=no
12781fi
12782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783fi
12784echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12785echo "${ECHO_T}$ac_cv_type_long" >&6
12786
12787echo "$as_me:$LINENO: checking size of long" >&5
12788echo $ECHO_N "checking size of long... $ECHO_C" >&6
12789if test "${ac_cv_sizeof_long+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12791else
12792 if test "$ac_cv_type_long" = yes; then
12793 # The cast to unsigned long works around a bug in the HP C Compiler
12794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12796 # This bug is HP SR number 8606223364.
12797 if test "$cross_compiling" = yes; then
12798 # Depending upon the size, compute the lo and hi bounds.
12799cat >conftest.$ac_ext <<_ACEOF
12800/* confdefs.h. */
12801_ACEOF
12802cat confdefs.h >>conftest.$ac_ext
12803cat >>conftest.$ac_ext <<_ACEOF
12804/* end confdefs.h. */
12805$ac_includes_default
12806int
12807main ()
12808{
12809static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12810test_array [0] = 0
12811
12812 ;
12813 return 0;
12814}
12815_ACEOF
12816rm -f conftest.$ac_objext
12817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818 (eval $ac_compile) 2>conftest.er1
12819 ac_status=$?
12820 grep -v '^ *+' conftest.er1 >conftest.err
12821 rm -f conftest.er1
12822 cat conftest.err >&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } &&
12825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12828 ac_status=$?
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; } &&
12831 { ac_try='test -s conftest.$ac_objext'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; }; then
12837 ac_lo=0 ac_mid=0
12838 while :; do
12839 cat >conftest.$ac_ext <<_ACEOF
12840/* confdefs.h. */
12841_ACEOF
12842cat confdefs.h >>conftest.$ac_ext
12843cat >>conftest.$ac_ext <<_ACEOF
12844/* end confdefs.h. */
12845$ac_includes_default
12846int
12847main ()
12848{
12849static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12850test_array [0] = 0
12851
12852 ;
12853 return 0;
12854}
12855_ACEOF
12856rm -f conftest.$ac_objext
12857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12858 (eval $ac_compile) 2>conftest.er1
12859 ac_status=$?
12860 grep -v '^ *+' conftest.er1 >conftest.err
12861 rm -f conftest.er1
12862 cat conftest.err >&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); } &&
12865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; } &&
12871 { ac_try='test -s conftest.$ac_objext'
12872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12873 (eval $ac_try) 2>&5
12874 ac_status=$?
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); }; }; then
12877 ac_hi=$ac_mid; break
12878else
12879 echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
12882ac_lo=`expr $ac_mid + 1`
12883 if test $ac_lo -le $ac_mid; then
12884 ac_lo= ac_hi=
12885 break
12886 fi
12887 ac_mid=`expr 2 '*' $ac_mid + 1`
12888fi
12889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12890 done
12891else
12892 echo "$as_me: failed program was:" >&5
12893sed 's/^/| /' conftest.$ac_ext >&5
12894
12895cat >conftest.$ac_ext <<_ACEOF
12896/* confdefs.h. */
12897_ACEOF
12898cat confdefs.h >>conftest.$ac_ext
12899cat >>conftest.$ac_ext <<_ACEOF
12900/* end confdefs.h. */
12901$ac_includes_default
12902int
12903main ()
12904{
12905static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12906test_array [0] = 0
12907
12908 ;
12909 return 0;
12910}
12911_ACEOF
12912rm -f conftest.$ac_objext
12913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; } &&
12927 { ac_try='test -s conftest.$ac_objext'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_hi=-1 ac_mid=-1
12934 while :; do
12935 cat >conftest.$ac_ext <<_ACEOF
12936/* confdefs.h. */
12937_ACEOF
12938cat confdefs.h >>conftest.$ac_ext
12939cat >>conftest.$ac_ext <<_ACEOF
12940/* end confdefs.h. */
12941$ac_includes_default
12942int
12943main ()
12944{
12945static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12946test_array [0] = 0
12947
12948 ;
12949 return 0;
12950}
12951_ACEOF
12952rm -f conftest.$ac_objext
12953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12954 (eval $ac_compile) 2>conftest.er1
12955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try='test -s conftest.$ac_objext'
12968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12969 (eval $ac_try) 2>&5
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 ac_lo=$ac_mid; break
12974else
12975 echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
12978ac_hi=`expr '(' $ac_mid ')' - 1`
12979 if test $ac_mid -le $ac_hi; then
12980 ac_lo= ac_hi=
12981 break
12982 fi
12983 ac_mid=`expr 2 '*' $ac_mid`
12984fi
12985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986 done
12987else
12988 echo "$as_me: failed program was:" >&5
12989sed 's/^/| /' conftest.$ac_ext >&5
12990
12991ac_lo= ac_hi=
12992fi
12993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12994fi
12995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12996# Binary search between lo and hi bounds.
12997while test "x$ac_lo" != "x$ac_hi"; do
12998 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12999 cat >conftest.$ac_ext <<_ACEOF
13000/* confdefs.h. */
13001_ACEOF
13002cat confdefs.h >>conftest.$ac_ext
13003cat >>conftest.$ac_ext <<_ACEOF
13004/* end confdefs.h. */
13005$ac_includes_default
13006int
13007main ()
13008{
13009static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13010test_array [0] = 0
13011
13012 ;
13013 return 0;
13014}
13015_ACEOF
13016rm -f conftest.$ac_objext
13017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13028 ac_status=$?
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; } &&
13031 { ac_try='test -s conftest.$ac_objext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_hi=$ac_mid
13038else
13039 echo "$as_me: failed program was:" >&5
13040sed 's/^/| /' conftest.$ac_ext >&5
13041
13042ac_lo=`expr '(' $ac_mid ')' + 1`
13043fi
13044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13045done
13046case $ac_lo in
13047?*) ac_cv_sizeof_long=$ac_lo;;
13048'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13049See \`config.log' for more details." >&5
13050echo "$as_me: error: cannot compute sizeof (long), 77
13051See \`config.log' for more details." >&2;}
13052 { (exit 1); exit 1; }; } ;;
13053esac
13054else
13055 if test "$cross_compiling" = yes; then
13056 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13057echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13058 { (exit 1); exit 1; }; }
13059else
13060 cat >conftest.$ac_ext <<_ACEOF
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066$ac_includes_default
13067long longval () { return (long) (sizeof (long)); }
13068unsigned long ulongval () { return (long) (sizeof (long)); }
13069#include <stdio.h>
13070#include <stdlib.h>
13071int
13072main ()
13073{
13074
13075 FILE *f = fopen ("conftest.val", "w");
13076 if (! f)
13077 exit (1);
13078 if (((long) (sizeof (long))) < 0)
13079 {
13080 long i = longval ();
13081 if (i != ((long) (sizeof (long))))
13082 exit (1);
13083 fprintf (f, "%ld\n", i);
13084 }
13085 else
13086 {
13087 unsigned long i = ulongval ();
13088 if (i != ((long) (sizeof (long))))
13089 exit (1);
13090 fprintf (f, "%lu\n", i);
13091 }
13092 exit (ferror (f) || fclose (f) != 0);
13093
13094 ;
13095 return 0;
13096}
13097_ACEOF
13098rm -f conftest$ac_exeext
13099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13100 (eval $ac_link) 2>&5
13101 ac_status=$?
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13106 ac_status=$?
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13109 ac_cv_sizeof_long=`cat conftest.val`
13110else
13111 echo "$as_me: program exited with status $ac_status" >&5
13112echo "$as_me: failed program was:" >&5
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
13115( exit $ac_status )
13116{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13117See \`config.log' for more details." >&5
13118echo "$as_me: error: cannot compute sizeof (long), 77
13119See \`config.log' for more details." >&2;}
13120 { (exit 1); exit 1; }; }
13121fi
13122rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13123fi
13124fi
13125rm -f conftest.val
13126else
13127 ac_cv_sizeof_long=0
13128fi
13129fi
13130echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13131echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13132cat >>confdefs.h <<_ACEOF
13133#define SIZEOF_LONG $ac_cv_sizeof_long
13134_ACEOF
13135
13136
13137echo "$as_me:$LINENO: checking for long long" >&5 12620echo "$as_me:$LINENO: checking for long long" >&5
13138echo $ECHO_N "checking for long long... $ECHO_C" >&6 12621echo $ECHO_N "checking for long long... $ECHO_C" >&6
13139if test "${ac_cv_type_long_long+set}" = set; then 12622if test "${ac_cv_type_long_long+set}" = set; then
13140 echo $ECHO_N "(cached) $ECHO_C" >&6 12623 echo $ECHO_N "(cached) $ECHO_C" >&6
13141else 12624else
13992 rxvt_cv_int16_t=yes 13475 rxvt_cv_int16_t=yes
13993else 13476else
13994 echo "$as_me: failed program was:" >&5 13477 echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5 13478sed 's/^/| /' conftest.$ac_ext >&5
13996 13479
13997if test $ac_cv_sizeof_char -ge 2; then 13480if test "$ac_cv_sizeof_char" -ge 2; then
13998 rxvt_cv_int16_t=" char" 13481 rxvt_cv_int16_t=" char"
13999else 13482else
14000 if test $ac_cv_sizeof_short -ge 2; then 13483 if test "$ac_cv_sizeof_short" -ge 2; then
14001 rxvt_cv_int16_t=" short" 13484 rxvt_cv_int16_t=" short"
14002 else 13485 else
14003 if test $ac_cv_sizeof_int -ge 2; then 13486 if test "$ac_cv_sizeof_int" -ge 2; then
14004 rxvt_cv_int16_t=" int" 13487 rxvt_cv_int16_t=" int"
14005 else 13488 else
14006 if test $ac_cv_sizeof_long -ge 2; then 13489 if test "$ac_cv_sizeof_long" -ge 2; then
14007 rxvt_cv_int16_t=" long" 13490 rxvt_cv_int16_t=" long"
14008 else 13491 else
14009 if test $ac_cv_sizeof_long_long -ge 2; then 13492 if test "$ac_cv_sizeof_long_long" -ge 2; then
14010 rxvt_cv_int16_t=" long long" 13493 rxvt_cv_int16_t=" long long"
14011 else 13494 else
14012 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 13495 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14013 fi 13496 fi
14014 fi 13497 fi
14074 rxvt_cv_uint16_t=yes 13557 rxvt_cv_uint16_t=yes
14075else 13558else
14076 echo "$as_me: failed program was:" >&5 13559 echo "$as_me: failed program was:" >&5
14077sed 's/^/| /' conftest.$ac_ext >&5 13560sed 's/^/| /' conftest.$ac_ext >&5
14078 13561
14079if test $ac_cv_sizeof_char -ge 2; then 13562if test "$ac_cv_sizeof_char" -ge 2; then
14080 rxvt_cv_uint16_t="unsigned char" 13563 rxvt_cv_uint16_t="unsigned char"
14081else 13564else
14082 if test $ac_cv_sizeof_short -ge 2; then 13565 if test "$ac_cv_sizeof_short" -ge 2; then
14083 rxvt_cv_uint16_t="unsigned short" 13566 rxvt_cv_uint16_t="unsigned short"
14084 else 13567 else
14085 if test $ac_cv_sizeof_int -ge 2; then 13568 if test "$ac_cv_sizeof_int" -ge 2; then
14086 rxvt_cv_uint16_t="unsigned int" 13569 rxvt_cv_uint16_t="unsigned int"
14087 else 13570 else
14088 if test $ac_cv_sizeof_long -ge 2; then 13571 if test "$ac_cv_sizeof_long" -ge 2; then
14089 rxvt_cv_uint16_t="unsigned long" 13572 rxvt_cv_uint16_t="unsigned long"
14090 else 13573 else
14091 if test $ac_cv_sizeof_long_long -ge 2; then 13574 if test "$ac_cv_sizeof_long_long" -ge 2; then
14092 rxvt_cv_uint16_t="unsigned long long" 13575 rxvt_cv_uint16_t="unsigned long long"
14093 else 13576 else
14094 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 13577 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14095 fi 13578 fi
14096 fi 13579 fi
14156 rxvt_cv_int32_t=yes 13639 rxvt_cv_int32_t=yes
14157else 13640else
14158 echo "$as_me: failed program was:" >&5 13641 echo "$as_me: failed program was:" >&5
14159sed 's/^/| /' conftest.$ac_ext >&5 13642sed 's/^/| /' conftest.$ac_ext >&5
14160 13643
14161if test $ac_cv_sizeof_char -ge 4; then 13644if test "$ac_cv_sizeof_char" -ge 4; then
14162 rxvt_cv_int32_t=" char" 13645 rxvt_cv_int32_t=" char"
14163else 13646else
14164 if test $ac_cv_sizeof_short -ge 4; then 13647 if test "$ac_cv_sizeof_short" -ge 4; then
14165 rxvt_cv_int32_t=" short" 13648 rxvt_cv_int32_t=" short"
14166 else 13649 else
14167 if test $ac_cv_sizeof_int -ge 4; then 13650 if test "$ac_cv_sizeof_int" -ge 4; then
14168 rxvt_cv_int32_t=" int" 13651 rxvt_cv_int32_t=" int"
14169 else 13652 else
14170 if test $ac_cv_sizeof_long -ge 4; then 13653 if test "$ac_cv_sizeof_long" -ge 4; then
14171 rxvt_cv_int32_t=" long" 13654 rxvt_cv_int32_t=" long"
14172 else 13655 else
14173 if test $ac_cv_sizeof_long_long -ge 4; then 13656 if test "$ac_cv_sizeof_long_long" -ge 4; then
14174 rxvt_cv_int32_t=" long long" 13657 rxvt_cv_int32_t=" long long"
14175 else 13658 else
14176 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 13659 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14177 fi 13660 fi
14178 fi 13661 fi
14238 rxvt_cv_uint32_t=yes 13721 rxvt_cv_uint32_t=yes
14239else 13722else
14240 echo "$as_me: failed program was:" >&5 13723 echo "$as_me: failed program was:" >&5
14241sed 's/^/| /' conftest.$ac_ext >&5 13724sed 's/^/| /' conftest.$ac_ext >&5
14242 13725
14243if test $ac_cv_sizeof_char -ge 4; then 13726if test "$ac_cv_sizeof_char" -ge 4; then
14244 rxvt_cv_uint32_t="unsigned char" 13727 rxvt_cv_uint32_t="unsigned char"
14245else 13728else
14246 if test $ac_cv_sizeof_short -ge 4; then 13729 if test "$ac_cv_sizeof_short" -ge 4; then
14247 rxvt_cv_uint32_t="unsigned short" 13730 rxvt_cv_uint32_t="unsigned short"
14248 else 13731 else
14249 if test $ac_cv_sizeof_int -ge 4; then 13732 if test "$ac_cv_sizeof_int" -ge 4; then
14250 rxvt_cv_uint32_t="unsigned int" 13733 rxvt_cv_uint32_t="unsigned int"
14251 else 13734 else
14252 if test $ac_cv_sizeof_long -ge 4; then 13735 if test "$ac_cv_sizeof_long" -ge 4; then
14253 rxvt_cv_uint32_t="unsigned long" 13736 rxvt_cv_uint32_t="unsigned long"
14254 else 13737 else
14255 if test $ac_cv_sizeof_long_long -ge 4; then 13738 if test "$ac_cv_sizeof_long_long" -ge 4; then
14256 rxvt_cv_uint32_t="unsigned long long" 13739 rxvt_cv_uint32_t="unsigned long long"
14257 else 13740 else
14258 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 13741 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14259 fi 13742 fi
14260 fi 13743 fi
14274 else 13757 else
14275 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 13758 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14276 fi 13759 fi
14277fi 13760fi
14278 13761
14279if test $ac_cv_sizeof_int_p -eq 8; then 13762if test "$ac_cv_sizeof_int_p" -eq 8; then
14280 rxvt_intp_define="#define intp_t int64_t" 13763 rxvt_intp_define="#define intp_t int64_t"
14281 rxvt_u_intp_define="#define u_intp_t u_int64_t" 13764 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14282else 13765else
14283 if test $ac_cv_sizeof_int_p -eq 4; then 13766 if test "$ac_cv_sizeof_int_p" -eq 4; then
14284 rxvt_intp_define="#define intp_t int32_t" 13767 rxvt_intp_define="#define intp_t int32_t"
14285 rxvt_u_intp_define="#define u_intp_t u_int32_t" 13768 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14286 else 13769 else
14287 if test $ac_cv_sizeof_int_p -eq 2; then 13770 if test "$ac_cv_sizeof_int_p" -eq 2; then
14288 rxvt_intp_define="#define intp_t int16_t" 13771 rxvt_intp_define="#define intp_t int16_t"
14289 rxvt_u_intp_define="#define u_intp_t u_int16_t" 13772 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14290 else 13773 else
14291 rxvt_intp_define="#error set intp_t" 13774 rxvt_intp_define="#error set intp_t"
14292 rxvt_u_intp_define="#error set u_intp_t" 13775 rxvt_u_intp_define="#error set u_intp_t"
15981#define HAVE_NL_LANGINFO 1 15464#define HAVE_NL_LANGINFO 1
15982_ACEOF 15465_ACEOF
15983 15466
15984fi 15467fi
15985 15468
15469echo "$as_me:$LINENO: checking for broken XIM callback" >&5
15470echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
15471if test "${rxvt_broken_ximcb+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473else
15474 cat >conftest.$ac_ext <<_ACEOF
15475
15476#include <X11/Xlib.h>
15477
15478void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
15479
15480void f() {
15481 XIMCallback cb;
15482 cb.callback = im_destroy_cb;
15483}
15484
15485_ACEOF
15486rm -f conftest.$ac_objext
15487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15488 (eval $ac_compile) 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15498 ac_status=$?
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; } &&
15501 { ac_try='test -s conftest.$ac_objext'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15507 rxvt_broken_ximcb=yes
15508else
15509 echo "$as_me: failed program was:" >&5
15510sed 's/^/| /' conftest.$ac_ext >&5
15511
15512rxvt_broken_ximcb=no
15513fi
15514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15515fi
15516echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
15517echo "${ECHO_T}$rxvt_broken_ximcb" >&6
15518
15519if test x$rxvt_broken_ximcb = xyes; then
15520
15521cat >>confdefs.h <<\_ACEOF
15522#define XIMCB_PROTO_BROKEN 1
15523_ACEOF
15524
15525fi
15526
15986echo "$as_me:$LINENO: checking for getpt" >&5 15527echo "$as_me:$LINENO: checking for getpt" >&5
15987echo $ECHO_N "checking for getpt... $ECHO_C" >&6 15528echo $ECHO_N "checking for getpt... $ECHO_C" >&6
15988if test "${rxvt_cv_func_getpt+set}" = set; then 15529if test "${rxvt_cv_func_getpt+set}" = set; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6 15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15990else 15531else
16167 15708
16168cat >>confdefs.h <<_ACEOF 15709cat >>confdefs.h <<_ACEOF
16169#define PTYCHAR2 "$pch2" 15710#define PTYCHAR2 "$pch2"
16170_ACEOF 15711_ACEOF
16171 15712
16172fi
16173
16174echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16175echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16176if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
16179 ac_check_lib_save_LIBS=$LIBS
16180LIBS="-lxpg4 $LIBS"
16181cat >conftest.$ac_ext <<_ACEOF
16182/* confdefs.h. */
16183_ACEOF
16184cat confdefs.h >>conftest.$ac_ext
16185cat >>conftest.$ac_ext <<_ACEOF
16186/* end confdefs.h. */
16187
16188/* Override any gcc2 internal prototype to avoid an error. */
16189#ifdef __cplusplus
16190extern "C"
16191#endif
16192/* We use char because int might match the return type of a gcc2
16193 builtin and then its argument prototype would still apply. */
16194char setlocale ();
16195int
16196main ()
16197{
16198setlocale ();
16199 ;
16200 return 0;
16201}
16202_ACEOF
16203rm -f conftest.$ac_objext conftest$ac_exeext
16204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16205 (eval $ac_link) 2>conftest.er1
16206 ac_status=$?
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
16212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214 (eval $ac_try) 2>&5
16215 ac_status=$?
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); }; } &&
16218 { ac_try='test -s conftest$ac_exeext'
16219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220 (eval $ac_try) 2>&5
16221 ac_status=$?
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); }; }; then
16224 ac_cv_lib_xpg4_setlocale=yes
16225else
16226 echo "$as_me: failed program was:" >&5
16227sed 's/^/| /' conftest.$ac_ext >&5
16228
16229ac_cv_lib_xpg4_setlocale=no
16230fi
16231rm -f conftest.err conftest.$ac_objext \
16232 conftest$ac_exeext conftest.$ac_ext
16233LIBS=$ac_check_lib_save_LIBS
16234fi
16235echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16236echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16237if test $ac_cv_lib_xpg4_setlocale = yes; then
16238 LIBS="$LIBS -lxpg4"
16239fi
16240
16241
16242if test x$support_inheritpixmap = xyes; then
16243
16244cat >>confdefs.h <<\_ACEOF
16245#define TRANSPARENT 1
16246_ACEOF
16247
16248fi
16249if test x$support_keepscrolling = xno; then
16250
16251cat >>confdefs.h <<\_ACEOF
16252#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16253_ACEOF
16254
16255fi
16256if test x$support_selectionscrolling = xyes; then
16257
16258cat >>confdefs.h <<\_ACEOF
16259#define SELECTION_SCROLLING 1
16260_ACEOF
16261
16262fi
16263if test x$support_menubar = xyes; then
16264
16265cat >>confdefs.h <<\_ACEOF
16266#define MENUBAR 1
16267_ACEOF
16268
16269fi
16270if test x$support_frills = xno; then
16271
16272cat >>confdefs.h <<\_ACEOF
16273#define NO_FRILLS 1
16274_ACEOF
16275
16276fi
16277if test x$support_linespace = xno; then
16278
16279cat >>confdefs.h <<\_ACEOF
16280#define NO_LINESPACE 1
16281_ACEOF
16282
16283fi
16284if test x$support_24bit = xyes; then
16285
16286cat >>confdefs.h <<\_ACEOF
16287#define PREFER_24BIT 1
16288_ACEOF
16289
16290fi
16291if test x$support_mousewheel = xyes; then
16292
16293cat >>confdefs.h <<\_ACEOF
16294#define MOUSE_WHEEL 1
16295_ACEOF
16296
16297fi
16298if test x$support_mouseslipwheel = xyes; then
16299
16300cat >>confdefs.h <<\_ACEOF
16301#define MOUSE_SLIP_WHEELING 1
16302_ACEOF
16303
16304fi
16305if test x$support_oldselection = xno; then
16306
16307cat >>confdefs.h <<\_ACEOF
16308#define NO_OLD_SELECTION 1
16309_ACEOF
16310
16311fi
16312if test x$support_utmp = xyes; then
16313
16314cat >>confdefs.h <<\_ACEOF
16315#define UTMP_SUPPORT 1
16316_ACEOF
16317
16318fi
16319if test x$support_wtmp = xyes; then
16320
16321cat >>confdefs.h <<\_ACEOF
16322#define WTMP_SUPPORT 1
16323_ACEOF
16324
16325fi
16326if test x$support_lastlog = xyes; then
16327
16328cat >>confdefs.h <<\_ACEOF
16329#define LASTLOG_SUPPORT 1
16330_ACEOF
16331
16332fi
16333if test x$support_xim = xyes -o x$multichar_set = xyes; then
16334 if test x$rxvt_cv_func_xlocale = xyes; then
16335
16336cat >>confdefs.h <<\_ACEOF
16337#define USE_XIM 1
16338_ACEOF
16339
16340 fi
16341fi
16342if test x$support_xpm = xyes; then
16343
16344cat >>confdefs.h <<\_ACEOF
16345#define XPM_BACKGROUND 1
16346_ACEOF
16347
16348fi
16349if test x$support_scroll_rxvt = xyes; then
16350
16351cat >>confdefs.h <<\_ACEOF
16352#define RXVT_SCROLLBAR 1
16353_ACEOF
16354
16355 scrolltypes="rxvt"
16356fi
16357if test x$support_scroll_next = xyes; then
16358
16359cat >>confdefs.h <<\_ACEOF
16360#define NEXT_SCROLLBAR 1
16361_ACEOF
16362
16363 scrolltypes="$scrolltypes next"
16364fi
16365if test x$support_scroll_xterm = xyes; then
16366
16367cat >>confdefs.h <<\_ACEOF
16368#define XTERM_SCROLLBAR 1
16369_ACEOF
16370
16371 scrolltypes="$scrolltypes xterm"
16372fi
16373if test x$support_scroll_plain = xyes; then
16374
16375cat >>confdefs.h <<\_ACEOF
16376#define PLAIN_SCROLLBAR 1
16377_ACEOF
16378
16379 scrolltypes="$scrolltypes plain"
16380fi
16381if test x$support_pointer_blank = xyes; then
16382
16383cat >>confdefs.h <<\_ACEOF
16384#define POINTER_BLANK 1
16385_ACEOF
16386
16387fi
16388if test x$support_cursor_blink = xyes; then
16389
16390cat >>confdefs.h <<\_ACEOF
16391#define CURSOR_BLINK 1
16392_ACEOF
16393
16394fi
16395if test x$support_text_blink = xyes; then
16396
16397cat >>confdefs.h <<\_ACEOF
16398#define TEXT_BLINK 1
16399_ACEOF
16400
16401fi
16402if test x$support_unicode3 = xyes; then
16403
16404cat >>confdefs.h <<\_ACEOF
16405#define UNICODE_3 1
16406_ACEOF
16407
16408fi
16409if test x$support_combining = xyes; then
16410
16411cat >>confdefs.h <<\_ACEOF
16412#define ENABLE_COMBINING 1
16413_ACEOF
16414
16415fi
16416if test x$codesets = xall; then
16417 codesets=jp,jp-ext,kr,cn,cn-ext
16418fi
16419for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16420
16421cat >>confdefs.h <<\_ACEOF
16422#define ENCODING_EU 1
16423_ACEOF
16424
16425
16426cat >>confdefs.h <<\_ACEOF
16427#define ENCODING_VN 1
16428_ACEOF
16429
16430 case "$codeset" in
16431 JP )
16432cat >>confdefs.h <<\_ACEOF
16433#define ENCODING_JP 1
16434_ACEOF
16435 ;;
16436 JP_EXT )
16437cat >>confdefs.h <<\_ACEOF
16438#define ENCODING_JP_EXT 1
16439_ACEOF
16440 ;;
16441 KR )
16442cat >>confdefs.h <<\_ACEOF
16443#define ENCODING_KR 1
16444_ACEOF
16445 ;;
16446 CN )
16447cat >>confdefs.h <<\_ACEOF
16448#define ENCODING_CN 1
16449_ACEOF
16450 ;;
16451 CN_EXT )
16452cat >>confdefs.h <<\_ACEOF
16453#define ENCODING_CN_EXT 1
16454_ACEOF
16455 ;;
16456 esac
16457done
16458
16459
16460CFLAGS=${CFLAGS--O}
16461LDFLAGS=${LDFLAGS--O}
16462
16463CPPFLAGS="$CPPFLAGS"
16464
16465
16466
16467
16468
16469
16470
16471if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16472 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16473 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16474 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16475 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16476 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16477fi
16478
16479
16480
16481
16482
16483if test x$support_addstrings = xno; then
16484
16485cat >>confdefs.h <<\_ACEOF
16486#define NO_STRINGS 1
16487_ACEOF
16488
16489fi
16490
16491MCOMMON=./autoconf/Make.common
16492
16493
16494test "$program_prefix" != NONE &&
16495 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16496# Use a double $ so make ignores it.
16497test "$program_suffix" != NONE &&
16498 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16499# Double any \ or $. echo might interpret backslashes.
16500# By default was `s,x,x', remove it if useless.
16501cat <<\_ACEOF >conftest.sed
16502s/[\\$]/&&/g;s/;s,x,x,$//
16503_ACEOF
16504program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16505rm conftest.sed
16506
16507
16508
16509
16510
16511if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16512 include_stdint_h="#include <stdint.h>"
16513else
16514 include_stdint_h="/* #include <stdint.h> */"
16515fi
16516if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16517 include_stdarg_h="#include <cstdarg>"
16518else
16519 include_stdarg_h="/* #include <cstdarg> */"
16520fi
16521if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16522 include_stdlib_h="#include <cstdlib>"
16523else
16524 include_stdlib_h="/* #include <cstdlib> */"
16525fi
16526if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16527 include_unistd_h="#include <unistd.h>"
16528else
16529 include_unistd_h="/* #include <unistd.h> */"
16530fi
16531if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16532 include_string_h="#include <cstring>"
16533else
16534 include_string_h="/* #include <cstring> */"
16535fi
16536if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16537 include_fcntl_h="#include <fcntl.h>"
16538else
16539 include_fcntl_h="/* #include <fcntl.h> */"
16540fi
16541if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16542 include_util_h="#include <util.h>"
16543else
16544 include_util_h="/* #include <util.h> */"
16545fi
16546if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16547 include_assert_h="#include <assert.h>"
16548else
16549 include_assert_h="/* #include <assert.h> */"
16550fi
16551if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16552 include_sys_ioctl_h="#include <sys/ioctl.h>"
16553else
16554 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16555fi
16556if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16557 include_sys_select_h="#include <sys/select.h>"
16558else
16559 include_sys_select_h="/* #include <sys/select.h> */"
16560fi
16561if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16562 include_sys_strredir_h="#include <sys/strredir.h>"
16563else
16564 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16565fi
16566if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16567 include_sys_time_h="#include <sys/time.h>"
16568else
16569 include_sys_time_h="/* #include <sys/time.h> */"
16570fi
16571if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16572 include_time_h="#include <time.h>"
16573else
16574 include_time_h="/* #include <time.h> */"
16575fi 15713fi
16576 15714
16577if test x$support_xft = xyes; then 15715if test x$support_xft = xyes; then
16578 LIBS="$LIBS `pkg-config xft --libs`" 15716 LIBS="$LIBS `pkg-config xft --libs`"
16579 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 15717 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16812#define XFT 1 15950#define XFT 1
16813_ACEOF 15951_ACEOF
16814 15952
16815 fi 15953 fi
16816fi 15954fi
15955if test x$support_styles = xyes; then
16817 15956
15957cat >>confdefs.h <<\_ACEOF
15958#define ENABLE_STYLES 1
15959_ACEOF
15960
15961fi
15962if test x$support_iso14755 = xyes; then
15963
15964cat >>confdefs.h <<\_ACEOF
15965#define ISO_14755 1
15966_ACEOF
15967
15968fi
15969if test x$support_8bitctrls = xyes; then
15970
15971cat >>confdefs.h <<\_ACEOF
15972#define EIGHT_BIT_CONTROLS 1
15973_ACEOF
15974
15975fi
15976if test x$support_fading = xyes; then
15977
15978cat >>confdefs.h <<\_ACEOF
15979#define OFF_FOCUS_FADING 1
15980_ACEOF
15981
15982fi
15983if test x$support_tinting = xyes; then
15984
15985cat >>confdefs.h <<\_ACEOF
15986#define TINTING 1
15987_ACEOF
15988
15989fi
15990if test x$support_inheritpixmap = xyes; then
15991
15992cat >>confdefs.h <<\_ACEOF
15993#define TRANSPARENT 1
15994_ACEOF
15995
15996fi
15997if test x$support_keepscrolling = xno; then
15998
15999cat >>confdefs.h <<\_ACEOF
16000#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16001_ACEOF
16002
16003fi
16004if test x$support_selectionscrolling = xyes; then
16005
16006cat >>confdefs.h <<\_ACEOF
16007#define SELECTION_SCROLLING 1
16008_ACEOF
16009
16010fi
16011if test x$support_menubar = xyes; then
16012
16013cat >>confdefs.h <<\_ACEOF
16014#define MENUBAR 1
16015_ACEOF
16016
16017fi
16018if test x$support_frills = xyes; then
16019
16020cat >>confdefs.h <<\_ACEOF
16021#define ENABLE_FRILLS 1
16022_ACEOF
16023
16024fi
16025if test x$support_24bit = xyes; then
16026
16027cat >>confdefs.h <<\_ACEOF
16028#define PREFER_24BIT 1
16029_ACEOF
16030
16031fi
16032if test x$support_mousewheel = xyes; then
16033
16034cat >>confdefs.h <<\_ACEOF
16035#define MOUSE_WHEEL 1
16036_ACEOF
16037
16038fi
16039if test x$support_mouseslipwheel = xyes; then
16040
16041cat >>confdefs.h <<\_ACEOF
16042#define MOUSE_SLIP_WHEELING 1
16043_ACEOF
16044
16045fi
16046if test x$support_utmp = xyes; then
16047
16048cat >>confdefs.h <<\_ACEOF
16049#define UTMP_SUPPORT 1
16050_ACEOF
16051
16052fi
16053if test x$support_wtmp = xyes; then
16054
16055cat >>confdefs.h <<\_ACEOF
16056#define WTMP_SUPPORT 1
16057_ACEOF
16058
16059fi
16060if test x$support_lastlog = xyes; then
16061
16062cat >>confdefs.h <<\_ACEOF
16063#define LASTLOG_SUPPORT 1
16064_ACEOF
16065
16066fi
16067if test x$support_xim = xyes -o x$multichar_set = xyes; then
16068 if test x$rxvt_cv_func_xlocale = xyes; then
16069
16070cat >>confdefs.h <<\_ACEOF
16071#define USE_XIM 1
16072_ACEOF
16073
16074 fi
16075fi
16076if test x$support_xpm = xyes; then
16077
16078cat >>confdefs.h <<\_ACEOF
16079#define XPM_BACKGROUND 1
16080_ACEOF
16081
16082fi
16083if test x$support_scroll_rxvt = xyes; then
16084
16085cat >>confdefs.h <<\_ACEOF
16086#define RXVT_SCROLLBAR 1
16087_ACEOF
16088
16089 scrolltypes="rxvt"
16090fi
16091if test x$support_scroll_next = xyes; then
16092
16093cat >>confdefs.h <<\_ACEOF
16094#define NEXT_SCROLLBAR 1
16095_ACEOF
16096
16097 scrolltypes="$scrolltypes next"
16098fi
16099if test x$support_scroll_xterm = xyes; then
16100
16101cat >>confdefs.h <<\_ACEOF
16102#define XTERM_SCROLLBAR 1
16103_ACEOF
16104
16105 scrolltypes="$scrolltypes xterm"
16106fi
16107if test x$support_scroll_plain = xyes; then
16108
16109cat >>confdefs.h <<\_ACEOF
16110#define PLAIN_SCROLLBAR 1
16111_ACEOF
16112
16113 scrolltypes="$scrolltypes plain"
16114fi
16115if test x$support_pointer_blank = xyes; then
16116
16117cat >>confdefs.h <<\_ACEOF
16118#define POINTER_BLANK 1
16119_ACEOF
16120
16121fi
16122if test x$support_cursor_blink = xyes; then
16123
16124cat >>confdefs.h <<\_ACEOF
16125#define CURSOR_BLINK 1
16126_ACEOF
16127
16128fi
16129if test x$support_text_blink = xyes; then
16130
16131cat >>confdefs.h <<\_ACEOF
16132#define TEXT_BLINK 1
16133_ACEOF
16134
16135fi
16136if test x$support_unicode3 = xyes; then
16137
16138cat >>confdefs.h <<\_ACEOF
16139#define UNICODE_3 1
16140_ACEOF
16141
16142fi
16143if test x$support_combining = xyes; then
16144
16145cat >>confdefs.h <<\_ACEOF
16146#define ENABLE_COMBINING 1
16147_ACEOF
16148
16149fi
16150if test x$codesets = xall; then
16151 codesets=jp,jp-ext,kr,zh,zh-ext
16152fi
16153
16154cat >>confdefs.h <<\_ACEOF
16155#define ENCODING_EU 1
16156_ACEOF
16157
16158
16159cat >>confdefs.h <<\_ACEOF
16160#define ENCODING_VN 1
16161_ACEOF
16162
16163for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16164 case "$codeset" in
16165 JP )
16166cat >>confdefs.h <<\_ACEOF
16167#define ENCODING_JP 1
16168_ACEOF
16169 ;;
16170 JP_EXT )
16171cat >>confdefs.h <<\_ACEOF
16172#define ENCODING_JP_EXT 1
16173_ACEOF
16174 ;;
16175 KR )
16176cat >>confdefs.h <<\_ACEOF
16177#define ENCODING_KR 1
16178_ACEOF
16179 ;;
16180 ZH )
16181cat >>confdefs.h <<\_ACEOF
16182#define ENCODING_ZH 1
16183_ACEOF
16184 ;;
16185 ZH_EXT )
16186cat >>confdefs.h <<\_ACEOF
16187#define ENCODING_ZH_EXT 1
16188_ACEOF
16189 ;;
16190 esac
16191done
16192
16193
16194CFLAGS=${CFLAGS--O}
16195LDFLAGS=${LDFLAGS--O}
16196
16197CPPFLAGS="$CPPFLAGS"
16198
16199
16200
16201
16202
16203
16204
16205if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16206 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16207 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16208 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16209 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16210 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16211fi
16212
16213
16214
16215
16216
16217if test x$support_addstrings = xno; then
16218
16219cat >>confdefs.h <<\_ACEOF
16220#define NO_STRINGS 1
16221_ACEOF
16222
16223fi
16224
16225MCOMMON=./autoconf/Make.common
16226
16227
16228test "$program_prefix" != NONE &&
16229 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16230# Use a double $ so make ignores it.
16231test "$program_suffix" != NONE &&
16232 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16233# Double any \ or $. echo might interpret backslashes.
16234# By default was `s,x,x', remove it if useless.
16235cat <<\_ACEOF >conftest.sed
16236s/[\\$]/&&/g;s/;s,x,x,$//
16237_ACEOF
16238program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16239rm conftest.sed
16240
16241
16242
16243
16244
16245if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16246 include_stdint_h="#include <stdint.h>"
16247else
16248 include_stdint_h="/* #include <stdint.h> */"
16249fi
16250if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16251 include_stdarg_h="#include <cstdarg>"
16252else
16253 include_stdarg_h="/* #include <cstdarg> */"
16254fi
16255if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16256 include_stdlib_h="#include <cstdlib>"
16257else
16258 include_stdlib_h="/* #include <cstdlib> */"
16259fi
16260if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16261 include_unistd_h="#include <unistd.h>"
16262else
16263 include_unistd_h="/* #include <unistd.h> */"
16264fi
16265if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16266 include_string_h="#include <cstring>"
16267else
16268 include_string_h="/* #include <cstring> */"
16269fi
16270if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16271 include_fcntl_h="#include <fcntl.h>"
16272else
16273 include_fcntl_h="/* #include <fcntl.h> */"
16274fi
16275if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16276 include_util_h="#include <util.h>"
16277else
16278 include_util_h="/* #include <util.h> */"
16279fi
16280if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16281 include_assert_h="#include <assert.h>"
16282else
16283 include_assert_h="/* #include <assert.h> */"
16284fi
16285if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16286 include_sys_ioctl_h="#include <sys/ioctl.h>"
16287else
16288 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16289fi
16290if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16291 include_sys_select_h="#include <sys/select.h>"
16292else
16293 include_sys_select_h="/* #include <sys/select.h> */"
16294fi
16295if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16296 include_sys_strredir_h="#include <sys/strredir.h>"
16297else
16298 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16299fi
16300if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16301 include_sys_time_h="#include <sys/time.h>"
16302else
16303 include_sys_time_h="/* #include <sys/time.h> */"
16304fi
16305if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16306 include_time_h="#include <time.h>"
16307else
16308 include_time_h="/* #include <time.h> */"
16309fi
16310
16818 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 16311 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
16312
16819cat >confcache <<\_ACEOF 16313cat >confcache <<\_ACEOF
16820# This file is a shell script that caches the results of configure 16314# This file is a shell script that caches the results of configure
16821# tests run on this system so they can be shared between configure 16315# tests run on this system so they can be shared between configure
16822# scripts and configure runs, see configure's option --config-cache. 16316# scripts and configure runs, see configure's option --config-cache.
16823# It is not useful on other systems. If it contains results you don't 16317# It is not useful on other systems. If it contains results you don't
17343 # Handling of arguments. 16837 # Handling of arguments.
17344 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; 16838 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17345 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16839 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17346 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16840 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17347 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16841 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17348 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17349 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 16842 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17350 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17351 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 16843 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17352 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 16844 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17353echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 16845echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17354 { (exit 1); exit 1; }; };; 16846 { (exit 1); exit 1; }; };;
17355 esac 16847 esac
17431s,@DEFS@,$DEFS,;t t 16923s,@DEFS@,$DEFS,;t t
17432s,@ECHO_C@,$ECHO_C,;t t 16924s,@ECHO_C@,$ECHO_C,;t t
17433s,@ECHO_N@,$ECHO_N,;t t 16925s,@ECHO_N@,$ECHO_N,;t t
17434s,@ECHO_T@,$ECHO_T,;t t 16926s,@ECHO_T@,$ECHO_T,;t t
17435s,@LIBS@,$LIBS,;t t 16927s,@LIBS@,$LIBS,;t t
16928s,@build@,$build,;t t
16929s,@build_cpu@,$build_cpu,;t t
16930s,@build_vendor@,$build_vendor,;t t
16931s,@build_os@,$build_os,;t t
16932s,@host@,$host,;t t
16933s,@host_cpu@,$host_cpu,;t t
16934s,@host_vendor@,$host_vendor,;t t
16935s,@host_os@,$host_os,;t t
17436s,@VERSION@,$VERSION,;t t 16936s,@VERSION@,$VERSION,;t t
17437s,@DATE@,$DATE,;t t 16937s,@DATE@,$DATE,;t t
17438s,@LSMDATE@,$LSMDATE,;t t 16938s,@LSMDATE@,$LSMDATE,;t t
17439s,@LIBVERSION@,$LIBVERSION,;t t 16939s,@LIBVERSION@,$LIBVERSION,;t t
17440s,@CC@,$CC,;t t 16940s,@CC@,$CC,;t t
17453s,@INSTALL_DATA@,$INSTALL_DATA,;t t 16953s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17454s,@AWK@,$AWK,;t t 16954s,@AWK@,$AWK,;t t
17455s,@LINKER@,$LINKER,;t t 16955s,@LINKER@,$LINKER,;t t
17456s,@CXXCPP@,$CXXCPP,;t t 16956s,@CXXCPP@,$CXXCPP,;t t
17457s,@EGREP@,$EGREP,;t t 16957s,@EGREP@,$EGREP,;t t
17458s,@build@,$build,;t t
17459s,@build_cpu@,$build_cpu,;t t
17460s,@build_vendor@,$build_vendor,;t t
17461s,@build_os@,$build_os,;t t
17462s,@host@,$host,;t t
17463s,@host_cpu@,$host_cpu,;t t
17464s,@host_vendor@,$host_vendor,;t t
17465s,@host_os@,$host_os,;t t
17466s,@LN_S@,$LN_S,;t t 16958s,@LN_S@,$LN_S,;t t
17467s,@ECHO@,$ECHO,;t t 16959s,@ECHO@,$ECHO,;t t
17468s,@RANLIB@,$RANLIB,;t t 16960s,@RANLIB@,$RANLIB,;t t
17469s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 16961s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17470s,@STRIP@,$STRIP,;t t 16962s,@STRIP@,$STRIP,;t t
17477s,@CP@,$CP,;t t 16969s,@CP@,$CP,;t t
17478s,@LN@,$LN,;t t 16970s,@LN@,$LN,;t t
17479s,@SED@,$SED,;t t 16971s,@SED@,$SED,;t t
17480s,@CMP@,$CMP,;t t 16972s,@CMP@,$CMP,;t t
17481s,@TBL@,$TBL,;t t 16973s,@TBL@,$TBL,;t t
16974s,@TIC@,$TIC,;t t
17482s,@X_CFLAGS@,$X_CFLAGS,;t t 16975s,@X_CFLAGS@,$X_CFLAGS,;t t
17483s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 16976s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17484s,@X_LIBS@,$X_LIBS,;t t 16977s,@X_LIBS@,$X_LIBS,;t t
17485s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 16978s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17486s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 16979s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines