… | |
… | |
597 | IF_PERL |
597 | IF_PERL |
598 | PERLPRIVLIBEXP |
598 | PERLPRIVLIBEXP |
599 | PERLFLAGS |
599 | PERLFLAGS |
600 | PERLLIB |
600 | PERLLIB |
601 | PERL |
601 | PERL |
|
|
602 | PIXBUF_LIBS |
|
|
603 | PIXBUF_CFLAGS |
602 | XFT_CONFIG |
604 | XFT_CONFIG |
603 | AFTERIMAGE_LIBS |
|
|
604 | AFTERIMAGE_CFLAGS |
|
|
605 | afterimage_config |
|
|
606 | STARTUP_NOTIFICATION_LIBS |
605 | STARTUP_NOTIFICATION_LIBS |
607 | STARTUP_NOTIFICATION_CFLAGS |
606 | STARTUP_NOTIFICATION_CFLAGS |
608 | PIXBUF_LIBS |
|
|
609 | PIXBUF_CFLAGS |
|
|
610 | PKG_CONFIG |
607 | PKG_CONFIG |
611 | X_EXTRA_LIBS |
608 | X_EXTRA_LIBS |
612 | X_LIBS |
609 | X_LIBS |
613 | X_PRE_LIBS |
610 | X_PRE_LIBS |
614 | X_CFLAGS |
611 | X_CFLAGS |
… | |
… | |
617 | CXXCPP |
614 | CXXCPP |
618 | RXVTNAME |
615 | RXVTNAME |
619 | LINKER |
616 | LINKER |
620 | EGREP |
617 | EGREP |
621 | GREP |
618 | GREP |
|
|
619 | CPP |
622 | INSTALL_DATA |
620 | INSTALL_DATA |
623 | INSTALL_SCRIPT |
621 | INSTALL_SCRIPT |
624 | INSTALL_PROGRAM |
622 | INSTALL_PROGRAM |
625 | CPP |
|
|
626 | ac_ct_CXX |
623 | ac_ct_CXX |
627 | CXXFLAGS |
624 | CXXFLAGS |
628 | CXX |
625 | CXX |
629 | OBJEXT |
626 | OBJEXT |
630 | EXEEXT |
627 | EXEEXT |
… | |
… | |
690 | enable_256_color |
687 | enable_256_color |
691 | enable_unicode3 |
688 | enable_unicode3 |
692 | enable_combining |
689 | enable_combining |
693 | enable_xft |
690 | enable_xft |
694 | enable_font_styles |
691 | enable_font_styles |
695 | enable_afterimage |
|
|
696 | with_afterimage_config |
|
|
697 | enable_pixbuf |
692 | enable_pixbuf |
698 | enable_startup_notification |
693 | enable_startup_notification |
699 | enable_transparency |
694 | enable_transparency |
700 | enable_fading |
695 | enable_fading |
701 | enable_rxvt_scroll |
696 | enable_rxvt_scroll |
… | |
… | |
1367 | --enable-256-color enable 256-color support |
1362 | --enable-256-color enable 256-color support |
1368 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1363 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1369 | --enable-combining enable composition of base and combining characters |
1364 | --enable-combining enable composition of base and combining characters |
1370 | --enable-xft enable xft support on systems that have it |
1365 | --enable-xft enable xft support on systems that have it |
1371 | --enable-font-styles enable bold and italic support |
1366 | --enable-font-styles enable bold and italic support |
1372 | --enable-afterimage enable integration with libAfterImage for background images |
|
|
1373 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1367 | --enable-pixbuf enable integration with gdk-pixbuf for background images |
1374 | --enable-startup-notification enable freedesktop startup notification support |
1368 | --enable-startup-notification enable freedesktop startup notification support |
1375 | --enable-transparency enable transparent backgrounds |
1369 | --enable-transparency enable transparent backgrounds |
1376 | --enable-fading enable colors fading when off focus |
1370 | --enable-fading enable colors fading when off focus |
1377 | --enable-rxvt-scroll enable rxvt style scrollbar |
1371 | --enable-rxvt-scroll enable rxvt style scrollbar |
… | |
… | |
1399 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1393 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1400 | |
1394 | |
1401 | Optional Packages: |
1395 | Optional Packages: |
1402 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1396 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1403 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1397 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1404 | --with-afterimage-config=DIR use libAfterImage config script in DIR |
|
|
1405 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1398 | --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1406 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1399 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1407 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1400 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1408 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1401 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1409 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1402 | --with-term=NAME set the terminal to NAME (default: rxvt) |
… | |
… | |
2738 | IFS=$ac_save_IFS |
2731 | IFS=$ac_save_IFS |
2739 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2732 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2740 | |
2733 | |
2741 | |
2734 | |
2742 | |
2735 | |
2743 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2736 | VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2744 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2737 | DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
2745 | |
2738 | |
2746 | echo "" |
2739 | echo "" |
2747 | echo "configuring for rxvt $VERSION" |
2740 | echo "configuring for rxvt $VERSION" |
2748 | echo "" |
2741 | echo "" |
2749 | |
2742 | |
… | |
… | |
3788 | CXXFLAGS="-O2" |
3781 | CXXFLAGS="-O2" |
3789 | else |
3782 | else |
3790 | CXXFLAGS= |
3783 | CXXFLAGS= |
3791 | fi |
3784 | fi |
3792 | fi |
3785 | fi |
3793 | ac_ext=c |
|
|
3794 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3795 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3796 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3797 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3798 | |
|
|
3799 | ac_ext=c |
|
|
3800 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3801 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3802 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3803 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
|
3805 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
|
3806 | # On Suns, sometimes $CPP names a directory. |
|
|
3807 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
3808 | CPP= |
|
|
3809 | fi |
|
|
3810 | if test -z "$CPP"; then |
|
|
3811 | if test "${ac_cv_prog_CPP+set}" = set; then : |
|
|
3812 | $as_echo_n "(cached) " >&6 |
|
|
3813 | else |
|
|
3814 | # Double quotes because CPP needs to be expanded |
|
|
3815 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
3816 | do |
|
|
3817 | ac_preproc_ok=false |
|
|
3818 | for ac_c_preproc_warn_flag in '' yes |
|
|
3819 | do |
|
|
3820 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3821 | # with a fresh cross-compiler works. |
|
|
3822 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3823 | # <limits.h> exists even on freestanding compilers. |
|
|
3824 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3825 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3827 | /* end confdefs.h. */ |
|
|
3828 | #ifdef __STDC__ |
|
|
3829 | # include <limits.h> |
|
|
3830 | #else |
|
|
3831 | # include <assert.h> |
|
|
3832 | #endif |
|
|
3833 | Syntax error |
|
|
3834 | _ACEOF |
|
|
3835 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3836 | |
|
|
3837 | else |
|
|
3838 | # Broken: fails on valid input. |
|
|
3839 | continue |
|
|
3840 | fi |
|
|
3841 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3842 | |
|
|
3843 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3844 | # can be detected and how. |
|
|
3845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3846 | /* end confdefs.h. */ |
|
|
3847 | #include <ac_nonexistent.h> |
|
|
3848 | _ACEOF |
|
|
3849 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3850 | # Broken: success on invalid input. |
|
|
3851 | continue |
|
|
3852 | else |
|
|
3853 | # Passes both tests. |
|
|
3854 | ac_preproc_ok=: |
|
|
3855 | break |
|
|
3856 | fi |
|
|
3857 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3858 | |
|
|
3859 | done |
|
|
3860 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3861 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
3862 | if $ac_preproc_ok; then : |
|
|
3863 | break |
|
|
3864 | fi |
|
|
3865 | |
|
|
3866 | done |
|
|
3867 | ac_cv_prog_CPP=$CPP |
|
|
3868 | |
|
|
3869 | fi |
|
|
3870 | CPP=$ac_cv_prog_CPP |
|
|
3871 | else |
|
|
3872 | ac_cv_prog_CPP=$CPP |
|
|
3873 | fi |
|
|
3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
|
3875 | $as_echo "$CPP" >&6; } |
|
|
3876 | ac_preproc_ok=false |
|
|
3877 | for ac_c_preproc_warn_flag in '' yes |
|
|
3878 | do |
|
|
3879 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3880 | # with a fresh cross-compiler works. |
|
|
3881 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3882 | # <limits.h> exists even on freestanding compilers. |
|
|
3883 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3884 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3886 | /* end confdefs.h. */ |
|
|
3887 | #ifdef __STDC__ |
|
|
3888 | # include <limits.h> |
|
|
3889 | #else |
|
|
3890 | # include <assert.h> |
|
|
3891 | #endif |
|
|
3892 | Syntax error |
|
|
3893 | _ACEOF |
|
|
3894 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3895 | |
|
|
3896 | else |
|
|
3897 | # Broken: fails on valid input. |
|
|
3898 | continue |
|
|
3899 | fi |
|
|
3900 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3901 | |
|
|
3902 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3903 | # can be detected and how. |
|
|
3904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3905 | /* end confdefs.h. */ |
|
|
3906 | #include <ac_nonexistent.h> |
|
|
3907 | _ACEOF |
|
|
3908 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3909 | # Broken: success on invalid input. |
|
|
3910 | continue |
|
|
3911 | else |
|
|
3912 | # Passes both tests. |
|
|
3913 | ac_preproc_ok=: |
|
|
3914 | break |
|
|
3915 | fi |
|
|
3916 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3917 | |
|
|
3918 | done |
|
|
3919 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3920 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
3921 | if $ac_preproc_ok; then : |
|
|
3922 | |
|
|
3923 | else |
|
|
3924 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
3925 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
3926 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
|
3927 | See \`config.log' for more details" "$LINENO" 5 ; } |
|
|
3928 | fi |
|
|
3929 | |
|
|
3930 | ac_ext=c |
3786 | ac_ext=c |
3931 | ac_cpp='$CPP $CPPFLAGS' |
3787 | ac_cpp='$CPP $CPPFLAGS' |
3932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
… | |
… | |
4026 | |
3882 | |
4027 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3883 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4028 | |
3884 | |
4029 | |
3885 | |
4030 | |
3886 | |
|
|
3887 | ac_ext=c |
|
|
3888 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3889 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3890 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3891 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
|
3893 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
|
3894 | # On Suns, sometimes $CPP names a directory. |
|
|
3895 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
3896 | CPP= |
|
|
3897 | fi |
|
|
3898 | if test -z "$CPP"; then |
|
|
3899 | if test "${ac_cv_prog_CPP+set}" = set; then : |
|
|
3900 | $as_echo_n "(cached) " >&6 |
|
|
3901 | else |
|
|
3902 | # Double quotes because CPP needs to be expanded |
|
|
3903 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
3904 | do |
|
|
3905 | ac_preproc_ok=false |
|
|
3906 | for ac_c_preproc_warn_flag in '' yes |
|
|
3907 | do |
|
|
3908 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3909 | # with a fresh cross-compiler works. |
|
|
3910 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3911 | # <limits.h> exists even on freestanding compilers. |
|
|
3912 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3913 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3915 | /* end confdefs.h. */ |
|
|
3916 | #ifdef __STDC__ |
|
|
3917 | # include <limits.h> |
|
|
3918 | #else |
|
|
3919 | # include <assert.h> |
|
|
3920 | #endif |
|
|
3921 | Syntax error |
|
|
3922 | _ACEOF |
|
|
3923 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3924 | |
|
|
3925 | else |
|
|
3926 | # Broken: fails on valid input. |
|
|
3927 | continue |
|
|
3928 | fi |
|
|
3929 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3930 | |
|
|
3931 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3932 | # can be detected and how. |
|
|
3933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3934 | /* end confdefs.h. */ |
|
|
3935 | #include <ac_nonexistent.h> |
|
|
3936 | _ACEOF |
|
|
3937 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3938 | # Broken: success on invalid input. |
|
|
3939 | continue |
|
|
3940 | else |
|
|
3941 | # Passes both tests. |
|
|
3942 | ac_preproc_ok=: |
|
|
3943 | break |
|
|
3944 | fi |
|
|
3945 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3946 | |
|
|
3947 | done |
|
|
3948 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3949 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
3950 | if $ac_preproc_ok; then : |
|
|
3951 | break |
|
|
3952 | fi |
|
|
3953 | |
|
|
3954 | done |
|
|
3955 | ac_cv_prog_CPP=$CPP |
|
|
3956 | |
|
|
3957 | fi |
|
|
3958 | CPP=$ac_cv_prog_CPP |
|
|
3959 | else |
|
|
3960 | ac_cv_prog_CPP=$CPP |
|
|
3961 | fi |
|
|
3962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
|
3963 | $as_echo "$CPP" >&6; } |
|
|
3964 | ac_preproc_ok=false |
|
|
3965 | for ac_c_preproc_warn_flag in '' yes |
|
|
3966 | do |
|
|
3967 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3968 | # with a fresh cross-compiler works. |
|
|
3969 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3970 | # <limits.h> exists even on freestanding compilers. |
|
|
3971 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3972 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3974 | /* end confdefs.h. */ |
|
|
3975 | #ifdef __STDC__ |
|
|
3976 | # include <limits.h> |
|
|
3977 | #else |
|
|
3978 | # include <assert.h> |
|
|
3979 | #endif |
|
|
3980 | Syntax error |
|
|
3981 | _ACEOF |
|
|
3982 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3983 | |
|
|
3984 | else |
|
|
3985 | # Broken: fails on valid input. |
|
|
3986 | continue |
|
|
3987 | fi |
|
|
3988 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
3989 | |
|
|
3990 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
3991 | # can be detected and how. |
|
|
3992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3993 | /* end confdefs.h. */ |
|
|
3994 | #include <ac_nonexistent.h> |
|
|
3995 | _ACEOF |
|
|
3996 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
3997 | # Broken: success on invalid input. |
|
|
3998 | continue |
|
|
3999 | else |
|
|
4000 | # Passes both tests. |
|
|
4001 | ac_preproc_ok=: |
|
|
4002 | break |
|
|
4003 | fi |
|
|
4004 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
4005 | |
|
|
4006 | done |
|
|
4007 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
4008 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
4009 | if $ac_preproc_ok; then : |
|
|
4010 | |
|
|
4011 | else |
|
|
4012 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
4013 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
4014 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
|
4015 | See \`config.log' for more details" "$LINENO" 5 ; } |
|
|
4016 | fi |
|
|
4017 | |
|
|
4018 | ac_ext=c |
|
|
4019 | ac_cpp='$CPP $CPPFLAGS' |
|
|
4020 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4021 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4022 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4023 | |
4031 | |
4024 | |
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4033 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4026 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4034 | if test "${ac_cv_path_GREP+set}" = set; then : |
4027 | if test "${ac_cv_path_GREP+set}" = set; then : |
4035 | $as_echo_n "(cached) " >&6 |
4028 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4412 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4405 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4413 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4406 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4414 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4407 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4415 | |
4408 | |
4416 | |
4409 | |
|
|
4410 | LINKER="$CXX" |
4417 | if test x$GCC = xyes && test x$GXX = xyes; then |
4411 | if test x$GCC = xyes && test x$GXX = xyes; then |
4418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5 |
4419 | $as_echo_n "checking for working libsupc++... " >&6; } |
4413 | $as_echo_n "checking for working libsupc++... " >&6; } |
4420 | save_CXX="$CXX" |
4414 | save_CXX="$CXX" |
4421 | save_LIBS="$LIBS" |
4415 | save_LIBS="$LIBS" |
4422 | CXX="$CC" |
4416 | CXX="$CC" |
4423 | LIBS="$LIBS -lsupc++" |
4417 | LIBS="$LIBS -lsupc++" |
4424 | LINKER="$CC" |
|
|
4425 | |
4418 | |
4426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4427 | /* end confdefs.h. */ |
4420 | /* end confdefs.h. */ |
4428 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4421 | struct test { }; void f() try { throw new test; } catch (...) { throw; } |
4429 | int |
4422 | int |
… | |
… | |
4435 | } |
4428 | } |
4436 | _ACEOF |
4429 | _ACEOF |
4437 | if ac_fn_cxx_try_link "$LINENO"; then : |
4430 | if ac_fn_cxx_try_link "$LINENO"; then : |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
4439 | $as_echo "ok" >&6; } |
4432 | $as_echo "ok" >&6; } |
|
|
4433 | LINKER="$CC" |
4440 | else |
4434 | else |
4441 | |
4435 | |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5 |
4443 | $as_echo "no, making everything bigger and slower" >&6; } |
4437 | $as_echo "no, making everything bigger and slower" >&6; } |
4444 | LIBS="$save_LIBS" |
4438 | LIBS="$save_LIBS" |
4445 | LINKER="$save_CXX" |
|
|
4446 | |
4439 | |
4447 | |
4440 | |
4448 | fi |
4441 | fi |
4449 | rm -f core conftest.err conftest.$ac_objext \ |
4442 | rm -f core conftest.err conftest.$ac_objext \ |
4450 | conftest$ac_exeext conftest.$ac_ext |
4443 | conftest$ac_exeext conftest.$ac_ext |
… | |
… | |
4476 | else |
4469 | else |
4477 | CXXFLAGS="-O" |
4470 | CXXFLAGS="-O" |
4478 | fi |
4471 | fi |
4479 | CFLAGS="$CXXFLAGS" |
4472 | CFLAGS="$CXXFLAGS" |
4480 | fi |
4473 | fi |
4481 | |
|
|
4482 | case $host in |
|
|
4483 | *-*-solaris* ) |
|
|
4484 | |
|
|
4485 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
4486 | |
|
|
4487 | ;; |
|
|
4488 | esac |
|
|
4489 | |
4474 | |
4490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5 |
4491 | $as_echo_n "checking for library containing setlocale... " >&6; } |
4476 | $as_echo_n "checking for library containing setlocale... " >&6; } |
4492 | if test "${ac_cv_search_setlocale+set}" = set; then : |
4477 | if test "${ac_cv_search_setlocale+set}" = set; then : |
4493 | $as_echo_n "(cached) " >&6 |
4478 | $as_echo_n "(cached) " >&6 |
… | |
… | |
4670 | support_scroll_next=yes |
4655 | support_scroll_next=yes |
4671 | support_scroll_xterm=yes |
4656 | support_scroll_xterm=yes |
4672 | support_xim=yes |
4657 | support_xim=yes |
4673 | support_pixbuf=yes |
4658 | support_pixbuf=yes |
4674 | support_startup_notification=yes |
4659 | support_startup_notification=yes |
4675 | support_afterimage=yes |
|
|
4676 | support_xft=yes |
4660 | support_xft=yes |
4677 | support_unicode3=no |
4661 | support_unicode3=no |
4678 | support_combining=yes |
4662 | support_combining=yes |
4679 | support_8bitctrls=no |
4663 | support_8bitctrls=no |
4680 | support_iso14755=yes |
4664 | support_iso14755=yes |
… | |
… | |
4703 | support_utmp=no |
4687 | support_utmp=no |
4704 | support_wtmp=no |
4688 | support_wtmp=no |
4705 | support_xim=no |
4689 | support_xim=no |
4706 | support_pixbuf=no |
4690 | support_pixbuf=no |
4707 | support_startup_notification=no |
4691 | support_startup_notification=no |
4708 | support_afterimage=no |
|
|
4709 | support_xft=no |
4692 | support_xft=no |
4710 | support_unicode3=no |
4693 | support_unicode3=no |
4711 | support_combining=no |
4694 | support_combining=no |
4712 | support_8bitctrls=no |
4695 | support_8bitctrls=no |
4713 | support_iso14755=no |
4696 | support_iso14755=no |
… | |
… | |
4732 | support_utmp=yes |
4715 | support_utmp=yes |
4733 | support_wtmp=yes |
4716 | support_wtmp=yes |
4734 | support_xim=yes |
4717 | support_xim=yes |
4735 | support_pixbuf=yes |
4718 | support_pixbuf=yes |
4736 | support_startup_notification=yes |
4719 | support_startup_notification=yes |
4737 | support_afterimage=yes |
|
|
4738 | support_xft=yes |
4720 | support_xft=yes |
4739 | support_unicode3=yes |
4721 | support_unicode3=yes |
4740 | support_combining=yes |
4722 | support_combining=yes |
4741 | #support_8bitctrls=yes |
4723 | #support_8bitctrls=yes |
4742 | support_iso14755=yes |
4724 | support_iso14755=yes |
… | |
… | |
4746 | fi |
4728 | fi |
4747 | |
4729 | |
4748 | fi |
4730 | fi |
4749 | |
4731 | |
4750 | |
4732 | |
4751 | ASSERTIONS=no |
4733 | support_assertions=no |
4752 | # Check whether --enable-assert was given. |
4734 | # Check whether --enable-assert was given. |
4753 | if test "${enable_assert+set}" = set; then : |
4735 | if test "${enable_assert+set}" = set; then : |
4754 | enableval=$enable_assert; if test x$enableval = xyes; then |
4736 | enableval=$enable_assert; if test x$enableval = xyes; then |
4755 | ASSERTIONS=yes |
4737 | support_assertions=yes |
4756 | fi |
4738 | fi |
4757 | fi |
4739 | fi |
4758 | |
4740 | |
4759 | if test x$ASSERTIONS = xno; then |
4741 | if test x$support_assertions = xno; then |
4760 | |
4742 | |
4761 | $as_echo "#define NDEBUG 1" >>confdefs.h |
4743 | $as_echo "#define NDEBUG 1" >>confdefs.h |
4762 | |
4744 | |
4763 | fi |
4745 | fi |
4764 | |
4746 | |
4765 | WARNINGS=no |
4747 | support_warnings=no |
4766 | # Check whether --enable-warnings was given. |
4748 | # Check whether --enable-warnings was given. |
4767 | if test "${enable_warnings+set}" = set; then : |
4749 | if test "${enable_warnings+set}" = set; then : |
4768 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4750 | enableval=$enable_warnings; if test x$enableval = xyes; then |
4769 | WARNINGS=yes |
4751 | support_warnings=yes |
4770 | fi |
4752 | fi |
4771 | fi |
4753 | fi |
4772 | |
4754 | |
4773 | if test x$GXX = xyes; then |
4755 | if test x$GXX = xyes; then |
4774 | if test $WARNINGS = yes; then |
4756 | if test $support_warnings = yes; then |
4775 | save_CXXFLAGS="$CXXFLAGS" |
4757 | save_CXXFLAGS="$CXXFLAGS" |
4776 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor" |
4758 | CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value" |
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4759 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4778 | /* end confdefs.h. */ |
4760 | /* end confdefs.h. */ |
4779 | |
4761 | |
4780 | int |
4762 | int |
4781 | main () |
4763 | main () |
… | |
… | |
4836 | |
4818 | |
4837 | # Check whether --enable-font-styles was given. |
4819 | # Check whether --enable-font-styles was given. |
4838 | if test "${enable_font_styles+set}" = set; then : |
4820 | if test "${enable_font_styles+set}" = set; then : |
4839 | enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
4821 | enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then |
4840 | support_styles=$enableval |
4822 | support_styles=$enableval |
4841 | fi |
|
|
4842 | fi |
|
|
4843 | |
|
|
4844 | |
|
|
4845 | # Check whether --enable-afterimage was given. |
|
|
4846 | if test "${enable_afterimage+set}" = set; then : |
|
|
4847 | enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4848 | support_afterimage=$enableval |
|
|
4849 | fi |
|
|
4850 | fi |
|
|
4851 | |
|
|
4852 | |
|
|
4853 | |
|
|
4854 | # Check whether --with-afterimage_config was given. |
|
|
4855 | if test "${with_afterimage_config+set}" = set; then : |
|
|
4856 | withval=$with_afterimage_config; if test "x$withval" != x; then |
|
|
4857 | afterimage_config=$withval/afterimage-config |
|
|
4858 | fi |
4823 | fi |
4859 | fi |
4824 | fi |
4860 | |
4825 | |
4861 | |
4826 | |
4862 | # Check whether --enable-pixbuf was given. |
4827 | # Check whether --enable-pixbuf was given. |
… | |
… | |
6277 | LDFLAGS=$ac_save_LDFLAGS |
6242 | LDFLAGS=$ac_save_LDFLAGS |
6278 | |
6243 | |
6279 | fi |
6244 | fi |
6280 | |
6245 | |
6281 | |
6246 | |
6282 | image_lib=none |
6247 | STARTUP_NOTIFICATION_CFLAGS= |
|
|
6248 | STARTUP_NOTIFICATION_LIBS= |
6283 | |
6249 | |
6284 | PIXBUF_CFLAGS= |
|
|
6285 | PIXBUF_LIBS= |
|
|
6286 | |
|
|
6287 | if test x$support_pixbuf = xyes; then |
6250 | if test x$support_startup_notification = xyes; then |
6288 | support_pixbuf=no |
6251 | support_startup_notification=no |
6289 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6252 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6290 | set dummy pkg-config; ac_word=$2 |
6253 | set dummy pkg-config; ac_word=$2 |
6291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6292 | $as_echo_n "checking for $ac_word... " >&6; } |
6255 | $as_echo_n "checking for $ac_word... " >&6; } |
6293 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
6256 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
6325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6326 | $as_echo "no" >&6; } |
6289 | $as_echo "no" >&6; } |
6327 | fi |
6290 | fi |
6328 | |
6291 | |
6329 | |
6292 | |
6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5 |
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 |
6331 | $as_echo_n "checking for gdk-pixbuf... " >&6; } |
6294 | $as_echo_n "checking for libstartup-notification... " >&6; } |
6332 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
6295 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
6333 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
6296 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
6334 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
6297 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
6335 | support_pixbuf=yes |
6298 | support_startup_notification=yes |
6336 | fi |
6299 | fi |
6337 | |
6300 | |
6338 | if test x$support_pixbuf = xyes; then |
6301 | if test x$support_startup_notification = xyes; then |
6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6340 | $as_echo "ok" >&6; } |
6303 | $as_echo "ok" >&6; } |
6341 | image_lib=gdk-pixbuf |
|
|
6342 | support_afterimage=no |
|
|
6343 | |
6304 | |
6344 | $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h |
6305 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
6345 | |
|
|
6346 | |
|
|
6347 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
6348 | |
6306 | |
6349 | else |
6307 | else |
6350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6351 | $as_echo "no" >&6; } |
6309 | $as_echo "no" >&6; } |
6352 | fi |
6310 | fi |
6353 | fi |
6311 | fi |
6354 | |
6312 | |
6355 | |
6313 | |
6356 | |
6314 | |
6357 | |
6315 | |
6358 | STARTUP_NOTIFICATION_CFLAGS= |
6316 | for ac_header in \ |
6359 | STARTUP_NOTIFICATION_LIBS= |
6317 | sys/byteorder.h \ |
|
|
6318 | sys/ioctl.h \ |
|
|
6319 | sys/sockio.h \ |
|
|
6320 | sys/strredir.h \ |
|
|
6321 | stdint.h \ |
|
|
6322 | wchar.h \ |
6360 | |
6323 | |
|
|
6324 | do : |
|
|
6325 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6326 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
6327 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
6328 | cat >>confdefs.h <<_ACEOF |
|
|
6329 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6330 | _ACEOF |
|
|
6331 | |
|
|
6332 | fi |
|
|
6333 | |
|
|
6334 | done |
|
|
6335 | |
|
|
6336 | |
|
|
6337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6338 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6339 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
|
|
6340 | $as_echo_n "(cached) " >&6 |
|
|
6341 | else |
|
|
6342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6343 | /* end confdefs.h. */ |
|
|
6344 | |
|
|
6345 | #define XLIB_ILLEGAL_ACCESS |
|
|
6346 | #include <X11/Xlib.h> |
|
|
6347 | |
|
|
6348 | int |
|
|
6349 | main () |
|
|
6350 | { |
|
|
6351 | |
|
|
6352 | Display *dpy; |
|
|
6353 | dpy->xdefaults = (char *)0; |
|
|
6354 | |
|
|
6355 | ; |
|
|
6356 | return 0; |
|
|
6357 | } |
|
|
6358 | _ACEOF |
|
|
6359 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6360 | rxvt_cv_xlib_illegal_access=yes |
|
|
6361 | else |
|
|
6362 | rxvt_cv_xlib_illegal_access=no |
|
|
6363 | |
|
|
6364 | fi |
|
|
6365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6366 | fi |
|
|
6367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
6368 | $as_echo "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
6369 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
6370 | |
|
|
6371 | $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
6372 | |
|
|
6373 | fi |
|
|
6374 | |
|
|
6375 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
6376 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
|
|
6377 | |
|
|
6378 | else |
|
|
6379 | |
|
|
6380 | cat >>confdefs.h <<_ACEOF |
|
|
6381 | #define mode_t int |
|
|
6382 | _ACEOF |
|
|
6383 | |
|
|
6384 | fi |
|
|
6385 | |
|
|
6386 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
|
|
6387 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
|
|
6388 | |
|
|
6389 | else |
|
|
6390 | |
|
|
6391 | cat >>confdefs.h <<_ACEOF |
|
|
6392 | #define pid_t int |
|
|
6393 | _ACEOF |
|
|
6394 | |
|
|
6395 | fi |
|
|
6396 | |
|
|
6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
6398 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
|
|
6399 | if test "${ac_cv_type_uid_t+set}" = set; then : |
|
|
6400 | $as_echo_n "(cached) " >&6 |
|
|
6401 | else |
|
|
6402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6403 | /* end confdefs.h. */ |
|
|
6404 | #include <sys/types.h> |
|
|
6405 | |
|
|
6406 | _ACEOF |
|
|
6407 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6408 | $EGREP "uid_t" >/dev/null 2>&1; then : |
|
|
6409 | ac_cv_type_uid_t=yes |
|
|
6410 | else |
|
|
6411 | ac_cv_type_uid_t=no |
|
|
6412 | fi |
|
|
6413 | rm -f conftest* |
|
|
6414 | |
|
|
6415 | fi |
|
|
6416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
6417 | $as_echo "$ac_cv_type_uid_t" >&6; } |
|
|
6418 | if test $ac_cv_type_uid_t = no; then |
|
|
6419 | |
|
|
6420 | $as_echo "#define uid_t int" >>confdefs.h |
|
|
6421 | |
|
|
6422 | |
|
|
6423 | $as_echo "#define gid_t int" >>confdefs.h |
|
|
6424 | |
|
|
6425 | fi |
|
|
6426 | |
|
|
6427 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
6428 | case $ac_cv_c_int16_t in #( |
|
|
6429 | no|yes) ;; #( |
|
|
6430 | *) |
|
|
6431 | |
|
|
6432 | cat >>confdefs.h <<_ACEOF |
|
|
6433 | #define int16_t $ac_cv_c_int16_t |
|
|
6434 | _ACEOF |
|
|
6435 | ;; |
|
|
6436 | esac |
|
|
6437 | |
|
|
6438 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
6439 | case $ac_cv_c_uint16_t in #( |
|
|
6440 | no|yes) ;; #( |
|
|
6441 | *) |
|
|
6442 | |
|
|
6443 | |
|
|
6444 | cat >>confdefs.h <<_ACEOF |
|
|
6445 | #define uint16_t $ac_cv_c_uint16_t |
|
|
6446 | _ACEOF |
|
|
6447 | ;; |
|
|
6448 | esac |
|
|
6449 | |
|
|
6450 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
6451 | case $ac_cv_c_int32_t in #( |
|
|
6452 | no|yes) ;; #( |
|
|
6453 | *) |
|
|
6454 | |
|
|
6455 | cat >>confdefs.h <<_ACEOF |
|
|
6456 | #define int32_t $ac_cv_c_int32_t |
|
|
6457 | _ACEOF |
|
|
6458 | ;; |
|
|
6459 | esac |
|
|
6460 | |
|
|
6461 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
6462 | case $ac_cv_c_uint32_t in #( |
|
|
6463 | no|yes) ;; #( |
|
|
6464 | *) |
|
|
6465 | |
|
|
6466 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
|
|
6467 | |
|
|
6468 | |
|
|
6469 | cat >>confdefs.h <<_ACEOF |
|
|
6470 | #define uint32_t $ac_cv_c_uint32_t |
|
|
6471 | _ACEOF |
|
|
6472 | ;; |
|
|
6473 | esac |
|
|
6474 | |
|
|
6475 | |
|
|
6476 | for ac_func in unsetenv |
|
|
6477 | do : |
|
|
6478 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
6479 | if test "x$ac_cv_func_unsetenv" = x""yes; then : |
|
|
6480 | cat >>confdefs.h <<_ACEOF |
|
|
6481 | #define HAVE_UNSETENV 1 |
|
|
6482 | _ACEOF |
|
|
6483 | |
|
|
6484 | fi |
|
|
6485 | done |
|
|
6486 | |
|
|
6487 | |
|
|
6488 | |
|
|
6489 | support_utmp=yes |
|
|
6490 | support_wtmp=yes |
|
|
6491 | support_lastlog=yes |
|
|
6492 | |
|
|
6493 | # Check whether --enable-utmp was given. |
|
|
6494 | if test "${enable_utmp+set}" = set; then : |
|
|
6495 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6496 | support_utmp=$enableval |
|
|
6497 | fi |
|
|
6498 | fi |
|
|
6499 | |
|
|
6500 | |
|
|
6501 | # Check whether --enable-wtmp was given. |
|
|
6502 | if test "${enable_wtmp+set}" = set; then : |
|
|
6503 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6504 | support_wtmp=$enableval |
|
|
6505 | fi |
|
|
6506 | fi |
|
|
6507 | |
|
|
6508 | |
|
|
6509 | # Check whether --enable-lastlog was given. |
|
|
6510 | if test "${enable_lastlog+set}" = set; then : |
|
|
6511 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6512 | support_lastlog=$enableval |
|
|
6513 | fi |
|
|
6514 | fi |
|
|
6515 | |
|
|
6516 | |
6361 | if test x$support_startup_notification = xyes; then |
6517 | if test x$support_utmp = xyes; then |
6362 | support_startup_notification=no |
6518 | |
|
|
6519 | $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
6520 | |
|
|
6521 | fi |
|
|
6522 | if test x$support_wtmp = xyes; then |
|
|
6523 | |
|
|
6524 | $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
6525 | |
|
|
6526 | fi |
|
|
6527 | if test x$support_lastlog = xyes; then |
|
|
6528 | |
|
|
6529 | $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
6530 | |
|
|
6531 | fi |
|
|
6532 | |
|
|
6533 | for ac_func in \ |
|
|
6534 | updwtmp \ |
|
|
6535 | updwtmpx \ |
|
|
6536 | updlastlogx \ |
|
|
6537 | |
|
|
6538 | do : |
|
|
6539 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6540 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
6541 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
6542 | cat >>confdefs.h <<_ACEOF |
|
|
6543 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6544 | _ACEOF |
|
|
6545 | |
|
|
6546 | fi |
|
|
6547 | done |
|
|
6548 | |
|
|
6549 | |
|
|
6550 | for ac_header in lastlog.h |
|
|
6551 | do : |
|
|
6552 | ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
6553 | if test "x$ac_cv_header_lastlog_h" = x""yes; then : |
|
|
6554 | cat >>confdefs.h <<_ACEOF |
|
|
6555 | #define HAVE_LASTLOG_H 1 |
|
|
6556 | _ACEOF |
|
|
6557 | |
|
|
6558 | fi |
|
|
6559 | |
|
|
6560 | done |
|
|
6561 | |
|
|
6562 | |
|
|
6563 | case $host in |
|
|
6564 | *-*-solaris*) |
|
|
6565 | |
|
|
6566 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
|
|
6567 | |
|
|
6568 | ;; |
|
|
6569 | esac |
|
|
6570 | |
|
|
6571 | |
|
|
6572 | for ac_header in utmp.h |
|
|
6573 | do : |
|
|
6574 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
|
|
6575 | if test "x$ac_cv_header_utmp_h" = x""yes; then : |
|
|
6576 | cat >>confdefs.h <<_ACEOF |
|
|
6577 | #define HAVE_UTMP_H 1 |
|
|
6578 | _ACEOF |
|
|
6579 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
6580 | #include <sys/types.h> |
|
|
6581 | #include <utmp.h> |
|
|
6582 | |
|
|
6583 | " |
|
|
6584 | if test "x$ac_cv_type_struct_utmp" = x""yes; then : |
|
|
6585 | |
|
|
6586 | cat >>confdefs.h <<_ACEOF |
|
|
6587 | #define HAVE_STRUCT_UTMP 1 |
|
|
6588 | _ACEOF |
|
|
6589 | |
|
|
6590 | |
|
|
6591 | fi |
|
|
6592 | |
|
|
6593 | |
|
|
6594 | |
|
|
6595 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
6596 | # ------------------------------------------------------ |
|
|
6597 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
6598 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
6599 | ac_fn_cxx_check_member () |
|
|
6600 | { |
|
|
6601 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
6602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
6603 | $as_echo_n "checking for $2.$3... " >&6; } |
|
|
6604 | if eval "test \"\${$4+set}\"" = set; then : |
|
|
6605 | $as_echo_n "(cached) " >&6 |
|
|
6606 | else |
|
|
6607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6608 | /* end confdefs.h. */ |
|
|
6609 | $5 |
|
|
6610 | int |
|
|
6611 | main () |
|
|
6612 | { |
|
|
6613 | static $2 ac_aggr; |
|
|
6614 | if (ac_aggr.$3) |
|
|
6615 | return 0; |
|
|
6616 | ; |
|
|
6617 | return 0; |
|
|
6618 | } |
|
|
6619 | _ACEOF |
|
|
6620 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6621 | eval "$4=yes" |
|
|
6622 | else |
|
|
6623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6624 | /* end confdefs.h. */ |
|
|
6625 | $5 |
|
|
6626 | int |
|
|
6627 | main () |
|
|
6628 | { |
|
|
6629 | static $2 ac_aggr; |
|
|
6630 | if (sizeof ac_aggr.$3) |
|
|
6631 | return 0; |
|
|
6632 | ; |
|
|
6633 | return 0; |
|
|
6634 | } |
|
|
6635 | _ACEOF |
|
|
6636 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6637 | eval "$4=yes" |
|
|
6638 | else |
|
|
6639 | eval "$4=no" |
|
|
6640 | fi |
|
|
6641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6642 | fi |
|
|
6643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6644 | fi |
|
|
6645 | eval ac_res=\$$4 |
|
|
6646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
6647 | $as_echo "$ac_res" >&6; } |
|
|
6648 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
6649 | |
|
|
6650 | } # ac_fn_cxx_check_member |
|
|
6651 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
6652 | #include <sys/types.h> |
|
|
6653 | #include <utmp.h> |
|
|
6654 | |
|
|
6655 | " |
|
|
6656 | if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then : |
|
|
6657 | |
|
|
6658 | $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
6659 | |
|
|
6660 | fi |
|
|
6661 | |
|
|
6662 | |
|
|
6663 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
6664 | #include <sys/types.h> |
|
|
6665 | #include <utmp.h> |
|
|
6666 | |
|
|
6667 | " |
|
|
6668 | if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then : |
|
|
6669 | |
|
|
6670 | $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
6671 | |
|
|
6672 | fi |
|
|
6673 | |
|
|
6674 | |
|
|
6675 | fi |
|
|
6676 | |
|
|
6677 | done |
|
|
6678 | |
|
|
6679 | |
|
|
6680 | for ac_header in utmpx.h |
|
|
6681 | do : |
|
|
6682 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
6683 | if test "x$ac_cv_header_utmpx_h" = x""yes; then : |
|
|
6684 | cat >>confdefs.h <<_ACEOF |
|
|
6685 | #define HAVE_UTMPX_H 1 |
|
|
6686 | _ACEOF |
|
|
6687 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
6688 | #include <sys/types.h> |
|
|
6689 | #include <utmpx.h> |
|
|
6690 | |
|
|
6691 | " |
|
|
6692 | if test "x$ac_cv_type_struct_utmpx" = x""yes; then : |
|
|
6693 | |
|
|
6694 | cat >>confdefs.h <<_ACEOF |
|
|
6695 | #define HAVE_STRUCT_UTMPX 1 |
|
|
6696 | _ACEOF |
|
|
6697 | |
|
|
6698 | |
|
|
6699 | fi |
|
|
6700 | |
|
|
6701 | |
|
|
6702 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
6703 | #include <sys/types.h> |
|
|
6704 | #include <utmpx.h> |
|
|
6705 | |
|
|
6706 | " |
|
|
6707 | if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then : |
|
|
6708 | |
|
|
6709 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
6710 | |
|
|
6711 | fi |
|
|
6712 | |
|
|
6713 | |
|
|
6714 | fi |
|
|
6715 | |
|
|
6716 | done |
|
|
6717 | |
|
|
6718 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
6719 | #include <sys/types.h> |
|
|
6720 | #include <utmp.h> |
|
|
6721 | #ifdef HAVE_LASTLOG_H |
|
|
6722 | #include <lastlog.h> |
|
|
6723 | #endif |
|
|
6724 | |
|
|
6725 | " |
|
|
6726 | if test "x$ac_cv_type_struct_lastlog" = x""yes; then : |
|
|
6727 | |
|
|
6728 | cat >>confdefs.h <<_ACEOF |
|
|
6729 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
6730 | _ACEOF |
|
|
6731 | |
|
|
6732 | |
|
|
6733 | fi |
|
|
6734 | |
|
|
6735 | |
|
|
6736 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
6737 | #include <sys/types.h> |
|
|
6738 | #include <utmpx.h> |
|
|
6739 | #ifdef HAVE_LASTLOG_H |
|
|
6740 | #include <lastlog.h> |
|
|
6741 | #endif |
|
|
6742 | |
|
|
6743 | " |
|
|
6744 | if test "x$ac_cv_type_struct_lastlogx" = x""yes; then : |
|
|
6745 | |
|
|
6746 | cat >>confdefs.h <<_ACEOF |
|
|
6747 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
6748 | _ACEOF |
|
|
6749 | |
|
|
6750 | |
|
|
6751 | fi |
|
|
6752 | |
|
|
6753 | |
|
|
6754 | |
|
|
6755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5 |
|
|
6756 | $as_echo_n "checking for a fallback location of utmp... " >&6; } |
|
|
6757 | if test "${pt_cv_path_utmp+set}" = set; then : |
|
|
6758 | $as_echo_n "(cached) " >&6 |
|
|
6759 | else |
|
|
6760 | |
|
|
6761 | if test "$cross_compiling" != yes; then |
|
|
6762 | for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do |
|
|
6763 | if test -f "$file"; then |
|
|
6764 | pt_cv_path_utmp=$file |
|
|
6765 | break |
|
|
6766 | fi |
|
|
6767 | done |
|
|
6768 | fi |
|
|
6769 | fi |
|
|
6770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
6771 | $as_echo "$pt_cv_path_utmp" >&6; } |
|
|
6772 | if test x$pt_cv_path_utmp != x; then |
|
|
6773 | |
|
|
6774 | cat >>confdefs.h <<_ACEOF |
|
|
6775 | #define PT_UTMP_FILE "$pt_cv_path_utmp" |
|
|
6776 | _ACEOF |
|
|
6777 | |
|
|
6778 | elif test "$cross_compiling" = yes; then |
|
|
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5 |
|
|
6780 | $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;} |
|
|
6781 | fi |
|
|
6782 | |
|
|
6783 | |
|
|
6784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5 |
|
|
6785 | $as_echo_n "checking for a fallback location of wtmp... " >&6; } |
|
|
6786 | if test "${pt_cv_path_wtmp+set}" = set; then : |
|
|
6787 | $as_echo_n "(cached) " >&6 |
|
|
6788 | else |
|
|
6789 | |
|
|
6790 | if test "$cross_compiling" != yes; then |
|
|
6791 | for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do |
|
|
6792 | if test -f "$file"; then |
|
|
6793 | pt_cv_path_wtmp=$file |
|
|
6794 | break |
|
|
6795 | fi |
|
|
6796 | done |
|
|
6797 | fi |
|
|
6798 | fi |
|
|
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
6800 | $as_echo "$pt_cv_path_wtmp" >&6; } |
|
|
6801 | if test x$pt_cv_path_wtmp != x; then |
|
|
6802 | |
|
|
6803 | cat >>confdefs.h <<_ACEOF |
|
|
6804 | #define PT_WTMP_FILE "$pt_cv_path_wtmp" |
|
|
6805 | _ACEOF |
|
|
6806 | |
|
|
6807 | elif test "$cross_compiling" = yes; then |
|
|
6808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5 |
|
|
6809 | $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;} |
|
|
6810 | fi |
|
|
6811 | |
|
|
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5 |
|
|
6813 | $as_echo_n "checking for a fallback location of wtmpx... " >&6; } |
|
|
6814 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
|
|
6815 | $as_echo_n "(cached) " >&6 |
|
|
6816 | else |
|
|
6817 | |
|
|
6818 | if test "$cross_compiling" != yes; then |
|
|
6819 | for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do |
|
|
6820 | if test -f "$file"; then |
|
|
6821 | pt_cv_path_wtmpx=$file |
|
|
6822 | break |
|
|
6823 | fi |
|
|
6824 | done |
|
|
6825 | fi |
|
|
6826 | fi |
|
|
6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
6828 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
|
|
6829 | if test x$pt_cv_path_wtmpx != x; then |
|
|
6830 | |
|
|
6831 | cat >>confdefs.h <<_ACEOF |
|
|
6832 | #define PT_WTMPX_FILE "$pt_cv_path_wtmpx" |
|
|
6833 | _ACEOF |
|
|
6834 | |
|
|
6835 | elif test "$cross_compiling" = yes; then |
|
|
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5 |
|
|
6837 | $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;} |
|
|
6838 | fi |
|
|
6839 | |
|
|
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5 |
|
|
6841 | $as_echo_n "checking for a fallback location of lastlog... " >&6; } |
|
|
6842 | if test "${pt_cv_path_lastlog+set}" = set; then : |
|
|
6843 | $as_echo_n "(cached) " >&6 |
|
|
6844 | else |
|
|
6845 | |
|
|
6846 | if test "$cross_compiling" != yes; then |
|
|
6847 | for file in "/var/log/lastlog" "/var/adm/lastlog"; do |
|
|
6848 | if test -f "$file"; then |
|
|
6849 | pt_cv_path_lastlog=$file |
|
|
6850 | break |
|
|
6851 | fi |
|
|
6852 | done |
|
|
6853 | fi |
|
|
6854 | fi |
|
|
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
6856 | $as_echo "$pt_cv_path_lastlog" >&6; } |
|
|
6857 | if test x$pt_cv_path_lastlog != x; then |
|
|
6858 | |
|
|
6859 | cat >>confdefs.h <<_ACEOF |
|
|
6860 | #define PT_LASTLOG_FILE "$pt_cv_path_lastlog" |
|
|
6861 | _ACEOF |
|
|
6862 | |
|
|
6863 | elif test "$cross_compiling" = yes; then |
|
|
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5 |
|
|
6865 | $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;} |
|
|
6866 | fi |
|
|
6867 | |
|
|
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5 |
|
|
6869 | $as_echo_n "checking for a fallback location of lastlogx... " >&6; } |
|
|
6870 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
|
|
6871 | $as_echo_n "(cached) " >&6 |
|
|
6872 | else |
|
|
6873 | |
|
|
6874 | if test "$cross_compiling" != yes; then |
|
|
6875 | for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do |
|
|
6876 | if test -f "$file"; then |
|
|
6877 | pt_cv_path_lastlogx=$file |
|
|
6878 | break |
|
|
6879 | fi |
|
|
6880 | done |
|
|
6881 | fi |
|
|
6882 | fi |
|
|
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
6884 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
|
|
6885 | if test x$pt_cv_path_lastlogx != x; then |
|
|
6886 | |
|
|
6887 | cat >>confdefs.h <<_ACEOF |
|
|
6888 | #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx" |
|
|
6889 | _ACEOF |
|
|
6890 | |
|
|
6891 | elif test "$cross_compiling" = yes; then |
|
|
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5 |
|
|
6893 | $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;} |
|
|
6894 | fi |
|
|
6895 | |
|
|
6896 | |
|
|
6897 | |
|
|
6898 | |
|
|
6899 | save_LIBS=$LIBS |
|
|
6900 | save_CFLAGS=$CFLAGS |
|
|
6901 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
6902 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
6903 | if test x$support_xim = xyes; then |
|
|
6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
6905 | $as_echo_n "checking for working Xlocale... " >&6; } |
|
|
6906 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
|
|
6907 | $as_echo_n "(cached) " >&6 |
|
|
6908 | else |
|
|
6909 | if test "$cross_compiling" = yes; then : |
|
|
6910 | : |
|
|
6911 | else |
|
|
6912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6913 | /* end confdefs.h. */ |
|
|
6914 | |
|
|
6915 | #include <X11/Xlib.h> |
|
|
6916 | #include <stdlib.h> |
|
|
6917 | int main() { |
|
|
6918 | char *p; |
|
|
6919 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
6920 | exit (XSupportsLocale() ? 0 : 1); |
|
|
6921 | else |
|
|
6922 | exit (1); |
|
|
6923 | } |
|
|
6924 | |
|
|
6925 | _ACEOF |
|
|
6926 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6927 | rxvt_cv_func_xlocale=yes |
|
|
6928 | else |
|
|
6929 | rxvt_cv_func_xlocale=no |
|
|
6930 | fi |
|
|
6931 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
6932 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
6933 | fi |
|
|
6934 | |
|
|
6935 | fi |
|
|
6936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
6937 | $as_echo "$rxvt_cv_func_xlocale" >&6; } |
|
|
6938 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
6939 | |
|
|
6940 | $as_echo "#define USE_XIM 1" >>confdefs.h |
|
|
6941 | |
|
|
6942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
6943 | $as_echo_n "checking for broken XIM callback... " >&6; } |
|
|
6944 | if test "${rxvt_cv_broken_ximcb+set}" = set; then : |
|
|
6945 | $as_echo_n "(cached) " >&6 |
|
|
6946 | else |
|
|
6947 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6948 | /* end confdefs.h. */ |
|
|
6949 | |
|
|
6950 | #include <X11/Xlib.h> |
|
|
6951 | |
|
|
6952 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
6953 | |
|
|
6954 | void f() { |
|
|
6955 | XIMCallback cb; |
|
|
6956 | cb.callback = im_destroy_cb; |
|
|
6957 | } |
|
|
6958 | |
|
|
6959 | _ACEOF |
|
|
6960 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6961 | rxvt_cv_broken_ximcb=yes |
|
|
6962 | else |
|
|
6963 | rxvt_cv_broken_ximcb=no |
|
|
6964 | fi |
|
|
6965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6966 | fi |
|
|
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
6968 | $as_echo "$rxvt_cv_broken_ximcb" >&6; } |
|
|
6969 | |
|
|
6970 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
6971 | |
|
|
6972 | $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
6973 | |
|
|
6974 | fi |
|
|
6975 | fi |
|
|
6976 | fi |
|
|
6977 | |
|
|
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
6979 | $as_echo_n "checking for working X setlocale... " >&6; } |
|
|
6980 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then : |
|
|
6981 | $as_echo_n "(cached) " >&6 |
|
|
6982 | else |
|
|
6983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6984 | /* end confdefs.h. */ |
|
|
6985 | #define X_LOCALE 1 |
|
|
6986 | #include <X11/Xlocale.h> |
|
|
6987 | int |
|
|
6988 | main () |
|
|
6989 | { |
|
|
6990 | setlocale(LC_CTYPE, ""); |
|
|
6991 | ; |
|
|
6992 | return 0; |
|
|
6993 | } |
|
|
6994 | _ACEOF |
|
|
6995 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
6996 | rxvt_cv_func_xsetlocale=yes |
|
|
6997 | else |
|
|
6998 | rxvt_cv_func_xsetlocale=no |
|
|
6999 | fi |
|
|
7000 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7001 | conftest$ac_exeext conftest.$ac_ext |
|
|
7002 | fi |
|
|
7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7004 | $as_echo "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7005 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7006 | |
|
|
7007 | $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7008 | |
|
|
7009 | fi |
|
|
7010 | LIBS=$save_LIBS |
|
|
7011 | CFLAGS=$save_CFLAGS |
|
|
7012 | |
|
|
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7014 | $as_echo_n "checking for working nl_langinfo... " >&6; } |
|
|
7015 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then : |
|
|
7016 | $as_echo_n "(cached) " >&6 |
|
|
7017 | else |
|
|
7018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7019 | /* end confdefs.h. */ |
|
|
7020 | #include <langinfo.h> |
|
|
7021 | int |
|
|
7022 | main () |
|
|
7023 | { |
|
|
7024 | nl_langinfo(CODESET); |
|
|
7025 | ; |
|
|
7026 | return 0; |
|
|
7027 | } |
|
|
7028 | _ACEOF |
|
|
7029 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7030 | rxvt_cv_func_nl_langinfo=yes |
|
|
7031 | else |
|
|
7032 | rxvt_cv_func_nl_langinfo=no |
|
|
7033 | fi |
|
|
7034 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7035 | conftest$ac_exeext conftest.$ac_ext |
|
|
7036 | fi |
|
|
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7038 | $as_echo "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7039 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7040 | |
|
|
7041 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7042 | |
|
|
7043 | fi |
|
|
7044 | |
|
|
7045 | |
|
|
7046 | case $host in |
|
|
7047 | *-*-solaris*) |
|
|
7048 | |
|
|
7049 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
|
|
7050 | |
|
|
7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 |
|
|
7052 | $as_echo_n "checking for library containing sendmsg... " >&6; } |
|
|
7053 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7054 | $as_echo_n "(cached) " >&6 |
|
|
7055 | else |
|
|
7056 | ac_func_search_save_LIBS=$LIBS |
|
|
7057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7058 | /* end confdefs.h. */ |
|
|
7059 | |
|
|
7060 | /* Override any GCC internal prototype to avoid an error. |
|
|
7061 | Use char because int might match the return type of a GCC |
|
|
7062 | builtin and then its argument prototype would still apply. */ |
|
|
7063 | #ifdef __cplusplus |
|
|
7064 | extern "C" |
|
|
7065 | #endif |
|
|
7066 | char sendmsg (); |
|
|
7067 | int |
|
|
7068 | main () |
|
|
7069 | { |
|
|
7070 | return sendmsg (); |
|
|
7071 | ; |
|
|
7072 | return 0; |
|
|
7073 | } |
|
|
7074 | _ACEOF |
|
|
7075 | for ac_lib in '' socket; do |
|
|
7076 | if test -z "$ac_lib"; then |
|
|
7077 | ac_res="none required" |
|
|
7078 | else |
|
|
7079 | ac_res=-l$ac_lib |
|
|
7080 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7081 | fi |
|
|
7082 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7083 | ac_cv_search_sendmsg=$ac_res |
|
|
7084 | fi |
|
|
7085 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7086 | conftest$ac_exeext |
|
|
7087 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7088 | break |
|
|
7089 | fi |
|
|
7090 | done |
|
|
7091 | if test "${ac_cv_search_sendmsg+set}" = set; then : |
|
|
7092 | |
|
|
7093 | else |
|
|
7094 | ac_cv_search_sendmsg=no |
|
|
7095 | fi |
|
|
7096 | rm conftest.$ac_ext |
|
|
7097 | LIBS=$ac_func_search_save_LIBS |
|
|
7098 | fi |
|
|
7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 |
|
|
7100 | $as_echo "$ac_cv_search_sendmsg" >&6; } |
|
|
7101 | ac_res=$ac_cv_search_sendmsg |
|
|
7102 | if test "$ac_res" != no; then : |
|
|
7103 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7104 | |
|
|
7105 | fi |
|
|
7106 | |
|
|
7107 | ;; |
|
|
7108 | esac |
|
|
7109 | |
|
|
7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
7111 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
7112 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
|
|
7113 | $as_echo_n "(cached) " >&6 |
|
|
7114 | else |
|
|
7115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7116 | /* end confdefs.h. */ |
|
|
7117 | |
|
|
7118 | #include <stddef.h> // broken bsds (is that redundant?) need this |
|
|
7119 | #include <sys/types.h> |
|
|
7120 | #include <sys/socket.h> |
|
|
7121 | #include <sys/uio.h> |
|
|
7122 | |
|
|
7123 | int |
|
|
7124 | main () |
|
|
7125 | { |
|
|
7126 | |
|
|
7127 | { |
|
|
7128 | msghdr msg; |
|
|
7129 | iovec iov; |
|
|
7130 | char buf [100]; |
|
|
7131 | char data = 0; |
|
|
7132 | |
|
|
7133 | iov.iov_base = &data; |
|
|
7134 | iov.iov_len = 1; |
|
|
7135 | |
|
|
7136 | msg.msg_iov = &iov; |
|
|
7137 | msg.msg_iovlen = 1; |
|
|
7138 | msg.msg_control = buf; |
|
|
7139 | msg.msg_controllen = sizeof buf; |
|
|
7140 | |
|
|
7141 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
7142 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
7143 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
7144 | cmsg->cmsg_len = 100; |
|
|
7145 | |
|
|
7146 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
7147 | |
|
|
7148 | return sendmsg (3, &msg, 0); |
|
|
7149 | } |
|
|
7150 | |
|
|
7151 | ; |
|
|
7152 | return 0; |
|
|
7153 | } |
|
|
7154 | _ACEOF |
|
|
7155 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7156 | pt_cv_can_pass_fds=yes |
|
|
7157 | else |
|
|
7158 | pt_cv_can_pass_fds=no |
|
|
7159 | fi |
|
|
7160 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7161 | conftest$ac_exeext conftest.$ac_ext |
|
|
7162 | fi |
|
|
7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
7164 | $as_echo "$pt_cv_can_pass_fds" >&6; } |
|
|
7165 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
7166 | |
|
|
7167 | $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
7168 | |
|
|
7169 | else |
|
|
7170 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
7171 | fi |
|
|
7172 | |
|
|
7173 | |
|
|
7174 | |
|
|
7175 | for ac_header in \ |
|
|
7176 | pty.h \ |
|
|
7177 | util.h \ |
|
|
7178 | libutil.h \ |
|
|
7179 | sys/ioctl.h \ |
|
|
7180 | stropts.h \ |
|
|
7181 | |
|
|
7182 | do : |
|
|
7183 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7184 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
7185 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
7186 | cat >>confdefs.h <<_ACEOF |
|
|
7187 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7188 | _ACEOF |
|
|
7189 | |
|
|
7190 | fi |
|
|
7191 | |
|
|
7192 | done |
|
|
7193 | |
|
|
7194 | |
|
|
7195 | for ac_func in \ |
|
|
7196 | revoke \ |
|
|
7197 | _getpty \ |
|
|
7198 | getpt \ |
|
|
7199 | posix_openpt \ |
|
|
7200 | isastream \ |
|
|
7201 | setuid \ |
|
|
7202 | seteuid \ |
|
|
7203 | setreuid \ |
|
|
7204 | setresuid \ |
|
|
7205 | |
|
|
7206 | do : |
|
|
7207 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7208 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7209 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
7210 | cat >>confdefs.h <<_ACEOF |
|
|
7211 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7212 | _ACEOF |
|
|
7213 | |
|
|
7214 | fi |
|
|
7215 | done |
|
|
7216 | |
|
|
7217 | |
|
|
7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
7219 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
|
|
7220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7221 | /* end confdefs.h. */ |
|
|
7222 | #include <stdlib.h> |
|
|
7223 | int |
|
|
7224 | main () |
|
|
7225 | { |
|
|
7226 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
7227 | ; |
|
|
7228 | return 0; |
|
|
7229 | } |
|
|
7230 | _ACEOF |
|
|
7231 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7232 | unix98_pty=yes |
|
|
7233 | |
|
|
7234 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
|
|
7235 | |
|
|
7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7237 | $as_echo "yes" >&6; } |
|
|
7238 | else |
|
|
7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7240 | $as_echo "no" >&6; } |
|
|
7241 | fi |
|
|
7242 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7243 | conftest$ac_exeext conftest.$ac_ext |
|
|
7244 | |
|
|
7245 | if test -z "$unix98_pty"; then |
|
|
7246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
7247 | $as_echo_n "checking for library containing openpty... " >&6; } |
|
|
7248 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7249 | $as_echo_n "(cached) " >&6 |
|
|
7250 | else |
|
|
7251 | ac_func_search_save_LIBS=$LIBS |
|
|
7252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7253 | /* end confdefs.h. */ |
|
|
7254 | |
|
|
7255 | /* Override any GCC internal prototype to avoid an error. |
|
|
7256 | Use char because int might match the return type of a GCC |
|
|
7257 | builtin and then its argument prototype would still apply. */ |
|
|
7258 | #ifdef __cplusplus |
|
|
7259 | extern "C" |
|
|
7260 | #endif |
|
|
7261 | char openpty (); |
|
|
7262 | int |
|
|
7263 | main () |
|
|
7264 | { |
|
|
7265 | return openpty (); |
|
|
7266 | ; |
|
|
7267 | return 0; |
|
|
7268 | } |
|
|
7269 | _ACEOF |
|
|
7270 | for ac_lib in '' util; do |
|
|
7271 | if test -z "$ac_lib"; then |
|
|
7272 | ac_res="none required" |
|
|
7273 | else |
|
|
7274 | ac_res=-l$ac_lib |
|
|
7275 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7276 | fi |
|
|
7277 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7278 | ac_cv_search_openpty=$ac_res |
|
|
7279 | fi |
|
|
7280 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7281 | conftest$ac_exeext |
|
|
7282 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7283 | break |
|
|
7284 | fi |
|
|
7285 | done |
|
|
7286 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7287 | |
|
|
7288 | else |
|
|
7289 | ac_cv_search_openpty=no |
|
|
7290 | fi |
|
|
7291 | rm conftest.$ac_ext |
|
|
7292 | LIBS=$ac_func_search_save_LIBS |
|
|
7293 | fi |
|
|
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
7295 | $as_echo "$ac_cv_search_openpty" >&6; } |
|
|
7296 | ac_res=$ac_cv_search_openpty |
|
|
7297 | if test "$ac_res" != no; then : |
|
|
7298 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7299 | |
|
|
7300 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
7301 | |
|
|
7302 | fi |
|
|
7303 | |
|
|
7304 | fi |
|
|
7305 | |
|
|
7306 | |
|
|
7307 | |
|
|
7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
7309 | $as_echo_n "checking for tty group... " >&6; } |
|
|
7310 | if test "${pt_cv_tty_group+set}" = set; then : |
|
|
7311 | $as_echo_n "(cached) " >&6 |
|
|
7312 | else |
|
|
7313 | if test "$cross_compiling" = yes; then : |
|
|
7314 | pt_cv_tty_group=no |
|
|
7315 | else |
|
|
7316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7317 | /* end confdefs.h. */ |
|
|
7318 | |
|
|
7319 | #include <sys/types.h> |
|
|
7320 | #include <sys/stat.h> |
|
|
7321 | #include <unistd.h> |
|
|
7322 | #include <grp.h> |
|
|
7323 | |
|
|
7324 | int main() |
|
|
7325 | { |
|
|
7326 | struct stat st; |
|
|
7327 | struct group *gr; |
|
|
7328 | char *tty; |
|
|
7329 | gr = getgrnam("tty"); |
|
|
7330 | tty = ttyname(0); |
|
|
7331 | if (gr != 0 |
|
|
7332 | && tty != 0 |
|
|
7333 | && (stat(tty, &st)) == 0 |
|
|
7334 | && st.st_gid == gr->gr_gid) |
|
|
7335 | return 0; |
|
|
7336 | else |
|
|
7337 | return 1; |
|
|
7338 | } |
|
|
7339 | _ACEOF |
|
|
7340 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7341 | pt_cv_tty_group=yes |
|
|
7342 | else |
|
|
7343 | pt_cv_tty_group=no |
|
|
7344 | fi |
|
|
7345 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7346 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7347 | fi |
|
|
7348 | |
|
|
7349 | fi |
|
|
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
7351 | $as_echo "$pt_cv_tty_group" >&6; } |
|
|
7352 | if test x$pt_cv_tty_group = xyes; then |
|
|
7353 | |
|
|
7354 | $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
7355 | |
|
|
7356 | fi |
|
|
7357 | |
|
|
7358 | support_image=no |
|
|
7359 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
|
|
7360 | support_image=yes |
|
|
7361 | fi |
|
|
7362 | if test x$support_xft = xyes || test x$support_image = xyes; then |
|
|
7363 | rxvt_have_xrender=no |
6363 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7364 | # Extract the first word of "pkg-config", so it can be a program name with args. |
6364 | set dummy pkg-config; ac_word=$2 |
7365 | set dummy pkg-config; ac_word=$2 |
6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6366 | $as_echo_n "checking for $ac_word... " >&6; } |
7367 | $as_echo_n "checking for $ac_word... " >&6; } |
6367 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7368 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
6399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6400 | $as_echo "no" >&6; } |
7401 | $as_echo "no" >&6; } |
6401 | fi |
7402 | fi |
6402 | |
7403 | |
6403 | |
7404 | |
6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5 |
|
|
6405 | $as_echo_n "checking for libstartup-notification... " >&6; } |
|
|
6406 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
7405 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
6407 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
7406 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
6408 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
7407 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
6409 | support_startup_notification=yes |
7408 | rxvt_have_xrender=yes |
6410 | fi |
|
|
6411 | |
7409 | |
6412 | if test x$support_startup_notification = xyes; then |
7410 | save_LIBS="$LIBS" |
6413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7411 | LIBS="$LIBS $X_LIBS" |
6414 | $as_echo "ok" >&6; } |
|
|
6415 | |
|
|
6416 | $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h |
|
|
6417 | |
|
|
6418 | else |
|
|
6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6420 | $as_echo "no" >&6; } |
|
|
6421 | fi |
|
|
6422 | fi |
|
|
6423 | |
|
|
6424 | |
|
|
6425 | |
|
|
6426 | |
|
|
6427 | AFTERIMAGE_CFLAGS= |
|
|
6428 | AFTERIMAGE_LIBS= |
|
|
6429 | AFTERIMAGE_VERSION= |
|
|
6430 | |
|
|
6431 | if test x$support_afterimage = xyes; then |
|
|
6432 | support_afterimage=no |
|
|
6433 | |
|
|
6434 | if test "x$afterimage_config" = "x" ; then |
|
|
6435 | # Extract the first word of "afterimage-config", so it can be a program name with args. |
|
|
6436 | set dummy afterimage-config; ac_word=$2 |
|
|
6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
6438 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
6439 | if test "${ac_cv_path_afterimage_config+set}" = set; then : |
|
|
6440 | $as_echo_n "(cached) " >&6 |
|
|
6441 | else |
|
|
6442 | case $afterimage_config in |
|
|
6443 | [\\/]* | ?:[\\/]*) |
|
|
6444 | ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. |
|
|
6445 | ;; |
|
|
6446 | *) |
|
|
6447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
6448 | for as_dir in $PATH |
|
|
6449 | do |
|
|
6450 | IFS=$as_save_IFS |
|
|
6451 | test -z "$as_dir" && as_dir=. |
|
|
6452 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
6453 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
6454 | ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" |
|
|
6455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
6456 | break 2 |
|
|
6457 | fi |
|
|
6458 | done |
|
|
6459 | done |
|
|
6460 | IFS=$as_save_IFS |
|
|
6461 | |
|
|
6462 | test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" |
|
|
6463 | ;; |
|
|
6464 | esac |
|
|
6465 | fi |
|
|
6466 | afterimage_config=$ac_cv_path_afterimage_config |
|
|
6467 | if test -n "$afterimage_config"; then |
|
|
6468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5 |
|
|
6469 | $as_echo "$afterimage_config" >&6; } |
|
|
6470 | else |
|
|
6471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6472 | $as_echo "no" >&6; } |
|
|
6473 | fi |
|
|
6474 | |
|
|
6475 | |
|
|
6476 | fi |
|
|
6477 | if test "x$afterimage_config" != "xno" ; then |
|
|
6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5 |
|
|
6479 | $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; } |
|
|
6480 | xAFTERIMAGE_VERSION=`$afterimage_config --version` |
|
|
6481 | if test -n "$xAFTERIMAGE_VERSION" ; then |
|
|
6482 | xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` |
|
|
6483 | xAFTERIMAGE_LIBS=`$afterimage_config --libs` |
|
|
6484 | if test "x$xAFTERIMAGE_LIBS" != "x"; then |
|
|
6485 | libai_ver_major=`echo $xAFTERIMAGE_VERSION | cut -f 1 -d .` |
|
|
6486 | libai_ver_minor=`echo $xAFTERIMAGE_VERSION | cut -f 2 -d .` |
|
|
6487 | if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then |
|
|
6488 | support_afterimage=yes |
|
|
6489 | AFTERIMAGE_CFLAGS="$xAFTERIMAGE_CFLAGS" |
|
|
6490 | AFTERIMAGE_LIBS="$xAFTERIMAGE_LIBS" |
|
|
6491 | AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" |
|
|
6492 | fi |
|
|
6493 | fi |
|
|
6494 | fi |
|
|
6495 | if test "x$support_afterimage" = "xyes"; then |
|
|
6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5 |
|
|
6497 | $as_echo "$AFTERIMAGE_LIBS" >&6; } |
|
|
6498 | image_lib=libafterimage |
|
|
6499 | |
|
|
6500 | $as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h |
|
|
6501 | |
|
|
6502 | |
|
|
6503 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
6504 | |
|
|
6505 | else |
|
|
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
6507 | $as_echo "no" >&6; } |
|
|
6508 | fi |
|
|
6509 | fi |
|
|
6510 | fi |
|
|
6511 | |
|
|
6512 | |
|
|
6513 | |
|
|
6514 | |
|
|
6515 | for ac_header in \ |
|
|
6516 | sys/byteorder.h \ |
|
|
6517 | sys/ioctl.h \ |
|
|
6518 | sys/sockio.h \ |
|
|
6519 | sys/strredir.h \ |
|
|
6520 | stdint.h \ |
|
|
6521 | wchar.h \ |
|
|
6522 | cwchar \ |
|
|
6523 | |
|
|
6524 | do : |
|
|
6525 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
6526 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
6527 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
6528 | cat >>confdefs.h <<_ACEOF |
|
|
6529 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
6530 | _ACEOF |
|
|
6531 | |
|
|
6532 | fi |
|
|
6533 | |
|
|
6534 | done |
|
|
6535 | |
|
|
6536 | |
|
|
6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5 |
|
|
6538 | $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; } |
|
|
6539 | if test "${rxvt_cv_xlib_illegal_access+set}" = set; then : |
|
|
6540 | $as_echo_n "(cached) " >&6 |
|
|
6541 | else |
|
|
6542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6543 | /* end confdefs.h. */ |
|
|
6544 | |
|
|
6545 | #define XLIB_ILLEGAL_ACCESS |
|
|
6546 | #include <X11/Xlib.h> |
|
|
6547 | |
|
|
6548 | int |
|
|
6549 | main () |
|
|
6550 | { |
|
|
6551 | |
|
|
6552 | Display *dpy; |
|
|
6553 | dpy->xdefaults = (char *)0; |
|
|
6554 | |
|
|
6555 | ; |
|
|
6556 | return 0; |
|
|
6557 | } |
|
|
6558 | _ACEOF |
|
|
6559 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6560 | rxvt_cv_xlib_illegal_access=yes |
|
|
6561 | else |
|
|
6562 | rxvt_cv_xlib_illegal_access=no |
|
|
6563 | |
|
|
6564 | fi |
|
|
6565 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6566 | fi |
|
|
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5 |
|
|
6568 | $as_echo "$rxvt_cv_xlib_illegal_access" >&6; } |
|
|
6569 | if test x$rxvt_cv_xlib_illegal_access = xyes; then |
|
|
6570 | |
|
|
6571 | $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h |
|
|
6572 | |
|
|
6573 | fi |
|
|
6574 | |
|
|
6575 | ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
|
|
6576 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
|
|
6577 | |
|
|
6578 | else |
|
|
6579 | |
|
|
6580 | cat >>confdefs.h <<_ACEOF |
|
|
6581 | #define mode_t int |
|
|
6582 | _ACEOF |
|
|
6583 | |
|
|
6584 | fi |
|
|
6585 | |
|
|
6586 | ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
|
|
6587 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
|
|
6588 | |
|
|
6589 | else |
|
|
6590 | |
|
|
6591 | cat >>confdefs.h <<_ACEOF |
|
|
6592 | #define pid_t int |
|
|
6593 | _ACEOF |
|
|
6594 | |
|
|
6595 | fi |
|
|
6596 | |
|
|
6597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
|
|
6598 | $as_echo_n "checking for uid_t in sys/types.h... " >&6; } |
|
|
6599 | if test "${ac_cv_type_uid_t+set}" = set; then : |
|
|
6600 | $as_echo_n "(cached) " >&6 |
|
|
6601 | else |
|
|
6602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6603 | /* end confdefs.h. */ |
|
|
6604 | #include <sys/types.h> |
|
|
6605 | |
|
|
6606 | _ACEOF |
|
|
6607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
6608 | $EGREP "uid_t" >/dev/null 2>&1; then : |
|
|
6609 | ac_cv_type_uid_t=yes |
|
|
6610 | else |
|
|
6611 | ac_cv_type_uid_t=no |
|
|
6612 | fi |
|
|
6613 | rm -f conftest* |
|
|
6614 | |
|
|
6615 | fi |
|
|
6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
|
|
6617 | $as_echo "$ac_cv_type_uid_t" >&6; } |
|
|
6618 | if test $ac_cv_type_uid_t = no; then |
|
|
6619 | |
|
|
6620 | $as_echo "#define uid_t int" >>confdefs.h |
|
|
6621 | |
|
|
6622 | |
|
|
6623 | $as_echo "#define gid_t int" >>confdefs.h |
|
|
6624 | |
|
|
6625 | fi |
|
|
6626 | |
|
|
6627 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
|
|
6628 | case $ac_cv_c_int16_t in #( |
|
|
6629 | no|yes) ;; #( |
|
|
6630 | *) |
|
|
6631 | |
|
|
6632 | cat >>confdefs.h <<_ACEOF |
|
|
6633 | #define int16_t $ac_cv_c_int16_t |
|
|
6634 | _ACEOF |
|
|
6635 | ;; |
|
|
6636 | esac |
|
|
6637 | |
|
|
6638 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
|
|
6639 | case $ac_cv_c_uint16_t in #( |
|
|
6640 | no|yes) ;; #( |
|
|
6641 | *) |
|
|
6642 | |
|
|
6643 | |
|
|
6644 | cat >>confdefs.h <<_ACEOF |
|
|
6645 | #define uint16_t $ac_cv_c_uint16_t |
|
|
6646 | _ACEOF |
|
|
6647 | ;; |
|
|
6648 | esac |
|
|
6649 | |
|
|
6650 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
|
|
6651 | case $ac_cv_c_int32_t in #( |
|
|
6652 | no|yes) ;; #( |
|
|
6653 | *) |
|
|
6654 | |
|
|
6655 | cat >>confdefs.h <<_ACEOF |
|
|
6656 | #define int32_t $ac_cv_c_int32_t |
|
|
6657 | _ACEOF |
|
|
6658 | ;; |
|
|
6659 | esac |
|
|
6660 | |
|
|
6661 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
|
|
6662 | case $ac_cv_c_uint32_t in #( |
|
|
6663 | no|yes) ;; #( |
|
|
6664 | *) |
|
|
6665 | |
|
|
6666 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
|
|
6667 | |
|
|
6668 | |
|
|
6669 | cat >>confdefs.h <<_ACEOF |
|
|
6670 | #define uint32_t $ac_cv_c_uint32_t |
|
|
6671 | _ACEOF |
|
|
6672 | ;; |
|
|
6673 | esac |
|
|
6674 | |
|
|
6675 | |
|
|
6676 | for ac_func in unsetenv |
|
|
6677 | do : |
|
|
6678 | ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
|
|
6679 | if test "x$ac_cv_func_unsetenv" = x""yes; then : |
|
|
6680 | cat >>confdefs.h <<_ACEOF |
|
|
6681 | #define HAVE_UNSETENV 1 |
|
|
6682 | _ACEOF |
|
|
6683 | |
|
|
6684 | fi |
|
|
6685 | done |
|
|
6686 | |
|
|
6687 | |
|
|
6688 | |
|
|
6689 | support_utmp=yes |
|
|
6690 | support_wtmp=yes |
|
|
6691 | support_lastlog=yes |
|
|
6692 | |
|
|
6693 | # Check whether --enable-utmp was given. |
|
|
6694 | if test "${enable_utmp+set}" = set; then : |
|
|
6695 | enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6696 | support_utmp=$enableval |
|
|
6697 | fi |
|
|
6698 | fi |
|
|
6699 | |
|
|
6700 | |
|
|
6701 | # Check whether --enable-wtmp was given. |
|
|
6702 | if test "${enable_wtmp+set}" = set; then : |
|
|
6703 | enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6704 | support_wtmp=$enableval |
|
|
6705 | fi |
|
|
6706 | fi |
|
|
6707 | |
|
|
6708 | |
|
|
6709 | # Check whether --enable-lastlog was given. |
|
|
6710 | if test "${enable_lastlog+set}" = set; then : |
|
|
6711 | enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then |
|
|
6712 | support_lastlog=$enableval |
|
|
6713 | fi |
|
|
6714 | fi |
|
|
6715 | |
|
|
6716 | |
|
|
6717 | if test x$support_utmp = xyes; then |
|
|
6718 | |
|
|
6719 | $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h |
|
|
6720 | |
|
|
6721 | fi |
|
|
6722 | if test x$support_wtmp = xyes; then |
|
|
6723 | |
|
|
6724 | $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h |
|
|
6725 | |
|
|
6726 | fi |
|
|
6727 | if test x$support_lastlog = xyes; then |
|
|
6728 | |
|
|
6729 | $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h |
|
|
6730 | |
|
|
6731 | fi |
|
|
6732 | |
|
|
6733 | for ac_func in \ |
|
|
6734 | updwtmp \ |
|
|
6735 | updwtmpx \ |
|
|
6736 | updlastlogx \ |
|
|
6737 | |
|
|
6738 | do : |
|
|
6739 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
6740 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
6741 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
6742 | cat >>confdefs.h <<_ACEOF |
|
|
6743 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
6744 | _ACEOF |
|
|
6745 | |
|
|
6746 | fi |
|
|
6747 | done |
|
|
6748 | |
|
|
6749 | |
|
|
6750 | for ac_header in lastlog.h |
|
|
6751 | do : |
|
|
6752 | ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default" |
|
|
6753 | if test "x$ac_cv_header_lastlog_h" = x""yes; then : |
|
|
6754 | cat >>confdefs.h <<_ACEOF |
|
|
6755 | #define HAVE_LASTLOG_H 1 |
|
|
6756 | _ACEOF |
|
|
6757 | |
|
|
6758 | fi |
|
|
6759 | |
|
|
6760 | done |
|
|
6761 | |
|
|
6762 | |
|
|
6763 | |
|
|
6764 | for ac_header in utmp.h |
|
|
6765 | do : |
|
|
6766 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" |
7412 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
6767 | if test "x$ac_cv_header_utmp_h" = x""yes; then : |
7413 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : |
6768 | cat >>confdefs.h <<_ACEOF |
|
|
6769 | #define HAVE_UTMP_H 1 |
|
|
6770 | _ACEOF |
|
|
6771 | ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" " |
|
|
6772 | #include <sys/types.h> |
|
|
6773 | #include <utmp.h> |
|
|
6774 | |
7414 | |
6775 | " |
|
|
6776 | if test "x$ac_cv_type_struct_utmp" = x""yes; then : |
|
|
6777 | |
|
|
6778 | cat >>confdefs.h <<_ACEOF |
|
|
6779 | #define HAVE_STRUCT_UTMP 1 |
|
|
6780 | _ACEOF |
|
|
6781 | |
|
|
6782 | |
|
|
6783 | fi |
|
|
6784 | |
|
|
6785 | |
|
|
6786 | |
|
|
6787 | # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES |
|
|
6788 | # ------------------------------------------------------ |
|
|
6789 | # Tries to find if the field MEMBER exists in type AGGR, after including |
|
|
6790 | # INCLUDES, setting cache variable VAR accordingly. |
|
|
6791 | ac_fn_cxx_check_member () |
|
|
6792 | { |
|
|
6793 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
|
|
6795 | $as_echo_n "checking for $2.$3... " >&6; } |
|
|
6796 | if eval "test \"\${$4+set}\"" = set; then : |
|
|
6797 | $as_echo_n "(cached) " >&6 |
|
|
6798 | else |
|
|
6799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6800 | /* end confdefs.h. */ |
|
|
6801 | $5 |
|
|
6802 | int |
|
|
6803 | main () |
|
|
6804 | { |
|
|
6805 | static $2 ac_aggr; |
|
|
6806 | if (ac_aggr.$3) |
|
|
6807 | return 0; |
|
|
6808 | ; |
|
|
6809 | return 0; |
|
|
6810 | } |
|
|
6811 | _ACEOF |
|
|
6812 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6813 | eval "$4=yes" |
|
|
6814 | else |
|
|
6815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6816 | /* end confdefs.h. */ |
|
|
6817 | $5 |
|
|
6818 | int |
|
|
6819 | main () |
|
|
6820 | { |
|
|
6821 | static $2 ac_aggr; |
|
|
6822 | if (sizeof ac_aggr.$3) |
|
|
6823 | return 0; |
|
|
6824 | ; |
|
|
6825 | return 0; |
|
|
6826 | } |
|
|
6827 | _ACEOF |
|
|
6828 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
6829 | eval "$4=yes" |
|
|
6830 | else |
|
|
6831 | eval "$4=no" |
|
|
6832 | fi |
|
|
6833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6834 | fi |
|
|
6835 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
6836 | fi |
|
|
6837 | eval ac_res=\$$4 |
|
|
6838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
6839 | $as_echo "$ac_res" >&6; } |
|
|
6840 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
|
6841 | |
|
|
6842 | } # ac_fn_cxx_check_member |
|
|
6843 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" " |
|
|
6844 | #include <sys/types.h> |
|
|
6845 | #include <utmp.h> |
|
|
6846 | |
|
|
6847 | " |
|
|
6848 | if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then : |
|
|
6849 | |
|
|
6850 | $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h |
|
|
6851 | |
|
|
6852 | fi |
|
|
6853 | |
|
|
6854 | |
|
|
6855 | ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" " |
|
|
6856 | #include <sys/types.h> |
|
|
6857 | #include <utmp.h> |
|
|
6858 | |
|
|
6859 | " |
|
|
6860 | if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then : |
|
|
6861 | |
|
|
6862 | $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h |
|
|
6863 | |
|
|
6864 | fi |
|
|
6865 | |
|
|
6866 | |
|
|
6867 | fi |
|
|
6868 | |
|
|
6869 | done |
|
|
6870 | |
|
|
6871 | |
|
|
6872 | for ac_header in utmpx.h |
|
|
6873 | do : |
|
|
6874 | ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default" |
|
|
6875 | if test "x$ac_cv_header_utmpx_h" = x""yes; then : |
|
|
6876 | cat >>confdefs.h <<_ACEOF |
|
|
6877 | #define HAVE_UTMPX_H 1 |
|
|
6878 | _ACEOF |
|
|
6879 | ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" " |
|
|
6880 | #include <sys/types.h> |
|
|
6881 | #include <utmpx.h> |
|
|
6882 | |
|
|
6883 | " |
|
|
6884 | if test "x$ac_cv_type_struct_utmpx" = x""yes; then : |
|
|
6885 | |
|
|
6886 | cat >>confdefs.h <<_ACEOF |
|
|
6887 | #define HAVE_STRUCT_UTMPX 1 |
|
|
6888 | _ACEOF |
|
|
6889 | |
|
|
6890 | |
|
|
6891 | fi |
|
|
6892 | |
|
|
6893 | |
|
|
6894 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" " |
|
|
6895 | #include <sys/types.h> |
|
|
6896 | #include <utmpx.h> |
|
|
6897 | |
|
|
6898 | " |
|
|
6899 | if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then : |
|
|
6900 | |
|
|
6901 | $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h |
|
|
6902 | |
|
|
6903 | fi |
|
|
6904 | |
|
|
6905 | |
|
|
6906 | ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" " |
|
|
6907 | #include <sys/types.h> |
|
|
6908 | #include <utmpx.h> |
|
|
6909 | |
|
|
6910 | " |
|
|
6911 | if test "x$ac_cv_member_struct_utmpx_ut_session" = x""yes; then : |
|
|
6912 | |
|
|
6913 | $as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h |
|
|
6914 | |
|
|
6915 | fi |
|
|
6916 | |
|
|
6917 | |
|
|
6918 | fi |
|
|
6919 | |
|
|
6920 | done |
|
|
6921 | |
|
|
6922 | ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" " |
|
|
6923 | #include <sys/types.h> |
|
|
6924 | #include <utmp.h> |
|
|
6925 | #ifdef HAVE_LASTLOG_H |
|
|
6926 | #include <lastlog.h> |
|
|
6927 | #endif |
|
|
6928 | |
|
|
6929 | " |
|
|
6930 | if test "x$ac_cv_type_struct_lastlog" = x""yes; then : |
|
|
6931 | |
|
|
6932 | cat >>confdefs.h <<_ACEOF |
|
|
6933 | #define HAVE_STRUCT_LASTLOG 1 |
|
|
6934 | _ACEOF |
|
|
6935 | |
|
|
6936 | |
|
|
6937 | fi |
|
|
6938 | |
|
|
6939 | |
|
|
6940 | ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" " |
|
|
6941 | #include <sys/types.h> |
|
|
6942 | #include <utmpx.h> |
|
|
6943 | #ifdef HAVE_LASTLOG_H |
|
|
6944 | #include <lastlog.h> |
|
|
6945 | #endif |
|
|
6946 | |
|
|
6947 | " |
|
|
6948 | if test "x$ac_cv_type_struct_lastlogx" = x""yes; then : |
|
|
6949 | |
|
|
6950 | cat >>confdefs.h <<_ACEOF |
|
|
6951 | #define HAVE_STRUCT_LASTLOGX 1 |
|
|
6952 | _ACEOF |
|
|
6953 | |
|
|
6954 | |
|
|
6955 | fi |
|
|
6956 | |
|
|
6957 | |
|
|
6958 | |
|
|
6959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where utmp is located" >&5 |
|
|
6960 | $as_echo_n "checking where utmp is located... " >&6; } |
|
|
6961 | if test "${pt_cv_path_utmp+set}" = set; then : |
|
|
6962 | $as_echo_n "(cached) " >&6 |
|
|
6963 | else |
|
|
6964 | if test "$cross_compiling" = yes; then : |
|
|
6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define UTMP_FILE in config.h manually" >&5 |
|
|
6966 | $as_echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;} |
|
|
6967 | else |
|
|
6968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
6969 | /* end confdefs.h. */ |
|
|
6970 | #include <stdio.h> |
|
|
6971 | #include <stdlib.h> |
|
|
6972 | #include <sys/stat.h> |
|
|
6973 | |
|
|
6974 | #include <sys/types.h> |
|
|
6975 | #include <utmp.h> |
|
|
6976 | |
|
|
6977 | int main() |
|
|
6978 | { |
|
|
6979 | const char **path, *list[] = { "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; |
|
|
6980 | FILE *f = fopen("conftestval", "w"); |
|
|
6981 | if (!f) return 1; |
|
|
6982 | #ifdef UTMP_FILE |
|
|
6983 | fprintf(f, "%s\n", UTMP_FILE); |
|
|
6984 | #elif defined(_PATH_UTMP) |
|
|
6985 | fprintf(f, "%s\n", _PATH_UTMP); |
|
|
6986 | #else |
7415 | else |
6987 | for (path = list; *path; path++) { |
|
|
6988 | struct stat st; |
|
|
6989 | if (stat(*path, &st) == 0) { |
|
|
6990 | fprintf(f, "%s\n", *path); |
|
|
6991 | break; |
|
|
6992 | } |
|
|
6993 | } |
|
|
6994 | #endif |
|
|
6995 | return fclose(f) != 0; |
|
|
6996 | } |
|
|
6997 | _ACEOF |
|
|
6998 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
6999 | pt_cv_path_utmp=`cat conftestval` |
|
|
7000 | else |
|
|
7001 | pt_cv_path_utmp= |
|
|
7002 | fi |
|
|
7003 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7004 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7005 | fi |
|
|
7006 | |
|
|
7007 | fi |
|
|
7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5 |
|
|
7009 | $as_echo "$pt_cv_path_utmp" >&6; } |
|
|
7010 | if test x$pt_cv_path_utmp != x; then |
|
|
7011 | |
|
|
7012 | cat >>confdefs.h <<_ACEOF |
|
|
7013 | #define UTMP_FILE "$pt_cv_path_utmp" |
|
|
7014 | _ACEOF |
|
|
7015 | |
|
|
7016 | fi |
|
|
7017 | |
|
|
7018 | |
|
|
7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmp is located" >&5 |
|
|
7020 | $as_echo_n "checking where wtmp is located... " >&6; } |
|
|
7021 | if test "${pt_cv_path_wtmp+set}" = set; then : |
|
|
7022 | $as_echo_n "(cached) " >&6 |
|
|
7023 | else |
|
|
7024 | if test "$cross_compiling" = yes; then : |
|
|
7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMP_FILE in config.h manually" >&5 |
|
|
7026 | $as_echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} |
|
|
7027 | else |
|
|
7028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7029 | /* end confdefs.h. */ |
|
|
7030 | #include <stdio.h> |
|
|
7031 | #include <stdlib.h> |
|
|
7032 | #include <sys/stat.h> |
|
|
7033 | |
|
|
7034 | #include <sys/types.h> |
|
|
7035 | #ifdef HAVE_UTMP_H |
|
|
7036 | #include <utmp.h> |
|
|
7037 | #endif |
|
|
7038 | |
|
|
7039 | int main() |
|
|
7040 | { |
|
|
7041 | const char **path, *list[] = { "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL }; |
|
|
7042 | FILE *f = fopen("conftestval", "w"); |
|
|
7043 | if (!f) return 1; |
|
|
7044 | #ifdef WTMP_FILE |
|
|
7045 | fprintf(f, "%s\n", WTMP_FILE); |
|
|
7046 | #elif defined(_PATH_WTMP) |
|
|
7047 | fprintf(f, "%s\n", _PATH_WTMP); |
|
|
7048 | #else |
|
|
7049 | for (path = list; *path; path++) { |
|
|
7050 | struct stat st; |
|
|
7051 | if (stat(*path, &st) == 0) { |
|
|
7052 | fprintf(f, "%s\n", *path); |
|
|
7053 | break; |
|
|
7054 | } |
|
|
7055 | } |
|
|
7056 | #endif |
|
|
7057 | return fclose(f) != 0; |
|
|
7058 | } |
|
|
7059 | _ACEOF |
|
|
7060 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7061 | pt_cv_path_wtmp=`cat conftestval` |
|
|
7062 | else |
|
|
7063 | pt_cv_path_wtmp= |
|
|
7064 | fi |
|
|
7065 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7066 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7067 | fi |
|
|
7068 | |
|
|
7069 | fi |
|
|
7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5 |
|
|
7071 | $as_echo "$pt_cv_path_wtmp" >&6; } |
|
|
7072 | if test x$pt_cv_path_wtmp != x; then |
|
|
7073 | |
|
|
7074 | cat >>confdefs.h <<_ACEOF |
|
|
7075 | #define WTMP_FILE "$pt_cv_path_wtmp" |
|
|
7076 | _ACEOF |
|
|
7077 | |
|
|
7078 | fi |
|
|
7079 | |
|
|
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where wtmpx is located" >&5 |
|
|
7081 | $as_echo_n "checking where wtmpx is located... " >&6; } |
|
|
7082 | if test "${pt_cv_path_wtmpx+set}" = set; then : |
|
|
7083 | $as_echo_n "(cached) " >&6 |
|
|
7084 | else |
|
|
7085 | if test "$cross_compiling" = yes; then : |
|
|
7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define WTMPX_FILE in config.h manually" >&5 |
|
|
7087 | $as_echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} |
|
|
7088 | else |
|
|
7089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7090 | /* end confdefs.h. */ |
|
|
7091 | #include <stdio.h> |
|
|
7092 | #include <stdlib.h> |
|
|
7093 | #include <sys/stat.h> |
|
|
7094 | |
|
|
7095 | #ifdef HAVE_UTMPX_H |
|
|
7096 | #include <utmpx.h> |
|
|
7097 | #endif |
|
|
7098 | |
|
|
7099 | int main() |
|
|
7100 | { |
|
|
7101 | const char **path, *list[] = { "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; |
|
|
7102 | FILE *f = fopen("conftestval", "w"); |
|
|
7103 | if (!f) return 1; |
|
|
7104 | #ifdef WTMPX_FILE |
|
|
7105 | fprintf(f, "%s\n", WTMPX_FILE); |
|
|
7106 | #elif defined(_PATH_WTMPX) |
|
|
7107 | fprintf(f, "%s\n", _PATH_WTMPX); |
|
|
7108 | #else |
|
|
7109 | for (path = list; *path; path++) { |
|
|
7110 | struct stat st; |
|
|
7111 | if (stat(*path, &st) == 0) { |
|
|
7112 | fprintf(f, "%s\n", *path); |
|
|
7113 | break; |
|
|
7114 | } |
|
|
7115 | } |
|
|
7116 | #endif |
|
|
7117 | return fclose(f) != 0; |
|
|
7118 | } |
|
|
7119 | _ACEOF |
|
|
7120 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7121 | pt_cv_path_wtmpx=`cat conftestval` |
|
|
7122 | else |
|
|
7123 | pt_cv_path_wtmpx= |
|
|
7124 | fi |
|
|
7125 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7126 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7127 | fi |
|
|
7128 | |
|
|
7129 | fi |
|
|
7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5 |
|
|
7131 | $as_echo "$pt_cv_path_wtmpx" >&6; } |
|
|
7132 | if test x$pt_cv_path_wtmpx != x; then |
|
|
7133 | |
|
|
7134 | cat >>confdefs.h <<_ACEOF |
|
|
7135 | #define WTMPX_FILE "$pt_cv_path_wtmpx" |
|
|
7136 | _ACEOF |
|
|
7137 | |
|
|
7138 | fi |
|
|
7139 | |
|
|
7140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlog is located" >&5 |
|
|
7141 | $as_echo_n "checking where lastlog is located... " >&6; } |
|
|
7142 | if test "${pt_cv_path_lastlog+set}" = set; then : |
|
|
7143 | $as_echo_n "(cached) " >&6 |
|
|
7144 | else |
|
|
7145 | if test "$cross_compiling" = yes; then : |
|
|
7146 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOG_FILE in config.h manually" >&5 |
|
|
7147 | $as_echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} |
|
|
7148 | else |
|
|
7149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7150 | /* end confdefs.h. */ |
|
|
7151 | #include <stdio.h> |
|
|
7152 | #include <stdlib.h> |
|
|
7153 | #include <sys/stat.h> |
|
|
7154 | |
|
|
7155 | #include <sys/types.h> |
|
|
7156 | #ifdef HAVE_UTMP_H |
|
|
7157 | #include <utmp.h> |
|
|
7158 | #endif |
|
|
7159 | #ifdef HAVE_LASTLOG_H |
|
|
7160 | #include <lastlog.h> |
|
|
7161 | #endif |
|
|
7162 | |
|
|
7163 | int main() |
|
|
7164 | { |
|
|
7165 | const char **path, *list[] = { "/var/log/lastlog", NULL }; |
|
|
7166 | FILE *f = fopen("conftestval", "w"); |
|
|
7167 | if (!f) return 1; |
|
|
7168 | #ifdef LASTLOG_FILE |
|
|
7169 | fprintf(f, "%s\n", LASTLOG_FILE); |
|
|
7170 | #elif defined(_PATH_LASTLOG) |
|
|
7171 | fprintf(f, "%s\n", _PATH_LASTLOG); |
|
|
7172 | #else |
|
|
7173 | for (path = list; *path; path++) { |
|
|
7174 | struct stat st; |
|
|
7175 | if (stat(*path, &st) == 0) { |
|
|
7176 | fprintf(f, "%s\n", *path); |
|
|
7177 | break; |
|
|
7178 | } |
|
|
7179 | } |
|
|
7180 | #endif |
|
|
7181 | return fclose(f) != 0; |
|
|
7182 | } |
|
|
7183 | _ACEOF |
|
|
7184 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7185 | pt_cv_path_lastlog=`cat conftestval` |
|
|
7186 | else |
|
|
7187 | pt_cv_path_lastlog= |
|
|
7188 | fi |
|
|
7189 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7190 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7191 | fi |
|
|
7192 | |
|
|
7193 | fi |
|
|
7194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5 |
|
|
7195 | $as_echo "$pt_cv_path_lastlog" >&6; } |
|
|
7196 | if test x$pt_cv_path_lastlog != x; then |
|
|
7197 | |
|
|
7198 | cat >>confdefs.h <<_ACEOF |
|
|
7199 | #define LASTLOG_FILE "$pt_cv_path_lastlog" |
|
|
7200 | _ACEOF |
|
|
7201 | |
|
|
7202 | fi |
|
|
7203 | |
|
|
7204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lastlogx is located" >&5 |
|
|
7205 | $as_echo_n "checking where lastlogx is located... " >&6; } |
|
|
7206 | if test "${pt_cv_path_lastlogx+set}" = set; then : |
|
|
7207 | $as_echo_n "(cached) " >&6 |
|
|
7208 | else |
|
|
7209 | if test "$cross_compiling" = yes; then : |
|
|
7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 |
|
|
7211 | $as_echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} |
|
|
7212 | else |
|
|
7213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7214 | /* end confdefs.h. */ |
|
|
7215 | #include <stdio.h> |
|
|
7216 | #include <stdlib.h> |
|
|
7217 | #include <sys/stat.h> |
|
|
7218 | |
|
|
7219 | #ifdef HAVE_UTMPX_H |
|
|
7220 | #include <utmpx.h> |
|
|
7221 | #endif |
|
|
7222 | |
|
|
7223 | int main() |
|
|
7224 | { |
|
|
7225 | const char **path, *list[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL }; |
|
|
7226 | FILE *f = fopen("conftestval", "w"); |
|
|
7227 | if (!f) return 1; |
|
|
7228 | #ifdef LASTLOGX_FILE |
|
|
7229 | fprintf(f, "%s\n", LASTLOGX_FILE); |
|
|
7230 | #elif defined(_PATH_LASTLOGX) |
|
|
7231 | fprintf(f, "%s\n", _PATH_LASTLOGX); |
|
|
7232 | #else |
|
|
7233 | for (path = list; *path; path++) { |
|
|
7234 | struct stat st; |
|
|
7235 | if (stat(*path, &st) == 0) { |
|
|
7236 | fprintf(f, "%s\n", *path); |
|
|
7237 | break; |
|
|
7238 | } |
|
|
7239 | } |
|
|
7240 | #endif |
|
|
7241 | return fclose(f) != 0; |
|
|
7242 | } |
|
|
7243 | _ACEOF |
|
|
7244 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7245 | pt_cv_path_lastlogx=`cat conftestval` |
|
|
7246 | else |
|
|
7247 | pt_cv_path_lastlogx= |
|
|
7248 | fi |
|
|
7249 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7250 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7251 | fi |
|
|
7252 | |
|
|
7253 | fi |
|
|
7254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5 |
|
|
7255 | $as_echo "$pt_cv_path_lastlogx" >&6; } |
|
|
7256 | if test x$pt_cv_path_lastlogx != x; then |
|
|
7257 | |
|
|
7258 | cat >>confdefs.h <<_ACEOF |
|
|
7259 | #define LASTLOGX_FILE "$pt_cv_path_lastlogx" |
|
|
7260 | _ACEOF |
|
|
7261 | |
|
|
7262 | fi |
|
|
7263 | |
|
|
7264 | |
|
|
7265 | |
|
|
7266 | |
|
|
7267 | save_LIBS=$LIBS |
|
|
7268 | save_CFLAGS=$CFLAGS |
|
|
7269 | CFLAGS="$CFLAGS $X_CFLAGS" |
|
|
7270 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
|
|
7271 | if test x$support_xim = xyes; then |
|
|
7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5 |
|
|
7273 | $as_echo_n "checking for working Xlocale... " >&6; } |
|
|
7274 | if test "${rxvt_cv_func_xlocale+set}" = set; then : |
|
|
7275 | $as_echo_n "(cached) " >&6 |
|
|
7276 | else |
|
|
7277 | if test "$cross_compiling" = yes; then : |
|
|
7278 | : |
|
|
7279 | else |
|
|
7280 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7281 | /* end confdefs.h. */ |
|
|
7282 | |
|
|
7283 | #include <X11/Xlib.h> |
|
|
7284 | #include <stdlib.h> |
|
|
7285 | int main() { |
|
|
7286 | char *p; |
|
|
7287 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
|
|
7288 | exit (XSupportsLocale() ? 0 : 1); |
|
|
7289 | else |
|
|
7290 | exit (1); |
|
|
7291 | } |
|
|
7292 | |
|
|
7293 | _ACEOF |
|
|
7294 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7295 | rxvt_cv_func_xlocale=yes |
|
|
7296 | else |
|
|
7297 | rxvt_cv_func_xlocale=no |
|
|
7298 | fi |
|
|
7299 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7300 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7301 | fi |
|
|
7302 | |
|
|
7303 | fi |
|
|
7304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5 |
|
|
7305 | $as_echo "$rxvt_cv_func_xlocale" >&6; } |
|
|
7306 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
7307 | |
|
|
7308 | $as_echo "#define USE_XIM 1" >>confdefs.h |
|
|
7309 | |
|
|
7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5 |
|
|
7311 | $as_echo_n "checking for broken XIM callback... " >&6; } |
|
|
7312 | if test "${rxvt_cv_broken_ximcb+set}" = set; then : |
|
|
7313 | $as_echo_n "(cached) " >&6 |
|
|
7314 | else |
|
|
7315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7316 | /* end confdefs.h. */ |
|
|
7317 | |
|
|
7318 | #include <X11/Xlib.h> |
|
|
7319 | |
|
|
7320 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
|
|
7321 | |
|
|
7322 | void f() { |
|
|
7323 | XIMCallback cb; |
|
|
7324 | cb.callback = im_destroy_cb; |
|
|
7325 | } |
|
|
7326 | |
|
|
7327 | _ACEOF |
|
|
7328 | if ac_fn_cxx_try_compile "$LINENO"; then : |
|
|
7329 | rxvt_cv_broken_ximcb=yes |
|
|
7330 | else |
|
|
7331 | rxvt_cv_broken_ximcb=no |
|
|
7332 | fi |
|
|
7333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7334 | fi |
|
|
7335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5 |
|
|
7336 | $as_echo "$rxvt_cv_broken_ximcb" >&6; } |
|
|
7337 | |
|
|
7338 | if test x$rxvt_cv_broken_ximcb = xyes; then |
|
|
7339 | |
|
|
7340 | $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h |
|
|
7341 | |
|
|
7342 | fi |
|
|
7343 | fi |
|
|
7344 | fi |
|
|
7345 | |
|
|
7346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5 |
|
|
7347 | $as_echo_n "checking for working X setlocale... " >&6; } |
|
|
7348 | if test "${rxvt_cv_func_xsetlocale+set}" = set; then : |
|
|
7349 | $as_echo_n "(cached) " >&6 |
|
|
7350 | else |
|
|
7351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7352 | /* end confdefs.h. */ |
|
|
7353 | #define X_LOCALE 1 |
|
|
7354 | #include <X11/Xlocale.h> |
|
|
7355 | int |
|
|
7356 | main () |
|
|
7357 | { |
|
|
7358 | setlocale(LC_CTYPE, ""); |
|
|
7359 | ; |
|
|
7360 | return 0; |
|
|
7361 | } |
|
|
7362 | _ACEOF |
|
|
7363 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7364 | rxvt_cv_func_xsetlocale=yes |
|
|
7365 | else |
|
|
7366 | rxvt_cv_func_xsetlocale=no |
|
|
7367 | fi |
|
|
7368 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7369 | conftest$ac_exeext conftest.$ac_ext |
|
|
7370 | fi |
|
|
7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5 |
|
|
7372 | $as_echo "$rxvt_cv_func_xsetlocale" >&6; } |
|
|
7373 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
|
|
7374 | |
|
|
7375 | $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h |
|
|
7376 | |
|
|
7377 | fi |
|
|
7378 | LIBS=$save_LIBS |
|
|
7379 | CFLAGS=$save_CFLAGS |
|
|
7380 | |
|
|
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5 |
|
|
7382 | $as_echo_n "checking for working plain setlocale... " >&6; } |
|
|
7383 | if test "${rxvt_cv_func_setlocale+set}" = set; then : |
|
|
7384 | $as_echo_n "(cached) " >&6 |
|
|
7385 | else |
|
|
7386 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7387 | /* end confdefs.h. */ |
|
|
7388 | #include <clocale> |
|
|
7389 | int |
|
|
7390 | main () |
|
|
7391 | { |
|
|
7392 | setlocale(LC_CTYPE, ""); |
|
|
7393 | ; |
|
|
7394 | return 0; |
|
|
7395 | } |
|
|
7396 | _ACEOF |
|
|
7397 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7398 | rxvt_cv_func_setlocale=yes |
|
|
7399 | else |
|
|
7400 | rxvt_cv_func_setlocale=no |
|
|
7401 | fi |
|
|
7402 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7403 | conftest$ac_exeext conftest.$ac_ext |
|
|
7404 | fi |
|
|
7405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5 |
|
|
7406 | $as_echo "$rxvt_cv_func_setlocale" >&6; } |
|
|
7407 | if test x$rxvt_cv_func_setlocale = xyes; then |
|
|
7408 | |
|
|
7409 | $as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h |
|
|
7410 | |
|
|
7411 | fi |
|
|
7412 | |
|
|
7413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5 |
|
|
7414 | $as_echo_n "checking for working nl_langinfo... " >&6; } |
|
|
7415 | if test "${rxvt_cv_func_nl_langinfo+set}" = set; then : |
|
|
7416 | $as_echo_n "(cached) " >&6 |
|
|
7417 | else |
|
|
7418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7419 | /* end confdefs.h. */ |
|
|
7420 | #include <langinfo.h> |
|
|
7421 | int |
|
|
7422 | main () |
|
|
7423 | { |
|
|
7424 | nl_langinfo(CODESET); |
|
|
7425 | ; |
|
|
7426 | return 0; |
|
|
7427 | } |
|
|
7428 | _ACEOF |
|
|
7429 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7430 | rxvt_cv_func_nl_langinfo=yes |
|
|
7431 | else |
|
|
7432 | rxvt_cv_func_nl_langinfo=no |
|
|
7433 | fi |
|
|
7434 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7435 | conftest$ac_exeext conftest.$ac_ext |
|
|
7436 | fi |
|
|
7437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5 |
|
|
7438 | $as_echo "$rxvt_cv_func_nl_langinfo" >&6; } |
|
|
7439 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
|
|
7440 | |
|
|
7441 | $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h |
|
|
7442 | |
|
|
7443 | fi |
|
|
7444 | |
|
|
7445 | |
|
|
7446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5 |
|
|
7447 | $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; } |
|
|
7448 | if test "${pt_cv_can_pass_fds+set}" = set; then : |
|
|
7449 | $as_echo_n "(cached) " >&6 |
|
|
7450 | else |
|
|
7451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7452 | /* end confdefs.h. */ |
|
|
7453 | |
|
|
7454 | #include <cstddef> // broken bsds (is that redundant?) need this |
|
|
7455 | #include <sys/types.h> |
|
|
7456 | #include <sys/socket.h> |
|
|
7457 | #include <sys/uio.h> |
|
|
7458 | |
|
|
7459 | int |
|
|
7460 | main () |
|
|
7461 | { |
|
|
7462 | |
|
|
7463 | { |
|
|
7464 | msghdr msg; |
|
|
7465 | iovec iov; |
|
|
7466 | char buf [100]; |
|
|
7467 | char data = 0; |
|
|
7468 | |
|
|
7469 | iov.iov_base = &data; |
|
|
7470 | iov.iov_len = 1; |
|
|
7471 | |
|
|
7472 | msg.msg_iov = &iov; |
|
|
7473 | msg.msg_iovlen = 1; |
|
|
7474 | msg.msg_control = buf; |
|
|
7475 | msg.msg_controllen = sizeof buf; |
|
|
7476 | |
|
|
7477 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
7478 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
7479 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
7480 | cmsg->cmsg_len = 100; |
|
|
7481 | |
|
|
7482 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
7483 | |
|
|
7484 | return sendmsg (3, &msg, 0); |
|
|
7485 | } |
|
|
7486 | |
|
|
7487 | ; |
|
|
7488 | return 0; |
|
|
7489 | } |
|
|
7490 | _ACEOF |
|
|
7491 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7492 | pt_cv_can_pass_fds=yes |
|
|
7493 | else |
|
|
7494 | pt_cv_can_pass_fds=no |
|
|
7495 | fi |
|
|
7496 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7497 | conftest$ac_exeext conftest.$ac_ext |
|
|
7498 | fi |
|
|
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5 |
|
|
7500 | $as_echo "$pt_cv_can_pass_fds" >&6; } |
|
|
7501 | if test x$pt_cv_can_pass_fds = xyes; then |
|
|
7502 | |
|
|
7503 | $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h |
|
|
7504 | |
|
|
7505 | else |
|
|
7506 | as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5 |
|
|
7507 | fi |
|
|
7508 | |
|
|
7509 | |
|
|
7510 | |
|
|
7511 | for ac_header in \ |
|
|
7512 | pty.h \ |
|
|
7513 | util.h \ |
|
|
7514 | libutil.h \ |
|
|
7515 | sys/ioctl.h \ |
|
|
7516 | sys/stropts.h \ |
|
|
7517 | stropts.h \ |
|
|
7518 | |
|
|
7519 | do : |
|
|
7520 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7521 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
|
|
7522 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
7523 | cat >>confdefs.h <<_ACEOF |
|
|
7524 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7525 | _ACEOF |
|
|
7526 | |
|
|
7527 | fi |
|
|
7528 | |
|
|
7529 | done |
|
|
7530 | |
|
|
7531 | |
|
|
7532 | for ac_func in \ |
|
|
7533 | revoke \ |
|
|
7534 | _getpty \ |
|
|
7535 | getpt \ |
|
|
7536 | posix_openpt \ |
|
|
7537 | isastream \ |
|
|
7538 | setuid \ |
|
|
7539 | seteuid \ |
|
|
7540 | setreuid \ |
|
|
7541 | setresuid \ |
|
|
7542 | |
|
|
7543 | do : |
|
|
7544 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
|
|
7545 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
|
|
7546 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
|
|
7547 | cat >>confdefs.h <<_ACEOF |
|
|
7548 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
|
|
7549 | _ACEOF |
|
|
7550 | |
|
|
7551 | fi |
|
|
7552 | done |
|
|
7553 | |
|
|
7554 | |
|
|
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5 |
|
|
7556 | $as_echo_n "checking for UNIX98 ptys... " >&6; } |
|
|
7557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7558 | /* end confdefs.h. */ |
|
|
7559 | #include <stdlib.h> |
|
|
7560 | int |
|
|
7561 | main () |
|
|
7562 | { |
|
|
7563 | grantpt(0);unlockpt(0);ptsname(0); |
|
|
7564 | ; |
|
|
7565 | return 0; |
|
|
7566 | } |
|
|
7567 | _ACEOF |
|
|
7568 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7569 | unix98_pty=yes |
|
|
7570 | |
|
|
7571 | $as_echo "#define UNIX98_PTY 1" >>confdefs.h |
|
|
7572 | |
|
|
7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
|
7574 | $as_echo "yes" >&6; } |
|
|
7575 | else |
|
|
7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7577 | $as_echo "no" >&6; } |
|
|
7578 | fi |
|
|
7579 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7580 | conftest$ac_exeext conftest.$ac_ext |
|
|
7581 | |
|
|
7582 | if test -z "$unix98_pty"; then |
|
|
7583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5 |
|
|
7584 | $as_echo_n "checking for library containing openpty... " >&6; } |
|
|
7585 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7586 | $as_echo_n "(cached) " >&6 |
|
|
7587 | else |
|
|
7588 | ac_func_search_save_LIBS=$LIBS |
|
|
7589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7590 | /* end confdefs.h. */ |
|
|
7591 | |
|
|
7592 | /* Override any GCC internal prototype to avoid an error. |
|
|
7593 | Use char because int might match the return type of a GCC |
|
|
7594 | builtin and then its argument prototype would still apply. */ |
|
|
7595 | #ifdef __cplusplus |
|
|
7596 | extern "C" |
|
|
7597 | #endif |
|
|
7598 | char openpty (); |
|
|
7599 | int |
|
|
7600 | main () |
|
|
7601 | { |
|
|
7602 | return openpty (); |
|
|
7603 | ; |
|
|
7604 | return 0; |
|
|
7605 | } |
|
|
7606 | _ACEOF |
|
|
7607 | for ac_lib in '' util; do |
|
|
7608 | if test -z "$ac_lib"; then |
|
|
7609 | ac_res="none required" |
|
|
7610 | else |
|
|
7611 | ac_res=-l$ac_lib |
|
|
7612 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
|
7613 | fi |
|
|
7614 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7615 | ac_cv_search_openpty=$ac_res |
|
|
7616 | fi |
|
|
7617 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7618 | conftest$ac_exeext |
|
|
7619 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7620 | break |
|
|
7621 | fi |
|
|
7622 | done |
|
|
7623 | if test "${ac_cv_search_openpty+set}" = set; then : |
|
|
7624 | |
|
|
7625 | else |
|
|
7626 | ac_cv_search_openpty=no |
|
|
7627 | fi |
|
|
7628 | rm conftest.$ac_ext |
|
|
7629 | LIBS=$ac_func_search_save_LIBS |
|
|
7630 | fi |
|
|
7631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5 |
|
|
7632 | $as_echo "$ac_cv_search_openpty" >&6; } |
|
|
7633 | ac_res=$ac_cv_search_openpty |
|
|
7634 | if test "$ac_res" != no; then : |
|
|
7635 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
|
7636 | |
|
|
7637 | $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h |
|
|
7638 | |
|
|
7639 | fi |
|
|
7640 | |
|
|
7641 | fi |
|
|
7642 | |
|
|
7643 | |
|
|
7644 | |
|
|
7645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5 |
|
|
7646 | $as_echo_n "checking for tty group... " >&6; } |
|
|
7647 | if test "${pt_cv_tty_group+set}" = set; then : |
|
|
7648 | $as_echo_n "(cached) " >&6 |
|
|
7649 | else |
|
|
7650 | if test "$cross_compiling" = yes; then : |
|
|
7651 | pt_cv_tty_group=no |
|
|
7652 | else |
|
|
7653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7654 | /* end confdefs.h. */ |
|
|
7655 | |
|
|
7656 | #include <sys/types.h> |
|
|
7657 | #include <sys/stat.h> |
|
|
7658 | #include <unistd.h> |
|
|
7659 | #include <grp.h> |
|
|
7660 | |
|
|
7661 | int main() |
|
|
7662 | { |
|
|
7663 | struct stat st; |
|
|
7664 | struct group *gr; |
|
|
7665 | char *tty; |
|
|
7666 | gr = getgrnam("tty"); |
|
|
7667 | tty = ttyname(0); |
|
|
7668 | if (gr != 0 |
|
|
7669 | && tty != 0 |
|
|
7670 | && (stat(tty, &st)) == 0 |
|
|
7671 | && st.st_gid == gr->gr_gid) |
|
|
7672 | return 0; |
|
|
7673 | else |
|
|
7674 | return 1; |
|
|
7675 | } |
|
|
7676 | _ACEOF |
|
|
7677 | if ac_fn_cxx_try_run "$LINENO"; then : |
|
|
7678 | pt_cv_tty_group=yes |
|
|
7679 | else |
|
|
7680 | pt_cv_tty_group=no |
|
|
7681 | fi |
|
|
7682 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
7683 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
7684 | fi |
|
|
7685 | |
|
|
7686 | fi |
|
|
7687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5 |
|
|
7688 | $as_echo "$pt_cv_tty_group" >&6; } |
|
|
7689 | if test x$pt_cv_tty_group = xyes; then |
|
|
7690 | |
|
|
7691 | $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h |
|
|
7692 | |
|
|
7693 | fi |
|
|
7694 | |
|
|
7695 | if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then |
|
|
7696 | rxvt_have_xrender=no |
7416 | rxvt_have_xrender=no |
|
|
7417 | fi |
|
|
7418 | |
|
|
7419 | |
|
|
7420 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
|
|
7421 | if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then : |
|
|
7422 | |
|
|
7423 | else |
|
|
7424 | rxvt_have_xrender=no |
|
|
7425 | fi |
|
|
7426 | |
|
|
7427 | LIBS="$save_LIBS" |
|
|
7428 | fi |
|
|
7429 | fi |
|
|
7430 | |
|
|
7431 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7697 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7432 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7698 | set dummy pkg-config; ac_word=$2 |
7433 | set dummy pkg-config; ac_word=$2 |
7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7700 | $as_echo_n "checking for $ac_word... " >&6; } |
7435 | $as_echo_n "checking for $ac_word... " >&6; } |
7701 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7436 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
… | |
… | |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7734 | $as_echo "no" >&6; } |
7469 | $as_echo "no" >&6; } |
7735 | fi |
7470 | fi |
7736 | |
7471 | |
7737 | |
7472 | |
7738 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
7473 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
7739 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
7474 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
7740 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
7475 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
7741 | rxvt_have_xrender=yes |
7476 | else |
|
|
7477 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
7478 | set dummy xft-config; ac_word=$2 |
|
|
7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
7480 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
7481 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then : |
|
|
7482 | $as_echo_n "(cached) " >&6 |
|
|
7483 | else |
|
|
7484 | case $XFT_CONFIG in |
|
|
7485 | [\\/]* | ?:[\\/]*) |
|
|
7486 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
7487 | ;; |
|
|
7488 | *) |
|
|
7489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7490 | for as_dir in $PATH |
|
|
7491 | do |
|
|
7492 | IFS=$as_save_IFS |
|
|
7493 | test -z "$as_dir" && as_dir=. |
|
|
7494 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7496 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
7497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7498 | break 2 |
|
|
7499 | fi |
|
|
7500 | done |
|
|
7501 | done |
|
|
7502 | IFS=$as_save_IFS |
7742 | |
7503 | |
|
|
7504 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
|
|
7505 | ;; |
|
|
7506 | esac |
|
|
7507 | fi |
|
|
7508 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
7509 | if test -n "$XFT_CONFIG"; then |
|
|
7510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
|
|
7511 | $as_echo "$XFT_CONFIG" >&6; } |
|
|
7512 | else |
|
|
7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
7514 | $as_echo "no" >&6; } |
|
|
7515 | fi |
|
|
7516 | |
|
|
7517 | |
|
|
7518 | if test $XFT_CONFIG != no; then |
|
|
7519 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
|
|
7520 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
7521 | fi |
|
|
7522 | fi |
|
|
7523 | |
|
|
7524 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then |
|
|
7525 | X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS" |
|
|
7526 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
|
|
7527 | fi |
|
|
7528 | |
7743 | save_LIBS="$LIBS" |
7529 | save_LIBS="$LIBS" |
7744 | LIBS="$LIBS $X_LIBS" |
7530 | LIBS="$LIBS $X_LIBS" |
|
|
7531 | for ac_header in X11/Xft/Xft.h |
|
|
7532 | do : |
7745 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default" |
7533 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
7746 | if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then : |
7534 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
|
|
7535 | cat >>confdefs.h <<_ACEOF |
|
|
7536 | #define HAVE_X11_XFT_XFT_H 1 |
|
|
7537 | _ACEOF |
7747 | |
7538 | |
7748 | else |
7539 | else |
7749 | rxvt_have_xrender=no |
7540 | support_xft=no |
7750 | fi |
7541 | fi |
7751 | |
7542 | |
|
|
7543 | done |
7752 | |
7544 | |
7753 | ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat" |
7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 |
7754 | if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then : |
7546 | $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } |
7755 | |
7547 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then : |
|
|
7548 | $as_echo_n "(cached) " >&6 |
7756 | else |
7549 | else |
7757 | rxvt_have_xrender=no |
7550 | ac_check_lib_save_LIBS=$LIBS |
7758 | fi |
7551 | LIBS="-lXft $LIBS" |
|
|
7552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7553 | /* end confdefs.h. */ |
7759 | |
7554 | |
|
|
7555 | /* Override any GCC internal prototype to avoid an error. |
|
|
7556 | Use char because int might match the return type of a GCC |
|
|
7557 | builtin and then its argument prototype would still apply. */ |
|
|
7558 | #ifdef __cplusplus |
|
|
7559 | extern "C" |
|
|
7560 | #endif |
|
|
7561 | char XftDrawString32 (); |
|
|
7562 | int |
|
|
7563 | main () |
|
|
7564 | { |
|
|
7565 | return XftDrawString32 (); |
|
|
7566 | ; |
|
|
7567 | return 0; |
|
|
7568 | } |
|
|
7569 | _ACEOF |
|
|
7570 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7571 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
7572 | else |
|
|
7573 | ac_cv_lib_Xft_XftDrawString32=no |
|
|
7574 | fi |
|
|
7575 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7576 | conftest$ac_exeext conftest.$ac_ext |
|
|
7577 | LIBS=$ac_check_lib_save_LIBS |
|
|
7578 | fi |
|
|
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
7580 | $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
7581 | if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then : |
|
|
7582 | : |
|
|
7583 | else |
|
|
7584 | support_xft=no |
|
|
7585 | fi |
|
|
7586 | |
|
|
7587 | for ac_header in fontconfig/fontconfig.h |
|
|
7588 | do : |
|
|
7589 | ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
|
7590 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
|
|
7591 | cat >>confdefs.h <<_ACEOF |
|
|
7592 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
|
|
7593 | _ACEOF |
|
|
7594 | |
|
|
7595 | else |
|
|
7596 | support_xft=no |
|
|
7597 | fi |
|
|
7598 | |
|
|
7599 | done |
|
|
7600 | |
|
|
7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5 |
|
|
7602 | $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; } |
|
|
7603 | if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then : |
|
|
7604 | $as_echo_n "(cached) " >&6 |
|
|
7605 | else |
|
|
7606 | ac_check_lib_save_LIBS=$LIBS |
|
|
7607 | LIBS="-lfontconfig $LIBS" |
|
|
7608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7609 | /* end confdefs.h. */ |
|
|
7610 | |
|
|
7611 | /* Override any GCC internal prototype to avoid an error. |
|
|
7612 | Use char because int might match the return type of a GCC |
|
|
7613 | builtin and then its argument prototype would still apply. */ |
|
|
7614 | #ifdef __cplusplus |
|
|
7615 | extern "C" |
|
|
7616 | #endif |
|
|
7617 | char FcPatternGet (); |
|
|
7618 | int |
|
|
7619 | main () |
|
|
7620 | { |
|
|
7621 | return FcPatternGet (); |
|
|
7622 | ; |
|
|
7623 | return 0; |
|
|
7624 | } |
|
|
7625 | _ACEOF |
|
|
7626 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7627 | ac_cv_lib_fontconfig_FcPatternGet=yes |
|
|
7628 | else |
|
|
7629 | ac_cv_lib_fontconfig_FcPatternGet=no |
|
|
7630 | fi |
|
|
7631 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7632 | conftest$ac_exeext conftest.$ac_ext |
|
|
7633 | LIBS=$ac_check_lib_save_LIBS |
|
|
7634 | fi |
|
|
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5 |
|
|
7636 | $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; } |
|
|
7637 | if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then : |
|
|
7638 | : |
|
|
7639 | else |
|
|
7640 | support_xft=no |
|
|
7641 | fi |
|
|
7642 | |
7760 | LIBS="$save_LIBS" |
7643 | LIBS="$save_LIBS" |
7761 | fi |
|
|
7762 | fi |
|
|
7763 | |
7644 | |
|
|
7645 | if test x$support_xft = xyes; then |
|
|
7646 | |
|
|
7647 | $as_echo "#define XFT 1" >>confdefs.h |
|
|
7648 | |
|
|
7649 | fi |
|
|
7650 | fi |
|
|
7651 | |
|
|
7652 | image_lib=none |
|
|
7653 | |
|
|
7654 | PIXBUF_CFLAGS= |
|
|
7655 | PIXBUF_LIBS= |
|
|
7656 | |
7764 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
7657 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
|
|
7658 | LIBS="$LIBS -lm" |
|
|
7659 | |
|
|
7660 | $as_echo "#define XRENDER 1" >>confdefs.h |
|
|
7661 | |
|
|
7662 | |
|
|
7663 | if test x$support_inheritpixmap = xyes; then |
|
|
7664 | |
|
|
7665 | $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
7666 | |
|
|
7667 | fi |
|
|
7668 | |
|
|
7669 | if test x$support_pixbuf = xyes; then |
|
|
7670 | support_pixbuf=no |
7765 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7671 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7766 | set dummy pkg-config; ac_word=$2 |
7672 | set dummy pkg-config; ac_word=$2 |
7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7768 | $as_echo_n "checking for $ac_word... " >&6; } |
7674 | $as_echo_n "checking for $ac_word... " >&6; } |
7769 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7675 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
7770 | $as_echo_n "(cached) " >&6 |
7676 | $as_echo_n "(cached) " >&6 |
… | |
… | |
7801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7802 | $as_echo "no" >&6; } |
7708 | $as_echo "no" >&6; } |
7803 | fi |
7709 | fi |
7804 | |
7710 | |
7805 | |
7711 | |
|
|
7712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5 |
|
|
7713 | $as_echo_n "checking for gdk-pixbuf... " >&6; } |
7806 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
7714 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
7807 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
7715 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
7808 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
7716 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
7809 | else |
7717 | support_pixbuf=yes |
7810 | # Extract the first word of "xft-config", so it can be a program name with args. |
|
|
7811 | set dummy xft-config; ac_word=$2 |
|
|
7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
7813 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
7814 | if test "${ac_cv_path_XFT_CONFIG+set}" = set; then : |
|
|
7815 | $as_echo_n "(cached) " >&6 |
|
|
7816 | else |
|
|
7817 | case $XFT_CONFIG in |
|
|
7818 | [\\/]* | ?:[\\/]*) |
|
|
7819 | ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. |
|
|
7820 | ;; |
|
|
7821 | *) |
|
|
7822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
7823 | for as_dir in $PATH |
|
|
7824 | do |
|
|
7825 | IFS=$as_save_IFS |
|
|
7826 | test -z "$as_dir" && as_dir=. |
|
|
7827 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
7828 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
7829 | ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
|
|
7830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
7831 | break 2 |
|
|
7832 | fi |
7718 | fi |
7833 | done |
|
|
7834 | done |
|
|
7835 | IFS=$as_save_IFS |
|
|
7836 | |
7719 | |
7837 | test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" |
7720 | if test x$support_pixbuf = xyes; then |
7838 | ;; |
|
|
7839 | esac |
|
|
7840 | fi |
|
|
7841 | XFT_CONFIG=$ac_cv_path_XFT_CONFIG |
|
|
7842 | if test -n "$XFT_CONFIG"; then |
|
|
7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 |
7721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7844 | $as_echo "$XFT_CONFIG" >&6; } |
7722 | $as_echo "ok" >&6; } |
7845 | else |
7723 | image_lib=gdk-pixbuf |
|
|
7724 | |
|
|
7725 | $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h |
|
|
7726 | |
|
|
7727 | |
|
|
7728 | $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h |
|
|
7729 | |
|
|
7730 | else |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7847 | $as_echo "no" >&6; } |
7732 | $as_echo "no" >&6; } |
7848 | fi |
|
|
7849 | |
|
|
7850 | |
|
|
7851 | if test $XFT_CONFIG != no; then |
|
|
7852 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
|
|
7853 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
|
|
7854 | fi |
7733 | fi |
7855 | fi |
7734 | fi |
7856 | |
|
|
7857 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then |
|
|
7858 | X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS" |
|
|
7859 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
|
|
7860 | fi |
|
|
7861 | |
|
|
7862 | save_LIBS="$LIBS" |
|
|
7863 | LIBS="$LIBS $X_LIBS" |
|
|
7864 | for ac_header in X11/Xft/Xft.h |
|
|
7865 | do : |
|
|
7866 | ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
|
|
7867 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
|
|
7868 | cat >>confdefs.h <<_ACEOF |
|
|
7869 | #define HAVE_X11_XFT_XFT_H 1 |
|
|
7870 | _ACEOF |
|
|
7871 | |
|
|
7872 | else |
|
|
7873 | support_xft=no |
|
|
7874 | fi |
7735 | fi |
7875 | |
7736 | |
7876 | done |
|
|
7877 | |
7737 | |
7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5 |
|
|
7879 | $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; } |
|
|
7880 | if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then : |
|
|
7881 | $as_echo_n "(cached) " >&6 |
|
|
7882 | else |
|
|
7883 | ac_check_lib_save_LIBS=$LIBS |
|
|
7884 | LIBS="-lXft $LIBS" |
|
|
7885 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7886 | /* end confdefs.h. */ |
|
|
7887 | |
7738 | |
7888 | /* Override any GCC internal prototype to avoid an error. |
|
|
7889 | Use char because int might match the return type of a GCC |
|
|
7890 | builtin and then its argument prototype would still apply. */ |
|
|
7891 | #ifdef __cplusplus |
|
|
7892 | extern "C" |
|
|
7893 | #endif |
|
|
7894 | char XftDrawString32 (); |
|
|
7895 | int |
|
|
7896 | main () |
|
|
7897 | { |
|
|
7898 | return XftDrawString32 (); |
|
|
7899 | ; |
|
|
7900 | return 0; |
|
|
7901 | } |
|
|
7902 | _ACEOF |
|
|
7903 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7904 | ac_cv_lib_Xft_XftDrawString32=yes |
|
|
7905 | else |
|
|
7906 | ac_cv_lib_Xft_XftDrawString32=no |
|
|
7907 | fi |
|
|
7908 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7909 | conftest$ac_exeext conftest.$ac_ext |
|
|
7910 | LIBS=$ac_check_lib_save_LIBS |
|
|
7911 | fi |
|
|
7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5 |
|
|
7913 | $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; } |
|
|
7914 | if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then : |
|
|
7915 | : |
|
|
7916 | else |
|
|
7917 | support_xft=no |
|
|
7918 | fi |
|
|
7919 | |
7739 | |
7920 | for ac_header in fontconfig/fontconfig.h |
|
|
7921 | do : |
|
|
7922 | ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" |
|
|
7923 | if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then : |
|
|
7924 | cat >>confdefs.h <<_ACEOF |
|
|
7925 | #define HAVE_FONTCONFIG_FONTCONFIG_H 1 |
|
|
7926 | _ACEOF |
|
|
7927 | |
|
|
7928 | else |
|
|
7929 | support_xft=no |
|
|
7930 | fi |
|
|
7931 | |
|
|
7932 | done |
|
|
7933 | |
|
|
7934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5 |
|
|
7935 | $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; } |
|
|
7936 | if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then : |
|
|
7937 | $as_echo_n "(cached) " >&6 |
|
|
7938 | else |
|
|
7939 | ac_check_lib_save_LIBS=$LIBS |
|
|
7940 | LIBS="-lfontconfig $LIBS" |
|
|
7941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
7942 | /* end confdefs.h. */ |
|
|
7943 | |
|
|
7944 | /* Override any GCC internal prototype to avoid an error. |
|
|
7945 | Use char because int might match the return type of a GCC |
|
|
7946 | builtin and then its argument prototype would still apply. */ |
|
|
7947 | #ifdef __cplusplus |
|
|
7948 | extern "C" |
|
|
7949 | #endif |
|
|
7950 | char FcPatternGet (); |
|
|
7951 | int |
|
|
7952 | main () |
|
|
7953 | { |
|
|
7954 | return FcPatternGet (); |
|
|
7955 | ; |
|
|
7956 | return 0; |
|
|
7957 | } |
|
|
7958 | _ACEOF |
|
|
7959 | if ac_fn_cxx_try_link "$LINENO"; then : |
|
|
7960 | ac_cv_lib_fontconfig_FcPatternGet=yes |
|
|
7961 | else |
|
|
7962 | ac_cv_lib_fontconfig_FcPatternGet=no |
|
|
7963 | fi |
|
|
7964 | rm -f core conftest.err conftest.$ac_objext \ |
|
|
7965 | conftest$ac_exeext conftest.$ac_ext |
|
|
7966 | LIBS=$ac_check_lib_save_LIBS |
|
|
7967 | fi |
|
|
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5 |
|
|
7969 | $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; } |
|
|
7970 | if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then : |
|
|
7971 | : |
|
|
7972 | else |
|
|
7973 | support_xft=no |
|
|
7974 | fi |
|
|
7975 | |
|
|
7976 | LIBS="$save_LIBS" |
|
|
7977 | |
|
|
7978 | if test x$support_xft = xyes; then |
|
|
7979 | |
|
|
7980 | $as_echo "#define XFT 1" >>confdefs.h |
|
|
7981 | |
|
|
7982 | fi |
|
|
7983 | fi |
|
|
7984 | if test x$support_styles = xyes; then |
7740 | if test x$support_styles = xyes; then |
7985 | |
7741 | |
7986 | $as_echo "#define ENABLE_STYLES 1" >>confdefs.h |
7742 | $as_echo "#define ENABLE_STYLES 1" >>confdefs.h |
7987 | |
7743 | |
7988 | fi |
7744 | fi |
… | |
… | |
7997 | |
7753 | |
7998 | fi |
7754 | fi |
7999 | if test x$support_fading = xyes; then |
7755 | if test x$support_fading = xyes; then |
8000 | |
7756 | |
8001 | $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h |
7757 | $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h |
8002 | |
|
|
8003 | fi |
|
|
8004 | if test x$support_inheritpixmap = xyes; then |
|
|
8005 | if test x$rxvt_have_xrender = xyes; then |
|
|
8006 | LIBS="$LIBS -lm" |
|
|
8007 | |
|
|
8008 | $as_echo "#define XRENDER 1" >>confdefs.h |
|
|
8009 | |
|
|
8010 | fi |
|
|
8011 | |
|
|
8012 | $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h |
|
|
8013 | |
7758 | |
8014 | fi |
7759 | fi |
8015 | if test x$support_keepscrolling = xno; then |
7760 | if test x$support_keepscrolling = xno; then |
8016 | |
7761 | |
8017 | $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
7762 | $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h |
… | |
… | |
8137 | fi |
7882 | fi |
8138 | done |
7883 | done |
8139 | done |
7884 | done |
8140 | IFS=$as_save_IFS |
7885 | IFS=$as_save_IFS |
8141 | |
7886 | |
8142 | ;; |
7887 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
8143 | esac |
|
|
8144 | fi |
|
|
8145 | PERL=$ac_cv_path_PERL |
|
|
8146 | if test -n "$PERL"; then |
|
|
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
|
|
8148 | $as_echo "$PERL" >&6; } |
|
|
8149 | else |
|
|
8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
8151 | $as_echo "no" >&6; } |
|
|
8152 | fi |
|
|
8153 | |
|
|
8154 | |
|
|
8155 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
8156 | set dummy perl; ac_word=$2 |
|
|
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
8158 | $as_echo_n "checking for $ac_word... " >&6; } |
|
|
8159 | if test "${ac_cv_path_PERL+set}" = set; then : |
|
|
8160 | $as_echo_n "(cached) " >&6 |
|
|
8161 | else |
|
|
8162 | case $PERL in |
|
|
8163 | [\\/]* | ?:[\\/]*) |
|
|
8164 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
8165 | ;; |
|
|
8166 | *) |
|
|
8167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
8168 | for as_dir in $PATH |
|
|
8169 | do |
|
|
8170 | IFS=$as_save_IFS |
|
|
8171 | test -z "$as_dir" && as_dir=. |
|
|
8172 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
8173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
|
8174 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
8175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
8176 | break 2 |
|
|
8177 | fi |
|
|
8178 | done |
|
|
8179 | done |
|
|
8180 | IFS=$as_save_IFS |
|
|
8181 | |
|
|
8182 | ;; |
7888 | ;; |
8183 | esac |
7889 | esac |
8184 | fi |
7890 | fi |
8185 | PERL=$ac_cv_path_PERL |
7891 | PERL=$ac_cv_path_PERL |
8186 | if test -n "$PERL"; then |
7892 | if test -n "$PERL"; then |