1 | dnl# -*- sh -*- |
1 | dnl# -*- sh -*- |
2 | dnl# |
2 | dnl# |
3 | dnl# Process this file with autoconf to produce a configure script. |
3 | dnl# Process this file with autoconf to produce a configure script. |
4 | dnl# |
4 | dnl# |
|
|
5 | orig_CXXFLAGS="$CXXFLAGS" |
|
|
6 | |
5 | AC_INIT |
7 | AC_INIT |
6 | AC_CONFIG_SRCDIR([src/feature.h]) |
8 | AC_CONFIG_SRCDIR([src/feature.h]) |
7 | AC_CONFIG_AUX_DIR(autoconf) |
9 | AC_CONFIG_AUX_DIR(autoconf) |
8 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
10 | AC_CONFIG_HEADER(config.h:autoconf/config.h.in) |
9 | |
11 | |
… | |
… | |
11 | |
13 | |
12 | dnl RXVT version |
14 | dnl RXVT version |
13 | changequote(, )dnl |
15 | changequote(, )dnl |
14 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
15 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
17 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
17 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
18 | dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
18 | changequote([, ])dnl |
19 | changequote([, ])dnl |
19 | AC_SUBST(VERSION)dnl |
20 | AC_SUBST(VERSION)dnl |
20 | AC_SUBST(DATE)dnl |
21 | AC_SUBST(DATE)dnl |
21 | AC_SUBST(LSMDATE)dnl |
22 | AC_SUBST(LSMDATE)dnl |
22 | AC_SUBST(LIBVERSION)dnl |
23 | AC_SUBST(LIBVERSION)dnl |
… | |
… | |
33 | AC_PROG_INSTALL |
34 | AC_PROG_INSTALL |
34 | AC_PROG_AWK |
35 | AC_PROG_AWK |
35 | |
36 | |
36 | AC_LANG(C) |
37 | AC_LANG(C) |
37 | |
38 | |
|
|
39 | dnl# -------------------------------------------------------------------------- |
|
|
40 | dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' |
|
|
41 | dnl# |
|
|
42 | if test -z "$orig_CXXFLAGS"; then |
|
|
43 | CXXFLAGS='-O' |
|
|
44 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
45 | CXXFLAGS="-g -O3" |
|
|
46 | fi |
|
|
47 | CFLAGS="$CXXFLAGS" |
|
|
48 | fi |
|
|
49 | |
38 | LINKER="$CXX" |
50 | LINKER="$CXX" |
39 | if test x$GCC = xyes && test x$GXX = xyes; then |
51 | if test x$GCC = xyes && test x$GXX = xyes; then |
40 | AC_CHECK_LIB(supc++, main, [ |
52 | AC_CHECK_LIB(supc++, main, [ |
41 | LINKER="$CC" |
53 | LINKER="$CC" |
42 | LIBS="$LIBS -lsupc++" |
54 | LIBS="$LIBS -lsupc++" |
… | |
… | |
63 | dnl# system hacks |
75 | dnl# system hacks |
64 | AC_AIX |
76 | AC_AIX |
65 | AC_ISC_POSIX |
77 | AC_ISC_POSIX |
66 | |
78 | |
67 | dnl# FreeBSD needs to link libxpg4 |
79 | dnl# FreeBSD needs to link libxpg4 |
68 | AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]) |
80 | AC_CHECK_FUNC(setlocale, [], [AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"])]) |
69 | |
81 | |
70 | dnl solaris needs to link libnsl and socket |
82 | dnl# solaris needs to link libnsl and socket |
71 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
83 | AC_CHECK_FUNC(gethostbyname, [], [AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])]) |
72 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
84 | AC_CHECK_FUNC(socket, [], [AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"])]) |
73 | |
85 | |
|
|
86 | dnl# more solaris |
|
|
87 | AC_CHECK_FUNC(sched_yield, [], [AC_CHECK_LIB(rt, sched_yield, [LIBS="$LIBS -lrt"])]) |
|
|
88 | |
|
|
89 | dnl# sched_yield to improve terminal efficiency |
|
|
90 | AC_MSG_CHECKING(for sched_yield support) |
|
|
91 | AC_TRY_LINK([#include <sched.h>],[sched_yield ()], |
|
|
92 | [AC_MSG_RESULT(yes) |
|
|
93 | AC_DEFINE(HAVE_SCHED_YIELD, 1, Define if you have sched-h and sched_yield)], |
|
|
94 | [AC_MSG_RESULT(no)]) |
|
|
95 | |
74 | AC_ENABLE_SHARED(no)dnl# libtool |
96 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
75 | AC_ENABLE_STATIC(yes)dnl# libtool |
97 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
76 | AC_PROG_LIBTOOL()dnl# libtool |
98 | dnl AC_PROG_LIBTOOL()dnl# libtool |
77 | |
99 | |
78 | MALLOC_TYPE=S |
100 | MALLOC_TYPE=S |
|
|
101 | |
79 | support_addstrings=no |
102 | support_addstrings=no |
80 | support_frills=no |
103 | support_frills=yes |
81 | support_inheritpixmap=no |
104 | support_inheritpixmap=no |
82 | support_tinting=no |
105 | support_tinting=yes |
83 | support_fading=no |
106 | support_fading=yes |
84 | support_keepscrolling=no |
107 | support_keepscrolling=yes |
85 | support_selectionscrolling=no |
108 | support_selectionscrolling=yes |
86 | support_menubar=no |
109 | support_menubar=no |
87 | support_mousewheel=no |
110 | support_mousewheel=yes |
88 | support_mouseslipwheel=no |
111 | support_mouseslipwheel=yes |
89 | support_utmp=no |
112 | support_utmp=yes |
90 | support_wtmp=no |
113 | support_wtmp=yes |
91 | support_lastlog=no |
114 | support_lastlog=yes |
92 | support_cursor_blink=no |
|
|
93 | support_text_blink=no |
115 | support_text_blink=yes |
94 | support_pointer_blank=no |
116 | support_pointer_blank=yes |
95 | support_scroll_rxvt=no |
117 | support_scroll_rxvt=yes |
96 | support_scroll_next=no |
118 | support_scroll_next=yes |
97 | support_scroll_xterm=no |
119 | support_scroll_xterm=yes |
98 | support_scroll_plain=no |
120 | support_scroll_plain=yes |
99 | support_xim=no |
121 | support_xim=yes |
100 | support_xpm=no |
122 | support_xpm=no |
101 | support_xft=no |
123 | support_xft=yes |
102 | support_unicode3=no |
124 | support_unicode3=no |
103 | support_combining=no |
125 | support_combining=yes |
104 | support_8bitctrls=no |
126 | support_8bitctrls=no |
105 | support_iso14755=no |
127 | support_iso14755=yes |
106 | support_styles=no |
128 | support_styles=yes |
107 | codesets= |
129 | codesets=all |
108 | |
130 | |
109 | dnl# -------------------------------------------------------------------------- |
131 | dnl# -------------------------------------------------------------------------- |
110 | dnl# CHECKING COMMAND LINE OPTIONS |
132 | dnl# CHECKING COMMAND LINE OPTIONS |
111 | dnl# -------------------------------------------------------------------------- |
133 | dnl# -------------------------------------------------------------------------- |
112 | |
134 | |
… | |
… | |
118 | |
140 | |
119 | AC_ARG_ENABLE(everything, |
141 | AC_ARG_ENABLE(everything, |
120 | [ --enable-everything enable standard non-multichoice features |
142 | [ --enable-everything enable standard non-multichoice features |
121 | NOTE: this option is order dependent |
143 | NOTE: this option is order dependent |
122 | NOTE: automatically enabled with --enable-shared], |
144 | NOTE: automatically enabled with --enable-shared], |
|
|
145 | [ |
|
|
146 | if test x$enableval = xno; then |
|
|
147 | support_24bit=no |
|
|
148 | support_frills=no |
|
|
149 | support_inheritpixmap=no |
|
|
150 | support_tinting=no |
|
|
151 | support_fading=no |
|
|
152 | support_keepscrolling=no |
|
|
153 | support_selectionscrolling=no |
|
|
154 | support_lastlog=no |
|
|
155 | support_menubar=no |
|
|
156 | support_mousewheel=no |
|
|
157 | support_mouseslipwheel=no |
|
|
158 | support_text_blink=no |
|
|
159 | support_pointer_blank=no |
|
|
160 | support_scroll_rxvt=no |
|
|
161 | support_scroll_next=no |
|
|
162 | support_scroll_xterm=no |
|
|
163 | support_scroll_plain=no |
|
|
164 | support_utmp=no |
|
|
165 | support_wtmp=no |
|
|
166 | support_xim=no |
|
|
167 | support_xpm=no |
|
|
168 | support_xft=no |
|
|
169 | support_unicode3=no |
|
|
170 | support_combining=no |
|
|
171 | support_8bitctrls=no |
|
|
172 | support_iso14755=no |
|
|
173 | support_styles=no |
|
|
174 | codesets= |
|
|
175 | fi |
123 | [if test x$enableval = xyes; then |
176 | if test x$enableval = xyes; then |
124 | support_24bit=yes |
177 | support_24bit=yes |
125 | support_frills=yes |
178 | support_frills=yes |
126 | support_inheritpixmap=yes |
179 | support_inheritpixmap=yes |
127 | support_tinting=yes |
180 | support_tinting=yes |
128 | support_fading=yes |
181 | support_fading=yes |
129 | support_keepscrolling=yes |
182 | support_keepscrolling=yes |
130 | support_selectionscrolling=yes |
183 | support_selectionscrolling=yes |
131 | support_lastlog=yes |
184 | support_lastlog=yes |
132 | support_menubar=yes |
185 | support_menubar=yes |
133 | support_mousewheel=yes |
186 | support_mousewheel=yes |
134 | support_mouseslipwheel=yes |
187 | support_mouseslipwheel=yes |
135 | support_cursor_blink=yes |
|
|
136 | support_text_blink=yes |
188 | support_text_blink=yes |
137 | support_pointer_blank=yes |
189 | support_pointer_blank=yes |
138 | support_scroll_rxvt=yes |
190 | support_scroll_rxvt=yes |
139 | support_scroll_next=yes |
191 | support_scroll_next=yes |
140 | support_scroll_xterm=yes |
192 | support_scroll_xterm=yes |
141 | support_scroll_plain=yes |
193 | support_scroll_plain=yes |
142 | support_utmp=yes |
194 | support_utmp=yes |
143 | support_wtmp=yes |
195 | support_wtmp=yes |
144 | support_xim=yes |
196 | support_xim=yes |
145 | support_xpm=yes |
197 | support_xpm=yes |
146 | support_xft=yes |
198 | support_xft=yes |
147 | support_unicode3=yes |
199 | support_unicode3=yes |
148 | support_combining=yes |
200 | support_combining=yes |
149 | #support_8bitctrls=yes |
201 | #support_8bitctrls=yes |
150 | support_iso14755=yes |
202 | support_iso14755=yes |
151 | support_styles=yes |
203 | support_styles=yes |
152 | codesets=all |
204 | codesets=all |
|
|
205 | fi |
153 | fi]) |
206 | ]) |
154 | |
207 | |
155 | AC_ARG_ENABLE(unicode3, |
208 | AC_ARG_ENABLE(unicode3, |
156 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
209 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
157 | [if test x$enableval = xyes -o x$enableval = xno; then |
210 | [if test x$enableval = xyes -o x$enableval = xno; then |
158 | support_unicode3=$enableval |
211 | support_unicode3=$enableval |
… | |
… | |
411 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
464 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
412 | [if test x$enableval = xyes; then |
465 | [if test x$enableval = xyes; then |
413 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
466 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
414 | fi]) |
467 | fi]) |
415 | |
468 | |
416 | AC_ARG_ENABLE(cursor-blink, |
|
|
417 | [ --enable-cursor-blink enable blinking cursor], |
|
|
418 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
419 | support_cursor_blink=$enableval |
|
|
420 | fi]) |
|
|
421 | |
|
|
422 | AC_ARG_ENABLE(text-blink, |
469 | AC_ARG_ENABLE(text-blink, |
423 | [ --enable-text-blink enable blinking text], |
470 | [ --enable-text-blink enable blinking text], |
424 | [if test x$enableval = xyes -o x$enableval = xno; then |
471 | [if test x$enableval = xyes -o x$enableval = xno; then |
425 | support_text_blink=$enableval |
472 | support_text_blink=$enableval |
426 | fi]) |
473 | fi]) |
… | |
… | |
444 | fi]) |
491 | fi]) |
445 | |
492 | |
446 | dnl# -------------------------------------------------------------------------- |
493 | dnl# -------------------------------------------------------------------------- |
447 | |
494 | |
448 | AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes) |
495 | AC_DEFINE(PROTOTYPES, 1, Define if you need function prototypes) |
449 | |
|
|
450 | dnl# -------------------------------------------------------------------------- |
|
|
451 | dnl# Supply default CFLAGS, if not specified by `CFLAGS=flags ./configure' |
|
|
452 | dnl# |
|
|
453 | if test -z "$CFLAGS"; then |
|
|
454 | if test -z "$CCOPTS"; then |
|
|
455 | CCOPTS='-O' |
|
|
456 | dnl> if test "x$GCC" = xyes; then |
|
|
457 | dnl> if test x$system = xLinux; then |
|
|
458 | dnl> CCOPTS="$CCOPTS "'-O2 -fno-strength-reduce' |
|
|
459 | dnl> fi |
|
|
460 | dnl> fi |
|
|
461 | fi |
|
|
462 | CFLAGS="$CCOPTS" |
|
|
463 | fi |
|
|
464 | |
496 | |
465 | AC_PATH_PROG(MV, mv, mv) |
497 | AC_PATH_PROG(MV, mv, mv) |
466 | AC_PATH_PROG(RM, rm, rm) |
498 | AC_PATH_PROG(RM, rm, rm) |
467 | AC_PATH_PROG(CP, cp, cp) |
499 | AC_PATH_PROG(CP, cp, cp) |
468 | AC_PATH_PROG(LN, ln, ln) |
500 | AC_PATH_PROG(LN, ln, ln) |
… | |
… | |
520 | sys/stropts.h \ |
552 | sys/stropts.h \ |
521 | sys/time.h \ |
553 | sys/time.h \ |
522 | utmp.h \ |
554 | utmp.h \ |
523 | utmpx.h \ |
555 | utmpx.h \ |
524 | stdint.h \ |
556 | stdint.h \ |
|
|
557 | pty.h \ |
|
|
558 | wchar.h \ |
|
|
559 | cwchar \ |
|
|
560 | clocale \ |
525 | ) |
561 | ) |
526 | |
562 | |
527 | AC_HEADER_TIME |
563 | AC_HEADER_TIME |
528 | |
564 | |
529 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
565 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
… | |
… | |
607 | |
643 | |
608 | dnl# see usage below |
644 | dnl# see usage below |
609 | AC_DEFUN(RXVT_CHECK_SIZE, |
645 | AC_DEFUN(RXVT_CHECK_SIZE, |
610 | [AC_CACHE_CHECK([for $2], $1, |
646 | [AC_CACHE_CHECK([for $2], $1, |
611 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
647 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
612 | if test $ac_cv_sizeof_char -ge $3; then |
648 | if test "$ac_cv_sizeof_char" -ge $3; then |
613 | $1="$4 char" |
649 | $1="$4 char" |
614 | else |
650 | else |
615 | if test $ac_cv_sizeof_short -ge $3; then |
651 | if test "$ac_cv_sizeof_short" -ge $3; then |
616 | $1="$4 short" |
652 | $1="$4 short" |
617 | else |
653 | else |
618 | if test $ac_cv_sizeof_int -ge $3; then |
654 | if test "$ac_cv_sizeof_int" -ge $3; then |
619 | $1="$4 int" |
655 | $1="$4 int" |
620 | else |
656 | else |
621 | if test $ac_cv_sizeof_long -ge $3; then |
657 | if test "$ac_cv_sizeof_long" -ge $3; then |
622 | $1="$4 long" |
658 | $1="$4 long" |
623 | else |
659 | else |
624 | if test $ac_cv_sizeof_long_long -ge $3; then |
660 | if test "$ac_cv_sizeof_long_long" -ge $3; then |
625 | $1="$4 long long" |
661 | $1="$4 long long" |
626 | else |
662 | else |
627 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
663 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
628 | fi |
664 | fi |
629 | fi |
665 | fi |
… | |
… | |
656 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
692 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
657 | dnl AC_SUBST(rxvt_uint64_typedef) |
693 | dnl AC_SUBST(rxvt_uint64_typedef) |
658 | dnl# |
694 | dnl# |
659 | dnl# Now look for another we use |
695 | dnl# Now look for another we use |
660 | dnl# |
696 | dnl# |
661 | if test $ac_cv_sizeof_int_p -eq 8; then |
697 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
662 | rxvt_intp_define="#define intp_t int64_t" |
698 | rxvt_intp_define="#define intp_t int64_t" |
663 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
699 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
664 | else |
700 | else |
665 | if test $ac_cv_sizeof_int_p -eq 4; then |
701 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
666 | rxvt_intp_define="#define intp_t int32_t" |
702 | rxvt_intp_define="#define intp_t int32_t" |
667 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
703 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
668 | else |
704 | else |
669 | if test $ac_cv_sizeof_int_p -eq 2; then |
705 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
670 | rxvt_intp_define="#define intp_t int16_t" |
706 | rxvt_intp_define="#define intp_t int16_t" |
671 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
707 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
672 | else |
708 | else |
673 | rxvt_intp_define="#error set intp_t" |
709 | rxvt_intp_define="#error set intp_t" |
674 | rxvt_u_intp_define="#error set u_intp_t" |
710 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
706 | unlockpt \ |
742 | unlockpt \ |
707 | isastream \ |
743 | isastream \ |
708 | on_exit \ |
744 | on_exit \ |
709 | nanosleep \ |
745 | nanosleep \ |
710 | updwtmp \ |
746 | updwtmp \ |
|
|
747 | updwtmpx \ |
711 | ttyslot \ |
748 | ttyslot \ |
712 | ) |
749 | ) |
713 | dnl# Note: On NetBSD, openpty() exists in libutil. Don't pull it in |
750 | dnl# Note: On NetBSD, openpty() exists in libutil. Don't pull it in |
714 | |
751 | |
715 | dnl# -------------------------------------------------------------------------- |
752 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
758 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
795 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
759 | #include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[rxvt_cv_struct_utmpx_host=yes],[rxvt_cv_struct_utmpx_host=no])]) |
796 | #include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[rxvt_cv_struct_utmpx_host=yes],[rxvt_cv_struct_utmpx_host=no])]) |
760 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
797 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
761 | AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host) |
798 | AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host) |
762 | fi |
799 | fi |
|
|
800 | |
|
|
801 | AC_CACHE_CHECK(for session in utmpx struct, rxvt_cv_struct_utmpx_session, |
|
|
802 | [AC_TRY_COMPILE([#include <sys/types.h> |
|
|
803 | #include <utmpx.h>], |
|
|
804 | [struct utmpx utx; utx.ut_session;], |
|
|
805 | rxvt_cv_struct_utmpx_session=yes, rxvt_cv_struct_utmpx_session=no)]) |
|
|
806 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
807 | AC_DEFINE(HAVE_UTMPX_SESSION, 1, Define if struct utmpx contains ut_session) |
|
|
808 | fi |
763 | ) dnl# AC_CHECK_HEADER(utmpx.h |
809 | ) dnl# AC_CHECK_HEADER(utmpx.h |
764 | |
|
|
765 | |
810 | |
766 | dnl# -------------------------------------------------------------------------- |
811 | dnl# -------------------------------------------------------------------------- |
767 | dnl# check for struct lastlog |
812 | dnl# check for struct lastlog |
768 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
813 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
769 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
814 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
… | |
… | |
1079 | |
1124 | |
1080 | AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, |
1125 | AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, |
1081 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
1126 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
1082 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
1127 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
1083 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
1128 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
|
|
1129 | fi |
|
|
1130 | |
|
|
1131 | AC_CACHE_CHECK(for unix-compliant filehandle passing ability, rxvt_can_pass_fds, |
|
|
1132 | [AC_TRY_LINK([ |
|
|
1133 | #include <sys/types.h> |
|
|
1134 | #include <sys/socket.h> |
|
|
1135 | ],[ |
|
|
1136 | { |
|
|
1137 | msghdr msg; |
|
|
1138 | iovec iov; |
|
|
1139 | char buf [100]; |
|
|
1140 | char data = 0; |
|
|
1141 | |
|
|
1142 | iov.iov_base = &data; |
|
|
1143 | iov.iov_len = 1; |
|
|
1144 | |
|
|
1145 | msg.msg_iov = &iov; |
|
|
1146 | msg.msg_iovlen = 1; |
|
|
1147 | msg.msg_control = buf; |
|
|
1148 | msg.msg_controllen = sizeof buf; |
|
|
1149 | |
|
|
1150 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
1151 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
1152 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
1153 | cmsg->cmsg_len = 100; |
|
|
1154 | |
|
|
1155 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
1156 | |
|
|
1157 | return sendmsg (3, &msg, 0); |
|
|
1158 | } |
|
|
1159 | ],[rxvt_can_pass_fds=yes],[rxvt_can_pass_fds=no])]) |
|
|
1160 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
1161 | AC_DEFINE(HAVE_UNIX_FDPASS, 1, Define if sys/socket.h defines the necessary macros/functions for file handle passing) |
1084 | fi |
1162 | fi |
1085 | |
1163 | |
1086 | AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb, |
1164 | AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb, |
1087 | [AC_COMPILE_IFELSE([ |
1165 | [AC_COMPILE_IFELSE([ |
1088 | #include <X11/Xlib.h> |
1166 | #include <X11/Xlib.h> |
… | |
… | |
1270 | scrolltypes="$scrolltypes plain" |
1348 | scrolltypes="$scrolltypes plain" |
1271 | fi |
1349 | fi |
1272 | if test x$support_pointer_blank = xyes; then |
1350 | if test x$support_pointer_blank = xyes; then |
1273 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1351 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1274 | fi |
1352 | fi |
1275 | if test x$support_cursor_blink = xyes; then |
|
|
1276 | AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) |
|
|
1277 | fi |
|
|
1278 | if test x$support_text_blink = xyes; then |
1353 | if test x$support_text_blink = xyes; then |
1279 | AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support) |
1354 | AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support) |
1280 | fi |
1355 | fi |
1281 | if test x$support_unicode3 = xyes; then |
1356 | if test x$support_unicode3 = xyes; then |
1282 | AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) |
1357 | AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) |
… | |
… | |
1362 | |
1437 | |
1363 | AC_CONFIG_FILES([autoconf/Make.common \ |
1438 | AC_CONFIG_FILES([autoconf/Make.common \ |
1364 | Makefile \ |
1439 | Makefile \ |
1365 | doc/Makefile \ |
1440 | doc/Makefile \ |
1366 | src/Makefile \ |
1441 | src/Makefile \ |
1367 | src/test/Makefile \ |
|
|
1368 | src/rxvtlib.h \ |
1442 | src/rxvtlib.h \ |
1369 | W11/Makefile \ |
|
|
1370 | ]) |
1443 | ]) |
1371 | AC_OUTPUT |
1444 | AC_OUTPUT |
1372 | |
1445 | |
1373 | echo "Configuration: |
1446 | echo "Configuration: |
1374 | |
1447 | |
… | |
… | |
1444 | echo ". functions could not be found. ." |
1517 | echo ". functions could not be found. ." |
1445 | echo ". XIM is now being DISABLED! ." |
1518 | echo ". XIM is now being DISABLED! ." |
1446 | echo ".----------------------------------------------------------------." |
1519 | echo ".----------------------------------------------------------------." |
1447 | fi |
1520 | fi |
1448 | |
1521 | |
1449 | echo " *** Please check src/feature.h for further options ***" |
1522 | echo " *** Optionally check src/feature.h for further options ***" |
1450 | echo |
1523 | echo |
1451 | |
1524 | |
1452 | echo ".----------------------------------------------------------------." |
1525 | echo ".----------------------------------------------------------------." |
1453 | echo ". NOTE: most features are disabled by default, try ." |
1526 | echo ". NOTE: some features are disabled by default, try ." |
1454 | echo ". configure --help to get an idea of the optional features ." |
1527 | echo ". configure --help to get an idea of the optional features, ." |
|
|
1528 | echo ". or read ./README.configure ." |
|
|
1529 | echo ". ." |
|
|
1530 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
1531 | echo ". you do not want to read documentation and still want some ." |
|
|
1532 | echo ". useful features. ." |
1455 | echo ".----------------------------------------------------------------." |
1533 | echo ".----------------------------------------------------------------." |
1456 | echo |
1534 | echo |
1457 | |
1535 | |