… | |
… | |
13 | |
13 | |
14 | dnl RXVT version |
14 | dnl RXVT version |
15 | changequote(, )dnl |
15 | changequote(, )dnl |
16 | 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` |
17 | 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` |
18 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
19 | 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` |
20 | changequote([, ])dnl |
19 | changequote([, ])dnl |
21 | AC_SUBST(VERSION)dnl |
20 | AC_SUBST(VERSION)dnl |
22 | AC_SUBST(DATE)dnl |
21 | AC_SUBST(DATE)dnl |
23 | AC_SUBST(LSMDATE)dnl |
22 | AC_SUBST(LSMDATE)dnl |
24 | AC_SUBST(LIBVERSION)dnl |
23 | AC_SUBST(LIBVERSION)dnl |
… | |
… | |
82 | |
81 | |
83 | dnl solaris needs to link libnsl and socket |
82 | dnl solaris needs to link libnsl and socket |
84 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
83 | AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"]) |
85 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
84 | AC_CHECK_LIB(socket, socket, [LIBS="$LIBS -lsocket"]) |
86 | |
85 | |
87 | AC_ENABLE_SHARED(no)dnl# libtool |
86 | dnl AC_ENABLE_SHARED(no)dnl# libtool |
88 | AC_ENABLE_STATIC(yes)dnl# libtool |
87 | dnl AC_ENABLE_STATIC(yes)dnl# libtool |
89 | AC_PROG_LIBTOOL()dnl# libtool |
88 | dnl AC_PROG_LIBTOOL()dnl# libtool |
90 | |
89 | |
91 | MALLOC_TYPE=S |
90 | MALLOC_TYPE=S |
|
|
91 | |
92 | support_addstrings=no |
92 | support_addstrings=no |
93 | support_frills=no |
93 | support_frills=yes |
94 | support_inheritpixmap=no |
94 | support_inheritpixmap=no |
95 | support_tinting=no |
95 | support_tinting=yes |
96 | support_fading=no |
96 | support_fading=yes |
97 | support_keepscrolling=no |
97 | support_keepscrolling=yes |
98 | support_selectionscrolling=no |
98 | support_selectionscrolling=yes |
99 | support_menubar=no |
99 | support_menubar=no |
100 | support_mousewheel=no |
100 | support_mousewheel=yes |
101 | support_mouseslipwheel=no |
101 | support_mouseslipwheel=yes |
102 | support_utmp=no |
102 | support_utmp=yes |
103 | support_wtmp=no |
103 | support_wtmp=yes |
104 | support_lastlog=no |
104 | support_lastlog=yes |
105 | support_cursor_blink=no |
|
|
106 | support_text_blink=no |
105 | support_text_blink=yes |
107 | support_pointer_blank=no |
106 | support_pointer_blank=yes |
108 | support_scroll_rxvt=no |
107 | support_scroll_rxvt=yes |
109 | support_scroll_next=no |
108 | support_scroll_next=yes |
110 | support_scroll_xterm=no |
109 | support_scroll_xterm=yes |
111 | support_scroll_plain=no |
110 | support_scroll_plain=yes |
112 | support_xim=no |
111 | support_xim=yes |
113 | support_xpm=no |
112 | support_xpm=no |
114 | support_xft=no |
113 | support_xft=yes |
115 | support_unicode3=no |
114 | support_unicode3=no |
116 | support_combining=no |
115 | support_combining=yes |
117 | support_8bitctrls=no |
116 | support_8bitctrls=no |
118 | support_iso14755=no |
117 | support_iso14755=yes |
119 | support_styles=no |
118 | support_styles=yes |
120 | codesets= |
119 | codesets=all |
121 | |
120 | |
122 | dnl# -------------------------------------------------------------------------- |
121 | dnl# -------------------------------------------------------------------------- |
123 | dnl# CHECKING COMMAND LINE OPTIONS |
122 | dnl# CHECKING COMMAND LINE OPTIONS |
124 | dnl# -------------------------------------------------------------------------- |
123 | dnl# -------------------------------------------------------------------------- |
125 | |
124 | |
… | |
… | |
131 | |
130 | |
132 | AC_ARG_ENABLE(everything, |
131 | AC_ARG_ENABLE(everything, |
133 | [ --enable-everything enable standard non-multichoice features |
132 | [ --enable-everything enable standard non-multichoice features |
134 | NOTE: this option is order dependent |
133 | NOTE: this option is order dependent |
135 | NOTE: automatically enabled with --enable-shared], |
134 | NOTE: automatically enabled with --enable-shared], |
|
|
135 | [ |
|
|
136 | if test x$enableval = xno; then |
|
|
137 | support_24bit=no |
|
|
138 | support_frills=no |
|
|
139 | support_inheritpixmap=no |
|
|
140 | support_tinting=no |
|
|
141 | support_fading=no |
|
|
142 | support_keepscrolling=no |
|
|
143 | support_selectionscrolling=no |
|
|
144 | support_lastlog=no |
|
|
145 | support_menubar=no |
|
|
146 | support_mousewheel=no |
|
|
147 | support_mouseslipwheel=no |
|
|
148 | support_text_blink=no |
|
|
149 | support_pointer_blank=no |
|
|
150 | support_scroll_rxvt=no |
|
|
151 | support_scroll_next=no |
|
|
152 | support_scroll_xterm=no |
|
|
153 | support_scroll_plain=no |
|
|
154 | support_utmp=no |
|
|
155 | support_wtmp=no |
|
|
156 | support_xim=no |
|
|
157 | support_xpm=no |
|
|
158 | support_xft=no |
|
|
159 | support_unicode3=no |
|
|
160 | support_combining=no |
|
|
161 | support_8bitctrls=no |
|
|
162 | support_iso14755=no |
|
|
163 | support_styles=no |
|
|
164 | codesets= |
|
|
165 | fi |
136 | [if test x$enableval = xyes; then |
166 | if test x$enableval = xyes; then |
137 | support_24bit=yes |
167 | support_24bit=yes |
138 | support_frills=yes |
168 | support_frills=yes |
139 | support_inheritpixmap=yes |
169 | support_inheritpixmap=yes |
140 | support_tinting=yes |
170 | support_tinting=yes |
141 | support_fading=yes |
171 | support_fading=yes |
142 | support_keepscrolling=yes |
172 | support_keepscrolling=yes |
143 | support_selectionscrolling=yes |
173 | support_selectionscrolling=yes |
144 | support_lastlog=yes |
174 | support_lastlog=yes |
145 | support_menubar=yes |
175 | support_menubar=yes |
146 | support_mousewheel=yes |
176 | support_mousewheel=yes |
147 | support_mouseslipwheel=yes |
177 | support_mouseslipwheel=yes |
148 | support_cursor_blink=yes |
|
|
149 | support_text_blink=yes |
178 | support_text_blink=yes |
150 | support_pointer_blank=yes |
179 | support_pointer_blank=yes |
151 | support_scroll_rxvt=yes |
180 | support_scroll_rxvt=yes |
152 | support_scroll_next=yes |
181 | support_scroll_next=yes |
153 | support_scroll_xterm=yes |
182 | support_scroll_xterm=yes |
154 | support_scroll_plain=yes |
183 | support_scroll_plain=yes |
155 | support_utmp=yes |
184 | support_utmp=yes |
156 | support_wtmp=yes |
185 | support_wtmp=yes |
157 | support_xim=yes |
186 | support_xim=yes |
158 | support_xpm=yes |
187 | support_xpm=yes |
159 | support_xft=yes |
188 | support_xft=yes |
160 | support_unicode3=yes |
189 | support_unicode3=yes |
161 | support_combining=yes |
190 | support_combining=yes |
162 | #support_8bitctrls=yes |
191 | #support_8bitctrls=yes |
163 | support_iso14755=yes |
192 | support_iso14755=yes |
164 | support_styles=yes |
193 | support_styles=yes |
165 | codesets=all |
194 | codesets=all |
|
|
195 | fi |
166 | fi]) |
196 | ]) |
167 | |
197 | |
168 | AC_ARG_ENABLE(unicode3, |
198 | AC_ARG_ENABLE(unicode3, |
169 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
199 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
170 | [if test x$enableval = xyes -o x$enableval = xno; then |
200 | [if test x$enableval = xyes -o x$enableval = xno; then |
171 | support_unicode3=$enableval |
201 | support_unicode3=$enableval |
… | |
… | |
422 | |
452 | |
423 | AC_ARG_ENABLE(smart-resize, |
453 | AC_ARG_ENABLE(smart-resize, |
424 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
454 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
425 | [if test x$enableval = xyes; then |
455 | [if test x$enableval = xyes; then |
426 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
456 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
427 | fi]) |
|
|
428 | |
|
|
429 | AC_ARG_ENABLE(cursor-blink, |
|
|
430 | [ --enable-cursor-blink enable blinking cursor], |
|
|
431 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
432 | support_cursor_blink=$enableval |
|
|
433 | fi]) |
457 | fi]) |
434 | |
458 | |
435 | AC_ARG_ENABLE(text-blink, |
459 | AC_ARG_ENABLE(text-blink, |
436 | [ --enable-text-blink enable blinking text], |
460 | [ --enable-text-blink enable blinking text], |
437 | [if test x$enableval = xyes -o x$enableval = xno; then |
461 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
519 | sys/time.h \ |
543 | sys/time.h \ |
520 | utmp.h \ |
544 | utmp.h \ |
521 | utmpx.h \ |
545 | utmpx.h \ |
522 | stdint.h \ |
546 | stdint.h \ |
523 | pty.h \ |
547 | pty.h \ |
|
|
548 | wchar.h \ |
|
|
549 | cwchar \ |
|
|
550 | clocale \ |
524 | ) |
551 | ) |
525 | |
552 | |
526 | AC_HEADER_TIME |
553 | AC_HEADER_TIME |
527 | |
554 | |
528 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
555 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
… | |
… | |
606 | |
633 | |
607 | dnl# see usage below |
634 | dnl# see usage below |
608 | AC_DEFUN(RXVT_CHECK_SIZE, |
635 | AC_DEFUN(RXVT_CHECK_SIZE, |
609 | [AC_CACHE_CHECK([for $2], $1, |
636 | [AC_CACHE_CHECK([for $2], $1, |
610 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
637 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
611 | if test $ac_cv_sizeof_char -ge $3; then |
638 | if test "$ac_cv_sizeof_char" -ge $3; then |
612 | $1="$4 char" |
639 | $1="$4 char" |
613 | else |
640 | else |
614 | if test $ac_cv_sizeof_short -ge $3; then |
641 | if test "$ac_cv_sizeof_short" -ge $3; then |
615 | $1="$4 short" |
642 | $1="$4 short" |
616 | else |
643 | else |
617 | if test $ac_cv_sizeof_int -ge $3; then |
644 | if test "$ac_cv_sizeof_int" -ge $3; then |
618 | $1="$4 int" |
645 | $1="$4 int" |
619 | else |
646 | else |
620 | if test $ac_cv_sizeof_long -ge $3; then |
647 | if test "$ac_cv_sizeof_long" -ge $3; then |
621 | $1="$4 long" |
648 | $1="$4 long" |
622 | else |
649 | else |
623 | if test $ac_cv_sizeof_long_long -ge $3; then |
650 | if test "$ac_cv_sizeof_long_long" -ge $3; then |
624 | $1="$4 long long" |
651 | $1="$4 long long" |
625 | else |
652 | else |
626 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
653 | $1="$4 $5" # we _must_ have a (possibly wrong) default |
627 | fi |
654 | fi |
628 | fi |
655 | fi |
… | |
… | |
655 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
682 | dnl RXVT_CHECK_SIZE(rxvt_cv_uint64_t, uint64_t, 8, unsigned, long long, rxvt_uint64_typedef) |
656 | dnl AC_SUBST(rxvt_uint64_typedef) |
683 | dnl AC_SUBST(rxvt_uint64_typedef) |
657 | dnl# |
684 | dnl# |
658 | dnl# Now look for another we use |
685 | dnl# Now look for another we use |
659 | dnl# |
686 | dnl# |
660 | if test $ac_cv_sizeof_int_p -eq 8; then |
687 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
661 | rxvt_intp_define="#define intp_t int64_t" |
688 | rxvt_intp_define="#define intp_t int64_t" |
662 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
689 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
663 | else |
690 | else |
664 | if test $ac_cv_sizeof_int_p -eq 4; then |
691 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
665 | rxvt_intp_define="#define intp_t int32_t" |
692 | rxvt_intp_define="#define intp_t int32_t" |
666 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
693 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
667 | else |
694 | else |
668 | if test $ac_cv_sizeof_int_p -eq 2; then |
695 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
669 | rxvt_intp_define="#define intp_t int16_t" |
696 | rxvt_intp_define="#define intp_t int16_t" |
670 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
697 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
671 | else |
698 | else |
672 | rxvt_intp_define="#error set intp_t" |
699 | rxvt_intp_define="#error set intp_t" |
673 | rxvt_u_intp_define="#error set u_intp_t" |
700 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
705 | unlockpt \ |
732 | unlockpt \ |
706 | isastream \ |
733 | isastream \ |
707 | on_exit \ |
734 | on_exit \ |
708 | nanosleep \ |
735 | nanosleep \ |
709 | updwtmp \ |
736 | updwtmp \ |
|
|
737 | updwtmpx \ |
710 | ttyslot \ |
738 | ttyslot \ |
711 | ) |
739 | ) |
712 | dnl# Note: On NetBSD, openpty() exists in libutil. Don't pull it in |
740 | dnl# Note: On NetBSD, openpty() exists in libutil. Don't pull it in |
713 | |
741 | |
714 | dnl# -------------------------------------------------------------------------- |
742 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
757 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
785 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
758 | #include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[rxvt_cv_struct_utmpx_host=yes],[rxvt_cv_struct_utmpx_host=no])]) |
786 | #include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[rxvt_cv_struct_utmpx_host=yes],[rxvt_cv_struct_utmpx_host=no])]) |
759 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
787 | if test x$rxvt_cv_struct_utmpx_host = xyes; then |
760 | AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host) |
788 | AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host) |
761 | fi |
789 | fi |
|
|
790 | |
|
|
791 | AC_CACHE_CHECK(for session in utmpx struct, rxvt_cv_struct_utmpx_session, |
|
|
792 | [AC_TRY_COMPILE([#include <sys/types.h> |
|
|
793 | #include <utmpx.h>], |
|
|
794 | [struct utmpx utx; utx.ut_session;], |
|
|
795 | rxvt_cv_struct_utmpx_session=yes, rxvt_cv_struct_utmpx_session=no)]) |
|
|
796 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
797 | AC_DEFINE(HAVE_UTMPX_SESSION, 1, Define if struct utmpx contains ut_session) |
|
|
798 | fi |
762 | ) dnl# AC_CHECK_HEADER(utmpx.h |
799 | ) dnl# AC_CHECK_HEADER(utmpx.h |
763 | |
|
|
764 | |
800 | |
765 | dnl# -------------------------------------------------------------------------- |
801 | dnl# -------------------------------------------------------------------------- |
766 | dnl# check for struct lastlog |
802 | dnl# check for struct lastlog |
767 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
803 | AC_CACHE_CHECK(for struct lastlog, rxvt_cv_struct_lastlog, |
768 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
804 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
… | |
… | |
1269 | scrolltypes="$scrolltypes plain" |
1305 | scrolltypes="$scrolltypes plain" |
1270 | fi |
1306 | fi |
1271 | if test x$support_pointer_blank = xyes; then |
1307 | if test x$support_pointer_blank = xyes; then |
1272 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1308 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1273 | fi |
1309 | fi |
1274 | if test x$support_cursor_blink = xyes; then |
|
|
1275 | AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) |
|
|
1276 | fi |
|
|
1277 | if test x$support_text_blink = xyes; then |
1310 | if test x$support_text_blink = xyes; then |
1278 | AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support) |
1311 | AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support) |
1279 | fi |
1312 | fi |
1280 | if test x$support_unicode3 = xyes; then |
1313 | if test x$support_unicode3 = xyes; then |
1281 | AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) |
1314 | AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) |
… | |
… | |
1361 | |
1394 | |
1362 | AC_CONFIG_FILES([autoconf/Make.common \ |
1395 | AC_CONFIG_FILES([autoconf/Make.common \ |
1363 | Makefile \ |
1396 | Makefile \ |
1364 | doc/Makefile \ |
1397 | doc/Makefile \ |
1365 | src/Makefile \ |
1398 | src/Makefile \ |
1366 | src/test/Makefile \ |
|
|
1367 | src/rxvtlib.h \ |
1399 | src/rxvtlib.h \ |
1368 | ]) |
1400 | ]) |
1369 | AC_OUTPUT |
1401 | AC_OUTPUT |
1370 | |
1402 | |
1371 | echo "Configuration: |
1403 | echo "Configuration: |
… | |
… | |
1442 | echo ". functions could not be found. ." |
1474 | echo ". functions could not be found. ." |
1443 | echo ". XIM is now being DISABLED! ." |
1475 | echo ". XIM is now being DISABLED! ." |
1444 | echo ".----------------------------------------------------------------." |
1476 | echo ".----------------------------------------------------------------." |
1445 | fi |
1477 | fi |
1446 | |
1478 | |
1447 | echo " *** Please check src/feature.h for further options ***" |
1479 | echo " *** Optionally check src/feature.h for further options ***" |
1448 | echo |
1480 | echo |
1449 | |
1481 | |
1450 | echo ".----------------------------------------------------------------." |
1482 | echo ".----------------------------------------------------------------." |
1451 | echo ". NOTE: most features are disabled by default, try ." |
1483 | echo ". NOTE: some features are disabled by default, try ." |
1452 | echo ". configure --help to get an idea of the optional features ." |
1484 | echo ". configure --help to get an idea of the optional features, ." |
|
|
1485 | echo ". or read ./README.configure ." |
|
|
1486 | echo ". ." |
|
|
1487 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
1488 | echo ". you do not want to read documentation and still want some ." |
|
|
1489 | echo ". useful features. ." |
1453 | echo ".----------------------------------------------------------------." |
1490 | echo ".----------------------------------------------------------------." |
1454 | echo |
1491 | echo |
1455 | |
1492 | |