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

Comparing rxvt-unicode/configure (file contents):
Revision 1.15 by pcg, Wed Mar 3 04:07:45 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
1029 --disable-libtool-lock avoid locking (might break parallel builds) 1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 1030 --enable-everything enable standard non-multichoice features
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-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
1035 --enable-utmp enable utmp (utmpx) support 1037 --enable-utmp enable utmp (utmpx) support
1036 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1038 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1037 --enable-lastlog enable lastlog support (requires --enable-utmp) 1039 --enable-lastlog enable lastlog support (requires --enable-utmp)
1038 --enable-xpm-background enable XPM background pixmaps 1040 --enable-xpm-background enable XPM background pixmaps
1039 --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
1040 --enable-menubar enable menubar 1044 --enable-menubar enable menubar
1041 --enable-rxvt-scroll enable rxvt style scrollbar 1045 --enable-rxvt-scroll enable rxvt style scrollbar
1042 --enable-next-scroll enable NeXT style scrollbar 1046 --enable-next-scroll enable NeXT style scrollbar
1043 --enable-xterm-scroll enable Xterm style scrollbar 1047 --enable-xterm-scroll enable Xterm style scrollbar
1044 --enable-plain-scroll enable plain style scrollbar 1048 --enable-plain-scroll enable plain style scrollbar
1047 --enable-ttygid enable tty setting to group named "tty" 1051 --enable-ttygid enable tty setting to group named "tty"
1048 --disable-backspace-key disable handling of the backspace key 1052 --disable-backspace-key disable handling of the backspace key
1049 --disable-delete-key disable handling of the delete key 1053 --disable-delete-key disable handling of the delete key
1050 --disable-resources disable all resource checking 1054 --disable-resources disable all resource checking
1051 --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)
1052 --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)
1053 --enable-strings enable some replacement system functions 1058 --enable-strings enable some replacement system functions
1054 --disable-swapscreen disable swap screen support 1059 --disable-swapscreen disable swap screen support
1060 --enable-iso14755 enable support for extended ISO 14755 modes
1055 --enable-frills enable support for rarely used features 1061 --enable-frills enable support for rarely used features
1056 --enable-linespace enable support for linespace
1057 --enable-24bit enable support for using 24bit visuals if available 1062 --enable-24bit enable support for using 24bit visuals if available
1058 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1063 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1059 --enable-selectionscrolling enable scrolling during selections 1064 --enable-selectionscrolling enable scrolling during selections
1060 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1065 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1061 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1066 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1062 --enable-old-selection enable v2.20 (& prior) mouse selection style support
1063 --disable-new-selection disable new mouse (xterm) selection style support
1064 --enable-dmalloc enable Gray Watson's malloc - for debugging use 1067 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1065 --enable-dlmalloc enable Doug Lea's malloc - for production use 1068 --enable-dlmalloc enable Doug Lea's malloc - for production use
1066 NOTE: enable only one malloc package 1069 NOTE: enable only one malloc package
1067 --enable-smart-resize enable smart growth/shrink behaviour 1070 --enable-smart-resize enable smart growth/shrink behaviour
1068 --enable-256-color enable 256-color support
1069 --enable-cursor-blink enable blinking cursor 1071 --enable-cursor-blink enable blinking cursor
1070 --enable-text-blink enable blinking text 1072 --enable-text-blink enable blinking text
1071 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1073 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1072 1074
1073Optional Packages: 1075Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1076 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1077 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1076 --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
1077 --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
1078 --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)
1079 --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)
1080 --with-res-class=NAME use this as the resource class (default: URxvt) 1082 --with-res-class=CLASS use this as the resource class (default: URxvt)
1081 --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)
1082 --with-term=NAME set the terminal to NAME (default: rxvt) 1084 --with-term=NAME set the terminal to NAME (default: rxvt)
1083 --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
1084 --with-x use the X Window System 1086 --with-x use the X Window System
1085 --with-xpm-includes=DIR use XPM includes in DIR 1087 --with-xpm-includes=DIR use XPM includes in DIR
1534 1536
1535 1537
1536 1538
1537 1539
1538 1540
1541
1539ac_aux_dir= 1542ac_aux_dir=
1540for ac_dir in autoconf $srcdir/autoconf; do 1543for ac_dir in autoconf $srcdir/autoconf; do
1541 if test -f $ac_dir/install-sh; then 1544 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir 1545 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c" 1546 ac_install_sh="$ac_aux_dir/install-sh -c"
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1563ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1564ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 1566
1564 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
1565 1623
1566 1624
1567VERSION=`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`
1568DATE=`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`
1569LSMDATE=`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`
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_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'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu 3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 3268
3211 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
3212LINKER="$CXX" 3278LINKER="$CXX"
3213if test x$GCC = xyes && test x$GXX = xyes; then 3279if test x$GCC = xyes && test x$GXX = xyes; then
3214 3280
3215echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 3281echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3216echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 3282echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3278 3344
3279fi 3345fi
3280LINKER=$LINKER 3346LINKER=$LINKER
3281 3347
3282 3348
3283CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3284 3349
3285if test x$GXX = xyes; then 3350cat >>confdefs.h <<\_ACEOF
3286 CXXFLAGS="$CXXFLAGS -fno-exceptions" 3351#define _GNU_SOURCE 1
3287fi 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
3288 3375
3289ac_ext=cc 3376ac_ext=cc
3290ac_cpp='$CXXCPP $CPPFLAGS' 3377ac_cpp='$CXXCPP $CPPFLAGS'
3291ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292ac_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'
3689echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3776echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3690echo "${ECHO_T}$ac_cv_search_strerror" >&6 3777echo "${ECHO_T}$ac_cv_search_strerror" >&6
3691if test "$ac_cv_search_strerror" != no; then 3778if test "$ac_cv_search_strerror" != no; then
3692 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"
3693 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"
3694fi 3984fi
3695 3985
3696 3986
3697# Check whether --enable-shared or --disable-shared was given. 3987# Check whether --enable-shared or --disable-shared was given.
3698if test "${enable_shared+set}" = set; then 3988if test "${enable_shared+set}" = set; then
3756 ;; 4046 ;;
3757esac 4047esac
3758else 4048else
3759 enable_fast_install=yes 4049 enable_fast_install=yes
3760fi; 4050fi;
3761# Make sure we can run config.sub.
3762$ac_config_sub sun4 >/dev/null 2>&1 ||
3763 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3764echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3765 { (exit 1); exit 1; }; }
3766
3767echo "$as_me:$LINENO: checking build system type" >&5
3768echo $ECHO_N "checking build system type... $ECHO_C" >&6
3769if test "${ac_cv_build+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772 ac_cv_build_alias=$build_alias
3773test -z "$ac_cv_build_alias" &&
3774 ac_cv_build_alias=`$ac_config_guess`
3775test -z "$ac_cv_build_alias" &&
3776 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3777echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3778 { (exit 1); exit 1; }; }
3779ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3780 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3781echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3782 { (exit 1); exit 1; }; }
3783
3784fi
3785echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3786echo "${ECHO_T}$ac_cv_build" >&6
3787build=$ac_cv_build
3788build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3789build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3790build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3791
3792
3793echo "$as_me:$LINENO: checking host system type" >&5
3794echo $ECHO_N "checking host system type... $ECHO_C" >&6
3795if test "${ac_cv_host+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798 ac_cv_host_alias=$host_alias
3799test -z "$ac_cv_host_alias" &&
3800 ac_cv_host_alias=$ac_cv_build_alias
3801ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3802 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3803echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3804 { (exit 1); exit 1; }; }
3805
3806fi
3807echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3808echo "${ECHO_T}$ac_cv_host" >&6
3809host=$ac_cv_host
3810host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3811host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3812host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3813
3814
3815 4051
3816# Check whether --with-gnu-ld or --without-gnu-ld was given. 4052# Check whether --with-gnu-ld or --without-gnu-ld was given.
3817if test "${with_gnu_ld+set}" = set; then 4053if test "${with_gnu_ld+set}" = set; then
3818 withval="$with_gnu_ld" 4054 withval="$with_gnu_ld"
3819 test "$withval" = no || with_gnu_ld=yes 4055 test "$withval" = no || with_gnu_ld=yes
5034# 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
5035# libtool support. 5271# libtool support.
5036case "$host" in 5272case "$host" in
5037*-*-irix6*) 5273*-*-irix6*)
5038 # Find out which ABI we are using. 5274 # Find out which ABI we are using.
5039 echo '#line 5039 "configure"' > conftest.$ac_ext 5275 echo '#line 5275 "configure"' > conftest.$ac_ext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041 (eval $ac_compile) 2>&5 5277 (eval $ac_compile) 2>&5
5042 ac_status=$? 5278 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; then 5280 (exit $ac_status); }; then
5585# builds. 5821# builds.
5586chmod -w . 5822chmod -w .
5587save_CFLAGS="$CFLAGS" 5823save_CFLAGS="$CFLAGS"
5588CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5824CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5589compiler_c_o=no 5825compiler_c_o=no
5590if { (eval echo configure:5590: \"$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
5591 # 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
5592 # So say no if there are warnings 5828 # So say no if there are warnings
5593 if test -s out/conftest.err; then 5829 if test -s out/conftest.err; then
5594 compiler_c_o=no 5830 compiler_c_o=no
5595 else 5831 else
7201 lt_cv_dlopen_self=cross 7437 lt_cv_dlopen_self=cross
7202else 7438else
7203 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7204 lt_status=$lt_dlunknown 7440 lt_status=$lt_dlunknown
7205 cat > conftest.$ac_ext <<EOF 7441 cat > conftest.$ac_ext <<EOF
7206#line 7206 "configure" 7442#line 7442 "configure"
7207#include "confdefs.h" 7443#include "confdefs.h"
7208 7444
7209#if HAVE_DLFCN_H 7445#if HAVE_DLFCN_H
7210#include <dlfcn.h> 7446#include <dlfcn.h>
7211#endif 7447#endif
7299 lt_cv_dlopen_self_static=cross 7535 lt_cv_dlopen_self_static=cross
7300else 7536else
7301 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7302 lt_status=$lt_dlunknown 7538 lt_status=$lt_dlunknown
7303 cat > conftest.$ac_ext <<EOF 7539 cat > conftest.$ac_ext <<EOF
7304#line 7304 "configure" 7540#line 7540 "configure"
7305#include "confdefs.h" 7541#include "confdefs.h"
7306 7542
7307#if HAVE_DLFCN_H 7543#if HAVE_DLFCN_H
7308#include <dlfcn.h> 7544#include <dlfcn.h>
7309#endif 7545#endif
8030 8266
8031 8267
8032MALLOC_TYPE=S 8268MALLOC_TYPE=S
8033support_addstrings=no 8269support_addstrings=no
8034support_frills=no 8270support_frills=no
8035support_linespace=no
8036support_inheritpixmap=no 8271support_inheritpixmap=no
8272support_tinting=no
8273support_fading=no
8037support_keepscrolling=no 8274support_keepscrolling=no
8038support_selectionscrolling=no 8275support_selectionscrolling=no
8039support_menubar=no 8276support_menubar=no
8040support_mousewheel=no 8277support_mousewheel=no
8041support_mouseslipwheel=no 8278support_mouseslipwheel=no
8042support_oldselection=no
8043support_utmp=no 8279support_utmp=no
8044support_wtmp=no 8280support_wtmp=no
8045support_lastlog=no 8281support_lastlog=no
8046support_cursor_blink=no 8282support_cursor_blink=no
8047support_text_blink=no 8283support_text_blink=no
8052support_scroll_plain=no 8288support_scroll_plain=no
8053support_xim=no 8289support_xim=no
8054support_xpm=no 8290support_xpm=no
8055support_xft=no 8291support_xft=no
8056support_unicode3=no 8292support_unicode3=no
8293support_combining=no
8294support_8bitctrls=no
8295support_iso14755=no
8296support_styles=no
8057codesets= 8297codesets=
8058 8298
8059 8299
8060if test "x$enable_shared" = xyes; then 8300if test "x$enable_shared" = xyes; then
8061 8301
8071if test "${enable_everything+set}" = set; then 8311if test "${enable_everything+set}" = set; then
8072 enableval="$enable_everything" 8312 enableval="$enable_everything"
8073 if test x$enableval = xyes; then 8313 if test x$enableval = xyes; then
8074 support_24bit=yes 8314 support_24bit=yes
8075 support_frills=yes 8315 support_frills=yes
8076 support_linespace=yes
8077 support_inheritpixmap=yes 8316 support_inheritpixmap=yes
8317 support_tinting=yes
8318 support_fading=yes
8078 support_keepscrolling=yes 8319 support_keepscrolling=yes
8079 support_selectionscrolling=yes 8320 support_selectionscrolling=yes
8080 support_lastlog=yes 8321 support_lastlog=yes
8081 support_menubar=yes 8322 support_menubar=yes
8082 support_mousewheel=yes 8323 support_mousewheel=yes
8083 support_mouseslipwheel=yes 8324 support_mouseslipwheel=yes
8084 support_oldselection=yes
8085 support_cursor_blink=yes 8325 support_cursor_blink=yes
8086 support_text_blink=yes 8326 support_text_blink=yes
8087 support_pointer_blank=yes 8327 support_pointer_blank=yes
8088 support_scroll_rxvt=yes 8328 support_scroll_rxvt=yes
8089 support_scroll_next=yes 8329 support_scroll_next=yes
8093 support_wtmp=yes 8333 support_wtmp=yes
8094 support_xim=yes 8334 support_xim=yes
8095 support_xpm=yes 8335 support_xpm=yes
8096 support_xft=yes 8336 support_xft=yes
8097 support_unicode3=yes 8337 support_unicode3=yes
8338 support_combining=yes
8339 #support_8bitctrls=yes
8340 support_iso14755=yes
8341 support_styles=yes
8098 codesets=all 8342 codesets=all
8099 fi 8343 fi
8100fi; 8344fi;
8101 8345
8102# Check whether --enable-unicode3 or --disable-unicode3 was given. 8346# Check whether --enable-unicode3 or --disable-unicode3 was given.
8103if test "${enable_unicode3+set}" = set; then 8347if test "${enable_unicode3+set}" = set; then
8104 enableval="$enable_unicode3" 8348 enableval="$enable_unicode3"
8105 if test x$enableval = xyes -o x$enableval = xno; then 8349 if test x$enableval = xyes -o x$enableval = xno; then
8106 support_unicode3=yes 8350 support_unicode3=$enableval
8351 fi
8352fi;
8353
8354# Check whether --enable-combining or --disable-combining was given.
8355if test "${enable_combining+set}" = set; then
8356 enableval="$enable_combining"
8357 if test x$enableval = xyes -o x$enableval = xno; then
8358 support_combining=$enableval
8107 fi 8359 fi
8108fi; 8360fi;
8109 8361
8110# Check whether --enable-xft or --disable-xft was given. 8362# Check whether --enable-xft or --disable-xft was given.
8111if test "${enable_xft+set}" = set; then 8363if test "${enable_xft+set}" = set; then
8112 enableval="$enable_xft" 8364 enableval="$enable_xft"
8113 if test x$enableval = xyes -o x$enableval = xno; then 8365 if test x$enableval = xyes -o x$enableval = xno; then
8114 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
8115 fi 8375 fi
8116fi; 8376fi;
8117 8377
8118# Check whether --enable-utmp or --disable-utmp was given. 8378# Check whether --enable-utmp or --disable-utmp was given.
8119if test "${enable_utmp+set}" = set; then 8379if test "${enable_utmp+set}" = set; then
8153 if test x$enableval = xyes -o x$enableval = xno; then 8413 if test x$enableval = xyes -o x$enableval = xno; then
8154 support_inheritpixmap=$enableval 8414 support_inheritpixmap=$enableval
8155 fi 8415 fi
8156fi; 8416fi;
8157 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
8158# Check whether --enable-menubar or --disable-menubar was given. 8434# Check whether --enable-menubar or --disable-menubar was given.
8159if test "${enable_menubar+set}" = set; then 8435if test "${enable_menubar+set}" = set; then
8160 enableval="$enable_menubar" 8436 enableval="$enable_menubar"
8161 if test x$enableval = xyes -o x$enableval = xno; then 8437 if test x$enableval = xyes -o x$enableval = xno; then
8162 support_menubar=$enableval 8438 support_menubar=$enableval
8280_ACEOF 8556_ACEOF
8281 8557
8282 fi 8558 fi
8283fi; 8559fi;
8284 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
8285RESFALLBACK=Rxvt 8569RESFALLBACK=Rxvt
8286# Check whether --enable-fallback or --disable-fallback was given. 8570# Check whether --enable-fallback or --disable-fallback was given.
8287if test "${enable_fallback+set}" = set; then 8571if test "${enable_fallback+set}" = set; then
8288 enableval="$enable_fallback" 8572 enableval="$enable_fallback"
8289 8573
8332# Check whether --with-name or --without-name was given. 8616# Check whether --with-name or --without-name was given.
8333if test "${with_name+set}" = set; then 8617if test "${with_name+set}" = set; then
8334 withval="$with_name" 8618 withval="$with_name"
8335 RXVTNAME="$withval" 8619 RXVTNAME="$withval"
8336fi; 8620fi;
8621
8622cat >>confdefs.h <<_ACEOF
8623#define RXVTNAME "$RXVTNAME"
8624_ACEOF
8625
8337 8626
8338RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 8627RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8339 8628
8340 8629
8341# Check whether --enable-strings or --disable-strings was given. 8630# Check whether --enable-strings or --disable-strings was given.
8356_ACEOF 8645_ACEOF
8357 8646
8358 fi 8647 fi
8359fi; 8648fi;
8360 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
8361# Check whether --enable-frills or --disable-frills was given. 8658# Check whether --enable-frills or --disable-frills was given.
8362if test "${enable_frills+set}" = set; then 8659if test "${enable_frills+set}" = set; then
8363 enableval="$enable_frills" 8660 enableval="$enable_frills"
8364 if test x$enableval = xyes -o x$enableval = xno; then 8661 if test x$enableval = xyes -o x$enableval = xno; then
8365 support_frills=$enableval 8662 support_frills=$enableval
8366 fi 8663 fi
8367fi; 8664fi;
8368 8665
8369# Check whether --enable-linespace or --disable-linespace was given.
8370if test "${enable_linespace+set}" = set; then
8371 enableval="$enable_linespace"
8372 if test x$enableval = xyes -o x$enableval = xno; then
8373 support_linespace=$enableval
8374 fi
8375fi;
8376
8377# Check whether --enable-24bit or --disable-24bit was given. 8666# Check whether --enable-24bit or --disable-24bit was given.
8378if test "${enable_24bit+set}" = set; then 8667if test "${enable_24bit+set}" = set; then
8379 enableval="$enable_24bit" 8668 enableval="$enable_24bit"
8380 if test x$enableval = xyes -o x$enableval = xno; then 8669 if test x$enableval = xyes -o x$enableval = xno; then
8381 support_24bit=$enableval 8670 support_24bit=$enableval
8409# Check whether --enable-slipwheeling or --disable-slipwheeling was given. 8698# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
8410if test "${enable_slipwheeling+set}" = set; then 8699if test "${enable_slipwheeling+set}" = set; then
8411 enableval="$enable_slipwheeling" 8700 enableval="$enable_slipwheeling"
8412 if test x$enableval = xyes -o x$enableval = xno; then 8701 if test x$enableval = xyes -o x$enableval = xno; then
8413 support_mouseslipwheel=$enableval 8702 support_mouseslipwheel=$enableval
8414 fi
8415fi;
8416
8417# Check whether --enable-old-selection or --disable-old-selection was given.
8418if test "${enable_old_selection+set}" = set; then
8419 enableval="$enable_old_selection"
8420 if test x$enableval = xyes -o x$enableval = xno; then
8421 support_oldselection=$enableval
8422 fi
8423fi;
8424
8425# Check whether --enable-new-selection or --disable-new-selection was given.
8426if test "${enable_new_selection+set}" = set; then
8427 enableval="$enable_new_selection"
8428 if test x$enableval = xno; then
8429
8430cat >>confdefs.h <<\_ACEOF
8431#define NO_NEW_SELECTION 1
8432_ACEOF
8433
8434 fi 8703 fi
8435fi; 8704fi;
8436 8705
8437# Check whether --enable-dmalloc or --disable-dmalloc was given. 8706# Check whether --enable-dmalloc or --disable-dmalloc was given.
8438if test "${enable_dmalloc+set}" = set; then 8707if test "${enable_dmalloc+set}" = set; then
8466_ACEOF 8735_ACEOF
8467 8736
8468 fi 8737 fi
8469fi; 8738fi;
8470 8739
8471# Check whether --enable-256-color or --disable-256-color was given.
8472if test "${enable_256_color+set}" = set; then
8473 enableval="$enable_256_color"
8474 if test x$enableval = xyes; then
8475
8476cat >>confdefs.h <<\_ACEOF
8477#define TTY_256COLOR 1
8478_ACEOF
8479
8480 fi
8481fi;
8482
8483# Check whether --enable-cursor-blink or --disable-cursor-blink was given. 8740# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8484if test "${enable_cursor_blink+set}" = set; then 8741if test "${enable_cursor_blink+set}" = set; then
8485 enableval="$enable_cursor_blink" 8742 enableval="$enable_cursor_blink"
8486 if test x$enableval = xyes -o x$enableval = xno; then 8743 if test x$enableval = xyes -o x$enableval = xno; then
8487 support_cursor_blink=$enableval 8744 support_cursor_blink=$enableval
8534 8791
8535cat >>confdefs.h <<\_ACEOF 8792cat >>confdefs.h <<\_ACEOF
8536#define PROTOTYPES 1 8793#define PROTOTYPES 1
8537_ACEOF 8794_ACEOF
8538 8795
8539
8540if test -z "$CFLAGS"; then
8541 if test -z "$CCOPTS"; then
8542 CCOPTS='-O'
8543 fi
8544 CFLAGS="$CCOPTS"
8545fi
8546 8796
8547# 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.
8548set dummy mv; ac_word=$2 8798set dummy mv; ac_word=$2
8549echo "$as_me:$LINENO: checking for $ac_word" >&5 8799echo "$as_me:$LINENO: checking for $ac_word" >&5
8550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8861else 9111else
8862 echo "$as_me:$LINENO: result: no" >&5 9112 echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6 9113echo "${ECHO_T}no" >&6
8864fi 9114fi
8865 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
8866 9141
9142 ;;
9143esac
9144fi
9145TIC=$ac_cv_path_TIC
8867 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
8868 9154
9155
9156
9157
9158
9159if test "x$ac_path_x_has_been_run" != xyes; then
8869echo "$as_me:$LINENO: checking for X" >&5 9160 echo "$as_me:$LINENO: checking for X" >&5
8870echo $ECHO_N "checking for X... $ECHO_C" >&6 9161echo $ECHO_N "checking for X... $ECHO_C" >&6
8871 9162
9163ac_path_x_has_been_run=yes
8872 9164
8873# Check whether --with-x or --without-x was given. 9165# Check whether --with-x or --without-x was given.
8874if test "${with_x+set}" = set; then 9166if test "${with_x+set}" = set; then
8875 withval="$with_x" 9167 withval="$with_x"
8876 9168
8959 9251
8960/usr/openwin/include 9252/usr/openwin/include
8961/usr/openwin/share/include' 9253/usr/openwin/share/include'
8962 9254
8963if test "$ac_x_includes" = no; then 9255if test "$ac_x_includes" = no; then
8964 # 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.
8965 # First, try using that file with no special directory specified. 9257 # First, try using that file with no special directory specified.
8966 cat >conftest.$ac_ext <<_ACEOF 9258 cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h. */ 9259/* confdefs.h. */
8968_ACEOF 9260_ACEOF
8969cat confdefs.h >>conftest.$ac_ext 9261cat confdefs.h >>conftest.$ac_ext
9093 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9385 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9094 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9386 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9095 # Update the cache value to reflect the command line values. 9387 # Update the cache value to reflect the command line values.
9096 ac_cv_have_x="have_x=yes \ 9388 ac_cv_have_x="have_x=yes \
9097 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"
9098 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
9099echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 9395echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9100fi 9396fi
9101 9397
9398fi
9102if test "$no_x" = yes; then 9399if test "$no_x" = yes; then
9103 # 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.
9104 9401
9105cat >>confdefs.h <<\_ACEOF 9402cat >>confdefs.h <<\_ACEOF
9106#define X_DISPLAY_MISSING 1 9403#define X_DISPLAY_MISSING 1
10683 10980
10684 10981
10685 10982
10686 10983
10687 10984
10985
10986
10987
10988
10989
10688for ac_header in \ 10990for ac_header in \
10689 assert.h \ 10991 assert.h \
10690 fcntl.h \ 10992 fcntl.h \
10691 grp.h \ 10993 grp.h \
10692 libc.h \ 10994 libc.h \
10699 sys/byteorder.h \ 11001 sys/byteorder.h \
10700 sys/ioctl.h \ 11002 sys/ioctl.h \
10701 sys/select.h \ 11003 sys/select.h \
10702 sys/sockio.h \ 11004 sys/sockio.h \
10703 sys/strredir.h \ 11005 sys/strredir.h \
11006 sys/stropts.h \
10704 sys/time.h \ 11007 sys/time.h \
10705 utmp.h \ 11008 utmp.h \
10706 utmpx.h \ 11009 utmpx.h \
10707 stdint.h \ 11010 stdint.h \
11011 pty.h \
11012 wchar.h \
11013 cwchar \
11014 clocale \
10708 11015
10709do 11016do
10710as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10711if eval "test \"\${$as_ac_Header+set}\" = set"; then 11018if eval "test \"\${$as_ac_Header+set}\" = set"; then
10712 echo "$as_me:$LINENO: checking for $ac_header" >&5 11019 echo "$as_me:$LINENO: checking for $ac_header" >&5
11496_ACEOF 11803_ACEOF
11497 11804
11498fi 11805fi
11499 11806
11500 11807
11501
11502echo "$as_me:$LINENO: checking for char" >&5
11503echo $ECHO_N "checking for char... $ECHO_C" >&6
11504if test "${ac_cv_type_char+set}" = set; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11506else
11507 cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h. */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h. */
11513$ac_includes_default
11514int
11515main ()
11516{
11517if ((char *) 0)
11518 return 0;
11519if (sizeof (char))
11520 return 0;
11521 ;
11522 return 0;
11523}
11524_ACEOF
11525rm -f conftest.$ac_objext
11526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11527 (eval $ac_compile) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11537 ac_status=$?
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); }; } &&
11540 { ac_try='test -s conftest.$ac_objext'
11541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_type_char=yes
11547else
11548 echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
11550
11551ac_cv_type_char=no
11552fi
11553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554fi
11555echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11556echo "${ECHO_T}$ac_cv_type_char" >&6
11557
11558echo "$as_me:$LINENO: checking size of char" >&5
11559echo $ECHO_N "checking size of char... $ECHO_C" >&6
11560if test "${ac_cv_sizeof_char+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563 if test "$ac_cv_type_char" = yes; then
11564 # The cast to unsigned long works around a bug in the HP C Compiler
11565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11567 # This bug is HP SR number 8606223364.
11568 if test "$cross_compiling" = yes; then
11569 # Depending upon the size, compute the lo and hi bounds.
11570cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576$ac_includes_default
11577int
11578main ()
11579{
11580static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11581test_array [0] = 0
11582
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext
11588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_lo=0 ac_mid=0
11609 while :; do
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
11616$ac_includes_default
11617int
11618main ()
11619{
11620static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11621test_array [0] = 0
11622
11623 ;
11624 return 0;
11625}
11626_ACEOF
11627rm -f conftest.$ac_objext
11628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629 (eval $ac_compile) 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } &&
11636 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; } &&
11642 { ac_try='test -s conftest.$ac_objext'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11645 ac_status=$?
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; }; then
11648 ac_hi=$ac_mid; break
11649else
11650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653ac_lo=`expr $ac_mid + 1`
11654 if test $ac_lo -le $ac_mid; then
11655 ac_lo= ac_hi=
11656 break
11657 fi
11658 ac_mid=`expr 2 '*' $ac_mid + 1`
11659fi
11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11661 done
11662else
11663 echo "$as_me: failed program was:" >&5
11664sed 's/^/| /' conftest.$ac_ext >&5
11665
11666cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
11672$ac_includes_default
11673int
11674main ()
11675{
11676static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11677test_array [0] = 0
11678
11679 ;
11680 return 0;
11681}
11682_ACEOF
11683rm -f conftest.$ac_objext
11684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11685 (eval $ac_compile) 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest.$ac_objext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_hi=-1 ac_mid=-1
11705 while :; do
11706 cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712$ac_includes_default
11713int
11714main ()
11715{
11716static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11717test_array [0] = 0
11718
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; } &&
11738 { ac_try='test -s conftest.$ac_objext'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; }; then
11744 ac_lo=$ac_mid; break
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749ac_hi=`expr '(' $ac_mid ')' - 1`
11750 if test $ac_mid -le $ac_hi; then
11751 ac_lo= ac_hi=
11752 break
11753 fi
11754 ac_mid=`expr 2 '*' $ac_mid`
11755fi
11756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11757 done
11758else
11759 echo "$as_me: failed program was:" >&5
11760sed 's/^/| /' conftest.$ac_ext >&5
11761
11762ac_lo= ac_hi=
11763fi
11764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11765fi
11766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11767# Binary search between lo and hi bounds.
11768while test "x$ac_lo" != "x$ac_hi"; do
11769 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11770 cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776$ac_includes_default
11777int
11778main ()
11779{
11780static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11781test_array [0] = 0
11782
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798 (eval $ac_try) 2>&5
11799 ac_status=$?
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; } &&
11802 { ac_try='test -s conftest.$ac_objext'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 ac_hi=$ac_mid
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813ac_lo=`expr '(' $ac_mid ')' + 1`
11814fi
11815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11816done
11817case $ac_lo in
11818?*) ac_cv_sizeof_char=$ac_lo;;
11819'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11820See \`config.log' for more details." >&5
11821echo "$as_me: error: cannot compute sizeof (char), 77
11822See \`config.log' for more details." >&2;}
11823 { (exit 1); exit 1; }; } ;;
11824esac
11825else
11826 if test "$cross_compiling" = yes; then
11827 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11828echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11829 { (exit 1); exit 1; }; }
11830else
11831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
11837$ac_includes_default
11838long longval () { return (long) (sizeof (char)); }
11839unsigned long ulongval () { return (long) (sizeof (char)); }
11840#include <stdio.h>
11841#include <stdlib.h>
11842int
11843main ()
11844{
11845
11846 FILE *f = fopen ("conftest.val", "w");
11847 if (! f)
11848 exit (1);
11849 if (((long) (sizeof (char))) < 0)
11850 {
11851 long i = longval ();
11852 if (i != ((long) (sizeof (char))))
11853 exit (1);
11854 fprintf (f, "%ld\n", i);
11855 }
11856 else
11857 {
11858 unsigned long i = ulongval ();
11859 if (i != ((long) (sizeof (char))))
11860 exit (1);
11861 fprintf (f, "%lu\n", i);
11862 }
11863 exit (ferror (f) || fclose (f) != 0);
11864
11865 ;
11866 return 0;
11867}
11868_ACEOF
11869rm -f conftest$ac_exeext
11870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11871 (eval $ac_link) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_sizeof_char=`cat conftest.val`
11881else
11882 echo "$as_me: program exited with status $ac_status" >&5
11883echo "$as_me: failed program was:" >&5
11884sed 's/^/| /' conftest.$ac_ext >&5
11885
11886( exit $ac_status )
11887{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11888See \`config.log' for more details." >&5
11889echo "$as_me: error: cannot compute sizeof (char), 77
11890See \`config.log' for more details." >&2;}
11891 { (exit 1); exit 1; }; }
11892fi
11893rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11894fi
11895fi
11896rm -f conftest.val
11897else
11898 ac_cv_sizeof_char=0
11899fi
11900fi
11901echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11902echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11903cat >>confdefs.h <<_ACEOF
11904#define SIZEOF_CHAR $ac_cv_sizeof_char
11905_ACEOF
11906
11907
11908echo "$as_me:$LINENO: checking for short" >&5 11808echo "$as_me:$LINENO: checking for short" >&5
11909echo $ECHO_N "checking for short... $ECHO_C" >&6 11809echo $ECHO_N "checking for short... $ECHO_C" >&6
11910if test "${ac_cv_type_short+set}" = set; then 11810if test "${ac_cv_type_short+set}" = set; then
11911 echo $ECHO_N "(cached) $ECHO_C" >&6 11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11912else 11812else
12715cat >>confdefs.h <<_ACEOF 12615cat >>confdefs.h <<_ACEOF
12716#define SIZEOF_INT $ac_cv_sizeof_int 12616#define SIZEOF_INT $ac_cv_sizeof_int
12717_ACEOF 12617_ACEOF
12718 12618
12719 12619
12720echo "$as_me:$LINENO: checking for long" >&5
12721echo $ECHO_N "checking for long... $ECHO_C" >&6
12722if test "${ac_cv_type_long+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12724else
12725 cat >conftest.$ac_ext <<_ACEOF
12726/* confdefs.h. */
12727_ACEOF
12728cat confdefs.h >>conftest.$ac_ext
12729cat >>conftest.$ac_ext <<_ACEOF
12730/* end confdefs.h. */
12731$ac_includes_default
12732int
12733main ()
12734{
12735if ((long *) 0)
12736 return 0;
12737if (sizeof (long))
12738 return 0;
12739 ;
12740 return 0;
12741}
12742_ACEOF
12743rm -f conftest.$ac_objext
12744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745 (eval $ac_compile) 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_cv_type_long=yes
12765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769ac_cv_type_long=no
12770fi
12771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772fi
12773echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12774echo "${ECHO_T}$ac_cv_type_long" >&6
12775
12776echo "$as_me:$LINENO: checking size of long" >&5
12777echo $ECHO_N "checking size of long... $ECHO_C" >&6
12778if test "${ac_cv_sizeof_long+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781 if test "$ac_cv_type_long" = yes; then
12782 # The cast to unsigned long works around a bug in the HP C Compiler
12783 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12784 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12785 # This bug is HP SR number 8606223364.
12786 if test "$cross_compiling" = yes; then
12787 # Depending upon the size, compute the lo and hi bounds.
12788cat >conftest.$ac_ext <<_ACEOF
12789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794$ac_includes_default
12795int
12796main ()
12797{
12798static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12799test_array [0] = 0
12800
12801 ;
12802 return 0;
12803}
12804_ACEOF
12805rm -f conftest.$ac_objext
12806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>conftest.er1
12808 ac_status=$?
12809 grep -v '^ *+' conftest.er1 >conftest.err
12810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } &&
12814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; } &&
12820 { ac_try='test -s conftest.$ac_objext'
12821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; }; then
12826 ac_lo=0 ac_mid=0
12827 while :; do
12828 cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834$ac_includes_default
12835int
12836main ()
12837{
12838static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12839test_array [0] = 0
12840
12841 ;
12842 return 0;
12843}
12844_ACEOF
12845rm -f conftest.$ac_objext
12846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12847 (eval $ac_compile) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
12854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; } &&
12860 { ac_try='test -s conftest.$ac_objext'
12861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12862 (eval $ac_try) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 ac_hi=$ac_mid; break
12867else
12868 echo "$as_me: failed program was:" >&5
12869sed 's/^/| /' conftest.$ac_ext >&5
12870
12871ac_lo=`expr $ac_mid + 1`
12872 if test $ac_lo -le $ac_mid; then
12873 ac_lo= ac_hi=
12874 break
12875 fi
12876 ac_mid=`expr 2 '*' $ac_mid + 1`
12877fi
12878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879 done
12880else
12881 echo "$as_me: failed program was:" >&5
12882sed 's/^/| /' conftest.$ac_ext >&5
12883
12884cat >conftest.$ac_ext <<_ACEOF
12885/* confdefs.h. */
12886_ACEOF
12887cat confdefs.h >>conftest.$ac_ext
12888cat >>conftest.$ac_ext <<_ACEOF
12889/* end confdefs.h. */
12890$ac_includes_default
12891int
12892main ()
12893{
12894static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12895test_array [0] = 0
12896
12897 ;
12898 return 0;
12899}
12900_ACEOF
12901rm -f conftest.$ac_objext
12902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12903 (eval $ac_compile) 2>conftest.er1
12904 ac_status=$?
12905 grep -v '^ *+' conftest.er1 >conftest.err
12906 rm -f conftest.er1
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_hi=-1 ac_mid=-1
12923 while :; do
12924 cat >conftest.$ac_ext <<_ACEOF
12925/* confdefs.h. */
12926_ACEOF
12927cat confdefs.h >>conftest.$ac_ext
12928cat >>conftest.$ac_ext <<_ACEOF
12929/* end confdefs.h. */
12930$ac_includes_default
12931int
12932main ()
12933{
12934static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12935test_array [0] = 0
12936
12937 ;
12938 return 0;
12939}
12940_ACEOF
12941rm -f conftest.$ac_objext
12942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943 (eval $ac_compile) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest.$ac_objext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_lo=$ac_mid; break
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967ac_hi=`expr '(' $ac_mid ')' - 1`
12968 if test $ac_mid -le $ac_hi; then
12969 ac_lo= ac_hi=
12970 break
12971 fi
12972 ac_mid=`expr 2 '*' $ac_mid`
12973fi
12974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12975 done
12976else
12977 echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980ac_lo= ac_hi=
12981fi
12982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983fi
12984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12985# Binary search between lo and hi bounds.
12986while test "x$ac_lo" != "x$ac_hi"; do
12987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12988 cat >conftest.$ac_ext <<_ACEOF
12989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
12993/* end confdefs.h. */
12994$ac_includes_default
12995int
12996main ()
12997{
12998static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12999test_array [0] = 0
13000
13001 ;
13002 return 0;
13003}
13004_ACEOF
13005rm -f conftest.$ac_objext
13006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13007 (eval $ac_compile) 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016 (eval $ac_try) 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; } &&
13020 { ac_try='test -s conftest.$ac_objext'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13026 ac_hi=$ac_mid
13027else
13028 echo "$as_me: failed program was:" >&5
13029sed 's/^/| /' conftest.$ac_ext >&5
13030
13031ac_lo=`expr '(' $ac_mid ')' + 1`
13032fi
13033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13034done
13035case $ac_lo in
13036?*) ac_cv_sizeof_long=$ac_lo;;
13037'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13038See \`config.log' for more details." >&5
13039echo "$as_me: error: cannot compute sizeof (long), 77
13040See \`config.log' for more details." >&2;}
13041 { (exit 1); exit 1; }; } ;;
13042esac
13043else
13044 if test "$cross_compiling" = yes; then
13045 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13046echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13047 { (exit 1); exit 1; }; }
13048else
13049 cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055$ac_includes_default
13056long longval () { return (long) (sizeof (long)); }
13057unsigned long ulongval () { return (long) (sizeof (long)); }
13058#include <stdio.h>
13059#include <stdlib.h>
13060int
13061main ()
13062{
13063
13064 FILE *f = fopen ("conftest.val", "w");
13065 if (! f)
13066 exit (1);
13067 if (((long) (sizeof (long))) < 0)
13068 {
13069 long i = longval ();
13070 if (i != ((long) (sizeof (long))))
13071 exit (1);
13072 fprintf (f, "%ld\n", i);
13073 }
13074 else
13075 {
13076 unsigned long i = ulongval ();
13077 if (i != ((long) (sizeof (long))))
13078 exit (1);
13079 fprintf (f, "%lu\n", i);
13080 }
13081 exit (ferror (f) || fclose (f) != 0);
13082
13083 ;
13084 return 0;
13085}
13086_ACEOF
13087rm -f conftest$ac_exeext
13088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13089 (eval $ac_link) 2>&5
13090 ac_status=$?
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_cv_sizeof_long=`cat conftest.val`
13099else
13100 echo "$as_me: program exited with status $ac_status" >&5
13101echo "$as_me: failed program was:" >&5
13102sed 's/^/| /' conftest.$ac_ext >&5
13103
13104( exit $ac_status )
13105{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13106See \`config.log' for more details." >&5
13107echo "$as_me: error: cannot compute sizeof (long), 77
13108See \`config.log' for more details." >&2;}
13109 { (exit 1); exit 1; }; }
13110fi
13111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13112fi
13113fi
13114rm -f conftest.val
13115else
13116 ac_cv_sizeof_long=0
13117fi
13118fi
13119echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13120echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13121cat >>confdefs.h <<_ACEOF
13122#define SIZEOF_LONG $ac_cv_sizeof_long
13123_ACEOF
13124
13125
13126echo "$as_me:$LINENO: checking for long long" >&5 12620echo "$as_me:$LINENO: checking for long long" >&5
13127echo $ECHO_N "checking for long long... $ECHO_C" >&6 12621echo $ECHO_N "checking for long long... $ECHO_C" >&6
13128if test "${ac_cv_type_long_long+set}" = set; then 12622if test "${ac_cv_type_long_long+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6 12623 echo $ECHO_N "(cached) $ECHO_C" >&6
13130else 12624else
13981 rxvt_cv_int16_t=yes 13475 rxvt_cv_int16_t=yes
13982else 13476else
13983 echo "$as_me: failed program was:" >&5 13477 echo "$as_me: failed program was:" >&5
13984sed 's/^/| /' conftest.$ac_ext >&5 13478sed 's/^/| /' conftest.$ac_ext >&5
13985 13479
13986if test $ac_cv_sizeof_char -ge 2; then 13480if test "$ac_cv_sizeof_char" -ge 2; then
13987 rxvt_cv_int16_t=" char" 13481 rxvt_cv_int16_t=" char"
13988else 13482else
13989 if test $ac_cv_sizeof_short -ge 2; then 13483 if test "$ac_cv_sizeof_short" -ge 2; then
13990 rxvt_cv_int16_t=" short" 13484 rxvt_cv_int16_t=" short"
13991 else 13485 else
13992 if test $ac_cv_sizeof_int -ge 2; then 13486 if test "$ac_cv_sizeof_int" -ge 2; then
13993 rxvt_cv_int16_t=" int" 13487 rxvt_cv_int16_t=" int"
13994 else 13488 else
13995 if test $ac_cv_sizeof_long -ge 2; then 13489 if test "$ac_cv_sizeof_long" -ge 2; then
13996 rxvt_cv_int16_t=" long" 13490 rxvt_cv_int16_t=" long"
13997 else 13491 else
13998 if test $ac_cv_sizeof_long_long -ge 2; then 13492 if test "$ac_cv_sizeof_long_long" -ge 2; then
13999 rxvt_cv_int16_t=" long long" 13493 rxvt_cv_int16_t=" long long"
14000 else 13494 else
14001 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
14002 fi 13496 fi
14003 fi 13497 fi
14063 rxvt_cv_uint16_t=yes 13557 rxvt_cv_uint16_t=yes
14064else 13558else
14065 echo "$as_me: failed program was:" >&5 13559 echo "$as_me: failed program was:" >&5
14066sed 's/^/| /' conftest.$ac_ext >&5 13560sed 's/^/| /' conftest.$ac_ext >&5
14067 13561
14068if test $ac_cv_sizeof_char -ge 2; then 13562if test "$ac_cv_sizeof_char" -ge 2; then
14069 rxvt_cv_uint16_t="unsigned char" 13563 rxvt_cv_uint16_t="unsigned char"
14070else 13564else
14071 if test $ac_cv_sizeof_short -ge 2; then 13565 if test "$ac_cv_sizeof_short" -ge 2; then
14072 rxvt_cv_uint16_t="unsigned short" 13566 rxvt_cv_uint16_t="unsigned short"
14073 else 13567 else
14074 if test $ac_cv_sizeof_int -ge 2; then 13568 if test "$ac_cv_sizeof_int" -ge 2; then
14075 rxvt_cv_uint16_t="unsigned int" 13569 rxvt_cv_uint16_t="unsigned int"
14076 else 13570 else
14077 if test $ac_cv_sizeof_long -ge 2; then 13571 if test "$ac_cv_sizeof_long" -ge 2; then
14078 rxvt_cv_uint16_t="unsigned long" 13572 rxvt_cv_uint16_t="unsigned long"
14079 else 13573 else
14080 if test $ac_cv_sizeof_long_long -ge 2; then 13574 if test "$ac_cv_sizeof_long_long" -ge 2; then
14081 rxvt_cv_uint16_t="unsigned long long" 13575 rxvt_cv_uint16_t="unsigned long long"
14082 else 13576 else
14083 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
14084 fi 13578 fi
14085 fi 13579 fi
14145 rxvt_cv_int32_t=yes 13639 rxvt_cv_int32_t=yes
14146else 13640else
14147 echo "$as_me: failed program was:" >&5 13641 echo "$as_me: failed program was:" >&5
14148sed 's/^/| /' conftest.$ac_ext >&5 13642sed 's/^/| /' conftest.$ac_ext >&5
14149 13643
14150if test $ac_cv_sizeof_char -ge 4; then 13644if test "$ac_cv_sizeof_char" -ge 4; then
14151 rxvt_cv_int32_t=" char" 13645 rxvt_cv_int32_t=" char"
14152else 13646else
14153 if test $ac_cv_sizeof_short -ge 4; then 13647 if test "$ac_cv_sizeof_short" -ge 4; then
14154 rxvt_cv_int32_t=" short" 13648 rxvt_cv_int32_t=" short"
14155 else 13649 else
14156 if test $ac_cv_sizeof_int -ge 4; then 13650 if test "$ac_cv_sizeof_int" -ge 4; then
14157 rxvt_cv_int32_t=" int" 13651 rxvt_cv_int32_t=" int"
14158 else 13652 else
14159 if test $ac_cv_sizeof_long -ge 4; then 13653 if test "$ac_cv_sizeof_long" -ge 4; then
14160 rxvt_cv_int32_t=" long" 13654 rxvt_cv_int32_t=" long"
14161 else 13655 else
14162 if test $ac_cv_sizeof_long_long -ge 4; then 13656 if test "$ac_cv_sizeof_long_long" -ge 4; then
14163 rxvt_cv_int32_t=" long long" 13657 rxvt_cv_int32_t=" long long"
14164 else 13658 else
14165 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
14166 fi 13660 fi
14167 fi 13661 fi
14227 rxvt_cv_uint32_t=yes 13721 rxvt_cv_uint32_t=yes
14228else 13722else
14229 echo "$as_me: failed program was:" >&5 13723 echo "$as_me: failed program was:" >&5
14230sed 's/^/| /' conftest.$ac_ext >&5 13724sed 's/^/| /' conftest.$ac_ext >&5
14231 13725
14232if test $ac_cv_sizeof_char -ge 4; then 13726if test "$ac_cv_sizeof_char" -ge 4; then
14233 rxvt_cv_uint32_t="unsigned char" 13727 rxvt_cv_uint32_t="unsigned char"
14234else 13728else
14235 if test $ac_cv_sizeof_short -ge 4; then 13729 if test "$ac_cv_sizeof_short" -ge 4; then
14236 rxvt_cv_uint32_t="unsigned short" 13730 rxvt_cv_uint32_t="unsigned short"
14237 else 13731 else
14238 if test $ac_cv_sizeof_int -ge 4; then 13732 if test "$ac_cv_sizeof_int" -ge 4; then
14239 rxvt_cv_uint32_t="unsigned int" 13733 rxvt_cv_uint32_t="unsigned int"
14240 else 13734 else
14241 if test $ac_cv_sizeof_long -ge 4; then 13735 if test "$ac_cv_sizeof_long" -ge 4; then
14242 rxvt_cv_uint32_t="unsigned long" 13736 rxvt_cv_uint32_t="unsigned long"
14243 else 13737 else
14244 if test $ac_cv_sizeof_long_long -ge 4; then 13738 if test "$ac_cv_sizeof_long_long" -ge 4; then
14245 rxvt_cv_uint32_t="unsigned long long" 13739 rxvt_cv_uint32_t="unsigned long long"
14246 else 13740 else
14247 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
14248 fi 13742 fi
14249 fi 13743 fi
14263 else 13757 else
14264 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 13758 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14265 fi 13759 fi
14266fi 13760fi
14267 13761
14268if test $ac_cv_sizeof_int_p -eq 8; then 13762if test "$ac_cv_sizeof_int_p" -eq 8; then
14269 rxvt_intp_define="#define intp_t int64_t" 13763 rxvt_intp_define="#define intp_t int64_t"
14270 rxvt_u_intp_define="#define u_intp_t u_int64_t" 13764 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14271else 13765else
14272 if test $ac_cv_sizeof_int_p -eq 4; then 13766 if test "$ac_cv_sizeof_int_p" -eq 4; then
14273 rxvt_intp_define="#define intp_t int32_t" 13767 rxvt_intp_define="#define intp_t int32_t"
14274 rxvt_u_intp_define="#define u_intp_t u_int32_t" 13768 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14275 else 13769 else
14276 if test $ac_cv_sizeof_int_p -eq 2; then 13770 if test "$ac_cv_sizeof_int_p" -eq 2; then
14277 rxvt_intp_define="#define intp_t int16_t" 13771 rxvt_intp_define="#define intp_t int16_t"
14278 rxvt_u_intp_define="#define u_intp_t u_int16_t" 13772 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14279 else 13773 else
14280 rxvt_intp_define="#error set intp_t" 13774 rxvt_intp_define="#error set intp_t"
14281 rxvt_u_intp_define="#error set u_intp_t" 13775 rxvt_u_intp_define="#error set u_intp_t"
15859/* confdefs.h. */ 15353/* confdefs.h. */
15860_ACEOF 15354_ACEOF
15861cat confdefs.h >>conftest.$ac_ext 15355cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF 15356cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */ 15357/* end confdefs.h. */
15864#include <locale.h> 15358#include <clocale>
15865int 15359int
15866main () 15360main ()
15867{ 15361{
15868setlocale(LC_CTYPE, ""); 15362setlocale(LC_CTYPE, "");
15869 ; 15363 ;
15970#define HAVE_NL_LANGINFO 1 15464#define HAVE_NL_LANGINFO 1
15971_ACEOF 15465_ACEOF
15972 15466
15973fi 15467fi
15974 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
15975echo "$as_me:$LINENO: checking for getpt" >&5 15527echo "$as_me:$LINENO: checking for getpt" >&5
15976echo $ECHO_N "checking for getpt... $ECHO_C" >&6 15528echo $ECHO_N "checking for getpt... $ECHO_C" >&6
15977if test "${rxvt_cv_func_getpt+set}" = set; then 15529if test "${rxvt_cv_func_getpt+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6 15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15979else 15531else
15983cat confdefs.h >>conftest.$ac_ext 15535cat confdefs.h >>conftest.$ac_ext
15984cat >>conftest.$ac_ext <<_ACEOF 15536cat >>conftest.$ac_ext <<_ACEOF
15985/* end confdefs.h. */ 15537/* end confdefs.h. */
15986#define _GNU_SOURCE 15538#define _GNU_SOURCE
15987#ifdef HAVE_STDLIB_H 15539#ifdef HAVE_STDLIB_H
15988# include <stdlib.h> 15540# include <cstdlib>
15989#endif 15541#endif
15990int 15542int
15991main () 15543main ()
15992{ 15544{
15993(void)getpt(); 15545(void)getpt();
16156 15708
16157cat >>confdefs.h <<_ACEOF 15709cat >>confdefs.h <<_ACEOF
16158#define PTYCHAR2 "$pch2" 15710#define PTYCHAR2 "$pch2"
16159_ACEOF 15711_ACEOF
16160 15712
16161fi
16162
16163echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16164echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16165if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16167else
16168 ac_check_lib_save_LIBS=$LIBS
16169LIBS="-lxpg4 $LIBS"
16170cat >conftest.$ac_ext <<_ACEOF
16171/* confdefs.h. */
16172_ACEOF
16173cat confdefs.h >>conftest.$ac_ext
16174cat >>conftest.$ac_ext <<_ACEOF
16175/* end confdefs.h. */
16176
16177/* Override any gcc2 internal prototype to avoid an error. */
16178#ifdef __cplusplus
16179extern "C"
16180#endif
16181/* We use char because int might match the return type of a gcc2
16182 builtin and then its argument prototype would still apply. */
16183char setlocale ();
16184int
16185main ()
16186{
16187setlocale ();
16188 ;
16189 return 0;
16190}
16191_ACEOF
16192rm -f conftest.$ac_objext conftest$ac_exeext
16193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest$ac_exeext'
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_cv_lib_xpg4_setlocale=yes
16214else
16215 echo "$as_me: failed program was:" >&5
16216sed 's/^/| /' conftest.$ac_ext >&5
16217
16218ac_cv_lib_xpg4_setlocale=no
16219fi
16220rm -f conftest.err conftest.$ac_objext \
16221 conftest$ac_exeext conftest.$ac_ext
16222LIBS=$ac_check_lib_save_LIBS
16223fi
16224echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16225echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16226if test $ac_cv_lib_xpg4_setlocale = yes; then
16227 LIBS="$LIBS -lxpg4"
16228fi
16229
16230
16231if test x$support_inheritpixmap = xyes; then
16232
16233cat >>confdefs.h <<\_ACEOF
16234#define TRANSPARENT 1
16235_ACEOF
16236
16237fi
16238if test x$support_keepscrolling = xno; then
16239
16240cat >>confdefs.h <<\_ACEOF
16241#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16242_ACEOF
16243
16244fi
16245if test x$support_selectionscrolling = xyes; then
16246
16247cat >>confdefs.h <<\_ACEOF
16248#define SELECTION_SCROLLING 1
16249_ACEOF
16250
16251fi
16252if test x$support_menubar = xyes; then
16253
16254cat >>confdefs.h <<\_ACEOF
16255#define MENUBAR 1
16256_ACEOF
16257
16258fi
16259if test x$support_frills = xno; then
16260
16261cat >>confdefs.h <<\_ACEOF
16262#define NO_FRILLS 1
16263_ACEOF
16264
16265fi
16266if test x$support_linespace = xno; then
16267
16268cat >>confdefs.h <<\_ACEOF
16269#define NO_LINESPACE 1
16270_ACEOF
16271
16272fi
16273if test x$support_24bit = xyes; then
16274
16275cat >>confdefs.h <<\_ACEOF
16276#define PREFER_24BIT 1
16277_ACEOF
16278
16279fi
16280if test x$support_mousewheel = xyes; then
16281
16282cat >>confdefs.h <<\_ACEOF
16283#define MOUSE_WHEEL 1
16284_ACEOF
16285
16286fi
16287if test x$support_mouseslipwheel = xyes; then
16288
16289cat >>confdefs.h <<\_ACEOF
16290#define MOUSE_SLIP_WHEELING 1
16291_ACEOF
16292
16293fi
16294if test x$support_oldselection = xno; then
16295
16296cat >>confdefs.h <<\_ACEOF
16297#define NO_OLD_SELECTION 1
16298_ACEOF
16299
16300fi
16301if test x$support_utmp = xyes; then
16302
16303cat >>confdefs.h <<\_ACEOF
16304#define UTMP_SUPPORT 1
16305_ACEOF
16306
16307fi
16308if test x$support_wtmp = xyes; then
16309
16310cat >>confdefs.h <<\_ACEOF
16311#define WTMP_SUPPORT 1
16312_ACEOF
16313
16314fi
16315if test x$support_lastlog = xyes; then
16316
16317cat >>confdefs.h <<\_ACEOF
16318#define LASTLOG_SUPPORT 1
16319_ACEOF
16320
16321fi
16322if test x$support_xim = xyes -o x$multichar_set = xyes; then
16323 if test x$rxvt_cv_func_xlocale = xyes; then
16324
16325cat >>confdefs.h <<\_ACEOF
16326#define USE_XIM 1
16327_ACEOF
16328
16329 fi
16330fi
16331if test x$support_xpm = xyes; then
16332
16333cat >>confdefs.h <<\_ACEOF
16334#define XPM_BACKGROUND 1
16335_ACEOF
16336
16337fi
16338if test x$support_scroll_rxvt = xyes; then
16339
16340cat >>confdefs.h <<\_ACEOF
16341#define RXVT_SCROLLBAR 1
16342_ACEOF
16343
16344 scrolltypes="rxvt"
16345fi
16346if test x$support_scroll_next = xyes; then
16347
16348cat >>confdefs.h <<\_ACEOF
16349#define NEXT_SCROLLBAR 1
16350_ACEOF
16351
16352 scrolltypes="$scrolltypes next"
16353fi
16354if test x$support_scroll_xterm = xyes; then
16355
16356cat >>confdefs.h <<\_ACEOF
16357#define XTERM_SCROLLBAR 1
16358_ACEOF
16359
16360 scrolltypes="$scrolltypes xterm"
16361fi
16362if test x$support_scroll_plain = xyes; then
16363
16364cat >>confdefs.h <<\_ACEOF
16365#define PLAIN_SCROLLBAR 1
16366_ACEOF
16367
16368 scrolltypes="$scrolltypes plain"
16369fi
16370if test x$support_pointer_blank = xyes; then
16371
16372cat >>confdefs.h <<\_ACEOF
16373#define POINTER_BLANK 1
16374_ACEOF
16375
16376fi
16377if test x$support_cursor_blink = xyes; then
16378
16379cat >>confdefs.h <<\_ACEOF
16380#define CURSOR_BLINK 1
16381_ACEOF
16382
16383fi
16384if test x$support_text_blink = xyes; then
16385
16386cat >>confdefs.h <<\_ACEOF
16387#define TEXT_BLINK 1
16388_ACEOF
16389
16390fi
16391if test x$support_unicode3 = xyes; then
16392
16393cat >>confdefs.h <<\_ACEOF
16394#define UNICODE_3 1
16395_ACEOF
16396
16397fi
16398if test x$codesets = xall; then
16399 codesets=jp,jp-ext,kr,cn,cn-ext,vn
16400fi
16401for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16402
16403cat >>confdefs.h <<\_ACEOF
16404#define ENCODING_EU 1
16405_ACEOF
16406
16407
16408cat >>confdefs.h <<\_ACEOF
16409#define ENCODING_VN 1
16410_ACEOF
16411
16412 case "$codeset" in
16413 JP )
16414cat >>confdefs.h <<\_ACEOF
16415#define ENCODING_JP 1
16416_ACEOF
16417 ;;
16418 JP_EXT )
16419cat >>confdefs.h <<\_ACEOF
16420#define ENCODING_JP_EXT 1
16421_ACEOF
16422 ;;
16423 KR )
16424cat >>confdefs.h <<\_ACEOF
16425#define ENCODING_KR 1
16426_ACEOF
16427 ;;
16428 CN )
16429cat >>confdefs.h <<\_ACEOF
16430#define ENCODING_CN 1
16431_ACEOF
16432 ;;
16433 CN_EXT )
16434cat >>confdefs.h <<\_ACEOF
16435#define ENCODING_CN_EXT 1
16436_ACEOF
16437 ;;
16438 esac
16439done
16440
16441
16442CFLAGS=${CFLAGS--O}
16443LDFLAGS=${LDFLAGS--O}
16444
16445CPPFLAGS="$CPPFLAGS"
16446
16447
16448
16449
16450
16451
16452
16453if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16454 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16455 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16456 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16457 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16458 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16459fi
16460
16461
16462
16463
16464
16465if test x$support_addstrings = xno; then
16466
16467cat >>confdefs.h <<\_ACEOF
16468#define NO_STRINGS 1
16469_ACEOF
16470
16471fi
16472
16473MCOMMON=./autoconf/Make.common
16474
16475
16476test "$program_prefix" != NONE &&
16477 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16478# Use a double $ so make ignores it.
16479test "$program_suffix" != NONE &&
16480 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16481# Double any \ or $. echo might interpret backslashes.
16482# By default was `s,x,x', remove it if useless.
16483cat <<\_ACEOF >conftest.sed
16484s/[\\$]/&&/g;s/;s,x,x,$//
16485_ACEOF
16486program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16487rm conftest.sed
16488
16489
16490
16491
16492
16493if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16494 include_stdint_h="#include <stdint.h>"
16495else
16496 include_stdint_h="/* #include <stdint.h> */"
16497fi
16498if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16499 include_stdarg_h="#include <stdarg.h>"
16500else
16501 include_stdarg_h="/* #include <stdarg.h> */"
16502fi
16503if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16504 include_stdlib_h="#include <stdlib.h>"
16505else
16506 include_stdlib_h="/* #include <stdlib.h> */"
16507fi
16508if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16509 include_unistd_h="#include <unistd.h>"
16510else
16511 include_unistd_h="/* #include <unistd.h> */"
16512fi
16513if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16514 include_string_h="#include <string.h>"
16515else
16516 include_string_h="/* #include <string.h> */"
16517fi
16518if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16519 include_fcntl_h="#include <fcntl.h>"
16520else
16521 include_fcntl_h="/* #include <fcntl.h> */"
16522fi
16523if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16524 include_util_h="#include <util.h>"
16525else
16526 include_util_h="/* #include <util.h> */"
16527fi
16528if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16529 include_assert_h="#include <assert.h>"
16530else
16531 include_assert_h="/* #include <assert.h> */"
16532fi
16533if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16534 include_sys_ioctl_h="#include <sys/ioctl.h>"
16535else
16536 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16537fi
16538if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16539 include_sys_select_h="#include <sys/select.h>"
16540else
16541 include_sys_select_h="/* #include <sys/select.h> */"
16542fi
16543if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16544 include_sys_strredir_h="#include <sys/strredir.h>"
16545else
16546 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16547fi
16548if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16549 include_sys_time_h="#include <sys/time.h>"
16550else
16551 include_sys_time_h="/* #include <sys/time.h> */"
16552fi
16553if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16554 include_time_h="#include <time.h>"
16555else
16556 include_time_h="/* #include <time.h> */"
16557fi 15713fi
16558 15714
16559if test x$support_xft = xyes; then 15715if test x$support_xft = xyes; then
16560 LIBS="$LIBS `pkg-config xft --libs`" 15716 LIBS="$LIBS `pkg-config xft --libs`"
16561 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 15717 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16794#define XFT 1 15950#define XFT 1
16795_ACEOF 15951_ACEOF
16796 15952
16797 fi 15953 fi
16798fi 15954fi
15955if test x$support_styles = xyes; then
16799 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
16800 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
16801cat >confcache <<\_ACEOF 16313cat >confcache <<\_ACEOF
16802# 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
16803# 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
16804# scripts and configure runs, see configure's option --config-cache. 16316# scripts and configure runs, see configure's option --config-cache.
16805# 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
17325 # Handling of arguments. 16837 # Handling of arguments.
17326 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; 16838 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17327 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16839 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17328 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 16840 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17329 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16841 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17330 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17331 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 16842 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17332 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17333 "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" ;;
17334 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 16844 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17335echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 16845echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17336 { (exit 1); exit 1; }; };; 16846 { (exit 1); exit 1; }; };;
17337 esac 16847 esac
17413s,@DEFS@,$DEFS,;t t 16923s,@DEFS@,$DEFS,;t t
17414s,@ECHO_C@,$ECHO_C,;t t 16924s,@ECHO_C@,$ECHO_C,;t t
17415s,@ECHO_N@,$ECHO_N,;t t 16925s,@ECHO_N@,$ECHO_N,;t t
17416s,@ECHO_T@,$ECHO_T,;t t 16926s,@ECHO_T@,$ECHO_T,;t t
17417s,@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
17418s,@VERSION@,$VERSION,;t t 16936s,@VERSION@,$VERSION,;t t
17419s,@DATE@,$DATE,;t t 16937s,@DATE@,$DATE,;t t
17420s,@LSMDATE@,$LSMDATE,;t t 16938s,@LSMDATE@,$LSMDATE,;t t
17421s,@LIBVERSION@,$LIBVERSION,;t t 16939s,@LIBVERSION@,$LIBVERSION,;t t
17422s,@CC@,$CC,;t t 16940s,@CC@,$CC,;t t
17435s,@INSTALL_DATA@,$INSTALL_DATA,;t t 16953s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17436s,@AWK@,$AWK,;t t 16954s,@AWK@,$AWK,;t t
17437s,@LINKER@,$LINKER,;t t 16955s,@LINKER@,$LINKER,;t t
17438s,@CXXCPP@,$CXXCPP,;t t 16956s,@CXXCPP@,$CXXCPP,;t t
17439s,@EGREP@,$EGREP,;t t 16957s,@EGREP@,$EGREP,;t t
17440s,@build@,$build,;t t
17441s,@build_cpu@,$build_cpu,;t t
17442s,@build_vendor@,$build_vendor,;t t
17443s,@build_os@,$build_os,;t t
17444s,@host@,$host,;t t
17445s,@host_cpu@,$host_cpu,;t t
17446s,@host_vendor@,$host_vendor,;t t
17447s,@host_os@,$host_os,;t t
17448s,@LN_S@,$LN_S,;t t 16958s,@LN_S@,$LN_S,;t t
17449s,@ECHO@,$ECHO,;t t 16959s,@ECHO@,$ECHO,;t t
17450s,@RANLIB@,$RANLIB,;t t 16960s,@RANLIB@,$RANLIB,;t t
17451s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 16961s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17452s,@STRIP@,$STRIP,;t t 16962s,@STRIP@,$STRIP,;t t
17459s,@CP@,$CP,;t t 16969s,@CP@,$CP,;t t
17460s,@LN@,$LN,;t t 16970s,@LN@,$LN,;t t
17461s,@SED@,$SED,;t t 16971s,@SED@,$SED,;t t
17462s,@CMP@,$CMP,;t t 16972s,@CMP@,$CMP,;t t
17463s,@TBL@,$TBL,;t t 16973s,@TBL@,$TBL,;t t
16974s,@TIC@,$TIC,;t t
17464s,@X_CFLAGS@,$X_CFLAGS,;t t 16975s,@X_CFLAGS@,$X_CFLAGS,;t t
17465s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 16976s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17466s,@X_LIBS@,$X_LIBS,;t t 16977s,@X_LIBS@,$X_LIBS,;t t
17467s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 16978s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17468s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 16979s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
18013echo " 17524echo "
18014The following are set in config.h 17525The following are set in config.h
18015" 17526"
18016echo " pty/tty type: "$rxvt_cv_ptys 17527echo " pty/tty type: "$rxvt_cv_ptys
18017if test x$support_utmp != xyes; then 17528if test x$support_utmp != xyes; then
18018 echo " utmp support: disabled 17529 echo " utmp support: disabled"
18019" 17530 echo
18020else 17531else
18021 echo " utmp support: enabled 17532 echo " utmp support: enabled
18022 utmp file: $rxvt_cv_path_utmp 17533 utmp file: $rxvt_cv_path_utmp
18023 utmpx file: $rxvt_cv_path_utmpx 17534 utmpx file: $rxvt_cv_path_utmpx
18024 wtmp file: $rxvt_cv_path_wtmp 17535 wtmp file: $rxvt_cv_path_wtmp
18025 wtmpx file: $rxvt_cv_path_wtmpx 17536 wtmpx file: $rxvt_cv_path_wtmpx
18026 lastlog file: $rxvt_cv_path_lastlog 17537 lastlog file: $rxvt_cv_path_lastlog
18027 ttys/ttytab file: $rxvt_cv_path_ttytab 17538 ttys/ttytab file: $rxvt_cv_path_ttytab"
18028" 17539 echo
18029fi 17540fi
18030if test x$term != x; then 17541if test x$term != x; then
18031 echo " set TERM to: $term 17542 echo " set TERM to: $term"
18032"
18033fi 17543fi
18034if test x$terminfo != x; then 17544if test x$terminfo != x; then
18035 echo " set TERMINFO to: $terminfo 17545 echo " set TERMINFO to: $terminfo"
18036"
18037fi 17546fi
17547echo " default resource name: $RESNAME"
17548echo " resource class: $RESCLASS"
17549if test x$RESFALLBACK != x; then
17550 echo " resource class fallback: $RESFALLBACK"
17551fi
17552echo
18038if test x$rxvt_cv_ptys = xUNKNOWN; then 17553if test x$rxvt_cv_ptys = xUNKNOWN; then
18039 echo ".----------------------------------------------------------------." 17554 echo ".----------------------------------------------------------------."
18040 echo ". WARNING: could not determine pty/tty type. Do not build until ." 17555 echo ". WARNING: could not determine pty/tty type. Do not build until ."
18041 echo ". the appropriate PTYS_ARE_* is defined in config.h ." 17556 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
18042 echo ".----------------------------------------------------------------." 17557 echo ".----------------------------------------------------------------."
18056 echo ". WARNING: --enable-xim was specified however the locale support ." 17571 echo ". WARNING: --enable-xim was specified however the locale support ."
18057 echo ". functions could not be found. ." 17572 echo ". functions could not be found. ."
18058 echo ". XIM is now being DISABLED! ." 17573 echo ". XIM is now being DISABLED! ."
18059 echo ".----------------------------------------------------------------." 17574 echo ".----------------------------------------------------------------."
18060fi 17575fi
17576
18061echo " *** Please check src/feature.h for further options *** 17577echo " *** Please check src/feature.h for further options ***"
18062" 17578echo
17579
17580echo ".----------------------------------------------------------------."
17581echo ". NOTE: most features are disabled by default, try ."
17582echo ". configure --help to get an idea of the optional features ."
17583echo ".----------------------------------------------------------------."
17584echo
17585

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines