1 | dnl# -*- sh -*- |
1 | dnl# -*- sh -*- |
2 | dnl# |
|
|
3 | dnl# $Id: configure.in,v 1.6 2004/01/29 21:34:14 pcg Exp $ |
|
|
4 | dnl# |
2 | dnl# |
5 | dnl# Process this file with autoconf to produce a configure script. |
3 | dnl# Process this file with autoconf to produce a configure script. |
6 | dnl# |
4 | dnl# |
7 | AC_INIT(src/feature.h) |
5 | AC_INIT(src/feature.h) |
8 | AC_CONFIG_AUX_DIR(autoconf) |
6 | AC_CONFIG_AUX_DIR(autoconf) |
… | |
… | |
58 | support_text_blink=no |
56 | support_text_blink=no |
59 | support_pointer_blank=no |
57 | support_pointer_blank=no |
60 | support_scroll_rxvt=no |
58 | support_scroll_rxvt=no |
61 | support_scroll_next=no |
59 | support_scroll_next=no |
62 | support_scroll_xterm=no |
60 | support_scroll_xterm=no |
|
|
61 | support_scroll_plain=no |
63 | support_xim=no |
62 | support_xim=no |
64 | support_xpm=no |
63 | support_xpm=no |
65 | support_xft=no |
64 | support_xft=no |
66 | support_unicode3=no |
65 | support_unicode3=no |
67 | codesets= |
66 | codesets= |
… | |
… | |
96 | support_text_blink=yes |
95 | support_text_blink=yes |
97 | support_pointer_blank=yes |
96 | support_pointer_blank=yes |
98 | support_scroll_rxvt=yes |
97 | support_scroll_rxvt=yes |
99 | support_scroll_next=yes |
98 | support_scroll_next=yes |
100 | support_scroll_xterm=yes |
99 | support_scroll_xterm=yes |
|
|
100 | support_scroll_plain=yes |
101 | support_utmp=yes |
101 | support_utmp=yes |
102 | support_wtmp=yes |
102 | support_wtmp=yes |
103 | support_xim=yes |
103 | support_xim=yes |
104 | support_xpm=yes |
104 | support_xpm=yes |
105 | support_xft=yes |
105 | support_xft=yes |
106 | support_unicode3=yes |
106 | support_unicode3=yes |
107 | codesets=all |
107 | codesets=all |
108 | fi]) |
108 | fi]) |
109 | |
109 | |
110 | echo |
|
|
111 | if test x$support_inheritpixmap = xyes; then |
|
|
112 | support_inheritpixmap=no |
|
|
113 | echo "******* transparency support disabled, does not work" |
|
|
114 | fi |
|
|
115 | if test x$support_xpm = xyes; then |
|
|
116 | support_xpm=no |
|
|
117 | echo "******* pixmap support disabled, does not work" |
|
|
118 | fi |
|
|
119 | if test x$support_menubar = xyes; then |
|
|
120 | support_menubar=no |
|
|
121 | echo "******* menubar support disabled, does not work" |
|
|
122 | fi |
|
|
123 | echo |
|
|
124 | |
|
|
125 | AC_ARG_ENABLE(unicode3, |
110 | AC_ARG_ENABLE(unicode3, |
126 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
111 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
127 | [if test x$enableval = xyes; then |
112 | [if test x$enableval = xyes; then |
128 | support_unicode3=yes |
113 | support_unicode3=yes |
129 | fi]) |
114 | fi]) |
… | |
… | |
147 | withval=`echo $withval | tr '[a-z]' '[A-Z]'` |
132 | withval=`echo $withval | tr '[a-z]' '[A-Z]'` |
148 | AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding) |
133 | AC_DEFINE_UNQUOTED(MULTICHAR_ENCODING, $withval, Define default multichar glyph encoding) |
149 | fi]) |
134 | fi]) |
150 | |
135 | |
151 | AC_ARG_ENABLE(utmp, |
136 | AC_ARG_ENABLE(utmp, |
152 | [ --enable-utmp enable utmp (utmpx) support *], |
137 | [ --enable-utmp enable utmp (utmpx) support], |
153 | [if test x$enableval = xyes -o x$enableval = xno; then |
138 | [if test x$enableval = xyes -o x$enableval = xno; then |
154 | support_utmp=$enableval |
139 | support_utmp=$enableval |
155 | fi]) |
140 | fi]) |
156 | |
141 | |
157 | AC_ARG_ENABLE(wtmp, |
142 | AC_ARG_ENABLE(wtmp, |
158 | [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)*], |
143 | [ --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)], |
159 | [if test x$enableval = xyes -o x$enableval = xno; then |
144 | [if test x$enableval = xyes -o x$enableval = xno; then |
160 | support_wtmp=$enableval |
145 | support_wtmp=$enableval |
161 | fi]) |
146 | fi]) |
162 | |
147 | |
163 | AC_ARG_ENABLE(lastlog, |
148 | AC_ARG_ENABLE(lastlog, |
164 | [ --enable-lastlog enable lastlog support (requires --enable-utmp) *], |
149 | [ --enable-lastlog enable lastlog support (requires --enable-utmp)], |
165 | [if test x$enableval = xyes -o x$enableval = xno; then |
150 | [if test x$enableval = xyes -o x$enableval = xno; then |
166 | support_lastlog=$enableval |
151 | support_lastlog=$enableval |
167 | fi]) |
152 | fi]) |
168 | |
153 | |
169 | AC_ARG_ENABLE(xpm-background, |
154 | AC_ARG_ENABLE(xpm-background, |
170 | [ --enable-xpm-background enable XPM background pixmaps *], |
155 | [ --enable-xpm-background enable XPM background pixmaps], |
171 | [if test x$enableval = xyes -o x$enableval = xno; then |
156 | [if test x$enableval = xyes -o x$enableval = xno; then |
172 | support_xpm=$enableval |
157 | support_xpm=$enableval |
173 | fi]) |
158 | fi]) |
174 | |
159 | |
175 | AC_ARG_ENABLE(transparency, |
160 | AC_ARG_ENABLE(transparency, |
176 | [ --enable-transparency enable transparent backgrounds *], |
161 | [ --enable-transparency enable transparent backgrounds], |
177 | [if test x$enableval = xyes -o x$enableval = xno; then |
162 | [if test x$enableval = xyes -o x$enableval = xno; then |
178 | support_inheritpixmap=$enableval |
163 | support_inheritpixmap=$enableval |
179 | fi]) |
164 | fi]) |
180 | |
165 | |
181 | AC_ARG_ENABLE(menubar, |
166 | AC_ARG_ENABLE(menubar, |
182 | [ --enable-menubar enable menubar *], |
167 | [ --enable-menubar enable menubar], |
183 | [if test x$enableval = xyes -o x$enableval = xno; then |
168 | [if test x$enableval = xyes -o x$enableval = xno; then |
184 | support_menubar=$enableval |
169 | support_menubar=$enableval |
185 | fi]) |
170 | fi]) |
186 | |
171 | |
187 | AC_ARG_ENABLE(rxvt-scroll, |
172 | AC_ARG_ENABLE(rxvt-scroll, |
188 | [ --enable-rxvt-scroll enable rxvt style scrollbar *], |
173 | [ --enable-rxvt-scroll enable rxvt style scrollbar], |
189 | [if test x$enableval = xyes -o x$enableval = xno; then |
174 | [if test x$enableval = xyes -o x$enableval = xno; then |
190 | support_scroll_rxvt=$enableval |
175 | support_scroll_rxvt=$enableval |
191 | fi]) |
176 | fi]) |
192 | |
177 | |
193 | AC_ARG_ENABLE(next-scroll, |
178 | AC_ARG_ENABLE(next-scroll, |
194 | [ --enable-next-scroll enable NeXT style scrollbar *], |
179 | [ --enable-next-scroll enable NeXT style scrollbar], |
195 | [if test x$enableval = xyes -o x$enableval = xno; then |
180 | [if test x$enableval = xyes -o x$enableval = xno; then |
196 | support_scroll_next=$enableval |
181 | support_scroll_next=$enableval |
197 | fi]) |
182 | fi]) |
198 | |
183 | |
199 | AC_ARG_ENABLE(xterm-scroll, |
184 | AC_ARG_ENABLE(xterm-scroll, |
200 | [ --enable-xterm-scroll enable Xterm style scrollbar *], |
185 | [ --enable-xterm-scroll enable Xterm style scrollbar], |
201 | [if test x$enableval = xyes -o x$enableval = xno; then |
186 | [if test x$enableval = xyes -o x$enableval = xno; then |
202 | support_scroll_xterm=$enableval |
187 | support_scroll_xterm=$enableval |
|
|
188 | fi]) |
|
|
189 | |
|
|
190 | AC_ARG_ENABLE(plain-scroll, |
|
|
191 | [ --enable-plain-scroll enable plain style scrollbar], |
|
|
192 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
193 | support_scroll_plain=$enableval |
203 | fi]) |
194 | fi]) |
204 | |
195 | |
205 | AC_ARG_ENABLE(half-shadow, |
196 | AC_ARG_ENABLE(half-shadow, |
206 | [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
197 | [ --enable-half-shadow use half width/height shadow on rxvt scrollbar], |
207 | [if test x$enableval = xyes; then |
198 | [if test x$enableval = xyes; then |
208 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
199 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
209 | fi]) |
200 | fi]) |
210 | |
201 | |
211 | AC_ARG_ENABLE(xim, |
202 | AC_ARG_ENABLE(xim, |
212 | [ --enable-xim XIM (X Input Method) protocol support *], |
203 | [ --enable-xim XIM (X Input Method) protocol support], |
213 | [if test x$enableval = xyes -o x$enableval = xno; then |
204 | [if test x$enableval = xyes -o x$enableval = xno; then |
214 | support_xim=$enableval |
205 | support_xim=$enableval |
215 | fi]) |
|
|
216 | |
|
|
217 | AC_ARG_ENABLE(greek, |
|
|
218 | [ --enable-greek enable greek keyboard support], |
|
|
219 | [if test x$enableval = xyes; then |
|
|
220 | AC_DEFINE(GREEK_SUPPORT, 1, Define if you want support for Greek Elot-928 & IBM-437 keyboard) |
|
|
221 | fi]) |
206 | fi]) |
222 | |
207 | |
223 | AC_ARG_ENABLE(ttygid, |
208 | AC_ARG_ENABLE(ttygid, |
224 | [ --enable-ttygid enable tty setting to group named "tty"], |
209 | [ --enable-ttygid enable tty setting to group named "tty"], |
225 | [if test x$enableval = xyes; then |
210 | [if test x$enableval = xyes; then |
… | |
… | |
261 | [if test x$enableval = xno; then |
246 | [if test x$enableval = xno; then |
262 | AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace) |
247 | AC_DEFINE(NO_SECONDARY_SCREEN, 1, Disable the secondary screen. Many programs use the secondary screen as their workplace) |
263 | fi]) |
248 | fi]) |
264 | |
249 | |
265 | AC_ARG_ENABLE(frills, |
250 | AC_ARG_ENABLE(frills, |
266 | [ --enable-frills enable support for rarely used features *], |
251 | [ --enable-frills enable support for rarely used features], |
267 | [if test x$enableval = xyes -o x$enableval = xno; then |
252 | [if test x$enableval = xyes -o x$enableval = xno; then |
268 | support_frills=$enableval |
253 | support_frills=$enableval |
269 | fi]) |
254 | fi]) |
270 | |
255 | |
271 | AC_ARG_ENABLE(linespace, |
256 | AC_ARG_ENABLE(linespace, |
272 | [ --enable-linespace enable support for linespace *], |
257 | [ --enable-linespace enable support for linespace], |
273 | [if test x$enableval = xyes -o x$enableval = xno; then |
258 | [if test x$enableval = xyes -o x$enableval = xno; then |
274 | support_linespace=$enableval |
259 | support_linespace=$enableval |
275 | fi]) |
260 | fi]) |
276 | |
261 | |
277 | AC_ARG_ENABLE(24bit, |
262 | AC_ARG_ENABLE(24bit, |
278 | [ --enable-24bit enable support for using 24bit visuals if available *], |
263 | [ --enable-24bit enable support for using 24bit visuals if available], |
279 | [if test x$enableval = xyes -o x$enableval = xno; then |
264 | [if test x$enableval = xyes -o x$enableval = xno; then |
280 | support_24bit=$enableval |
265 | support_24bit=$enableval |
281 | fi]) |
266 | fi]) |
282 | |
267 | |
283 | AC_ARG_ENABLE(keepscrolling, |
268 | AC_ARG_ENABLE(keepscrolling, |
284 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press *], |
269 | [ --enable-keepscrolling enable continual scrolling on scrollbar arrow press], |
285 | [if test x$enableval = xyes -o x$enableval = xno; then |
270 | [if test x$enableval = xyes -o x$enableval = xno; then |
286 | support_keepscrolling=$enableval |
271 | support_keepscrolling=$enableval |
287 | fi]) |
272 | fi]) |
288 | |
273 | |
289 | AC_ARG_ENABLE(selectionscrolling, |
274 | AC_ARG_ENABLE(selectionscrolling, |
290 | [ --enable-selectionscrolling enable scrolling during selections *], |
275 | [ --enable-selectionscrolling enable scrolling during selections], |
291 | [if test x$enableval = xyes -o x$enableval = xno; then |
276 | [if test x$enableval = xyes -o x$enableval = xno; then |
292 | support_selectionscrolling=$enableval |
277 | support_selectionscrolling=$enableval |
293 | fi]) |
278 | fi]) |
294 | |
279 | |
295 | AC_ARG_ENABLE(mousewheel, |
280 | AC_ARG_ENABLE(mousewheel, |
296 | [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 *], |
281 | [ --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5], |
297 | [if test x$enableval = xyes -o x$enableval = xno; then |
282 | [if test x$enableval = xyes -o x$enableval = xno; then |
298 | support_mousewheel=$enableval |
283 | support_mousewheel=$enableval |
299 | fi]) |
284 | fi]) |
300 | |
285 | |
301 | AC_ARG_ENABLE(slipwheeling, |
286 | AC_ARG_ENABLE(slipwheeling, |
302 | [ --enable-slipwheeling enable slip wheel scrolling (requires previous) *], |
287 | [ --enable-slipwheeling enable slip wheel scrolling (requires previous)], |
303 | [if test x$enableval = xyes -o x$enableval = xno; then |
288 | [if test x$enableval = xyes -o x$enableval = xno; then |
304 | support_mouseslipwheel=$enableval |
289 | support_mouseslipwheel=$enableval |
305 | fi]) |
290 | fi]) |
306 | |
291 | |
307 | AC_ARG_ENABLE(old-selection, |
292 | AC_ARG_ENABLE(old-selection, |
308 | [ --enable-old-selection enable v2.20 (& prior) mouse selection style support*], |
293 | [ --enable-old-selection enable v2.20 (& prior) mouse selection style support], |
309 | [if test x$enableval = xyes -o x$enableval = xno; then |
294 | [if test x$enableval = xyes -o x$enableval = xno; then |
310 | support_oldselection=$enableval |
295 | support_oldselection=$enableval |
311 | fi]) |
296 | fi]) |
312 | |
297 | |
313 | AC_ARG_ENABLE(new-selection, |
298 | AC_ARG_ENABLE(new-selection, |
… | |
… | |
352 | [if test x$enableval = xyes -o x$enableval = xno; then |
337 | [if test x$enableval = xyes -o x$enableval = xno; then |
353 | support_cursor_blink=$enableval |
338 | support_cursor_blink=$enableval |
354 | fi]) |
339 | fi]) |
355 | |
340 | |
356 | AC_ARG_ENABLE(text-blink, |
341 | AC_ARG_ENABLE(text-blink, |
357 | [ --enable-text-blink enable blinking text], |
342 | [ --enable-text-blink enable blinking text], |
358 | [if test x$enableval = xyes -o x$enableval = xno; then |
343 | [if test x$enableval = xyes -o x$enableval = xno; then |
359 | support_text_blink=$enableval |
344 | support_text_blink=$enableval |
360 | fi]) |
345 | fi]) |
361 | |
346 | |
362 | AC_ARG_ENABLE(pointer-blank, |
347 | AC_ARG_ENABLE(pointer-blank, |
… | |
… | |
364 | [if test x$enableval = xyes -o x$enableval = xno; then |
349 | [if test x$enableval = xyes -o x$enableval = xno; then |
365 | support_pointer_blank=$enableval |
350 | support_pointer_blank=$enableval |
366 | fi]) |
351 | fi]) |
367 | |
352 | |
368 | AC_ARG_WITH(term, |
353 | AC_ARG_WITH(term, |
369 | [ --with-term=NAME set the terminal to NAME (default \"xterm\")], |
354 | [ --with-term=NAME set the terminal to NAME (default \"rxvt\")], |
370 | [if test x$withval != x; then |
355 | [if test x$withval != x; then |
371 | AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" |
356 | AC_DEFINE_UNQUOTED(TERMENV, "$withval",Set TERM to the value given by configure) term="$withval" |
372 | fi]) |
357 | fi]) |
373 | |
358 | |
374 | AC_ARG_WITH(terminfo, |
359 | AC_ARG_WITH(terminfo, |
… | |
… | |
1188 | fi |
1173 | fi |
1189 | if test x$support_scroll_xterm = xyes; then |
1174 | if test x$support_scroll_xterm = xyes; then |
1190 | AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars) |
1175 | AC_DEFINE(XTERM_SCROLLBAR, 1, Support Xterm style scrollbars) |
1191 | scrolltypes="$scrolltypes xterm" |
1176 | scrolltypes="$scrolltypes xterm" |
1192 | fi |
1177 | fi |
|
|
1178 | if test x$support_scroll_plain = xyes; then |
|
|
1179 | AC_DEFINE(PLAIN_SCROLLBAR, 1, Support plain style scrollbars) |
|
|
1180 | scrolltypes="$scrolltypes plain" |
|
|
1181 | fi |
1193 | if test x$support_pointer_blank = xyes; then |
1182 | if test x$support_pointer_blank = xyes; then |
1194 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1183 | AC_DEFINE(POINTER_BLANK, 1, Define if you want hide the pointer while typing) |
1195 | fi |
1184 | fi |
1196 | if test x$support_cursor_blink = xyes; then |
1185 | if test x$support_cursor_blink = xyes; then |
1197 | AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) |
1186 | AC_DEFINE(CURSOR_BLINK, 1, Define if you want blinking cursor support) |
1198 | fi |
1187 | fi |
1199 | if test x$support_test_blink = xyes; then |
1188 | if test x$support_text_blink = xyes; then |
1200 | AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support) |
1189 | AC_DEFINE(TEXT_BLINK, 1, Define if you want blinking text support) |
1201 | fi |
1190 | fi |
1202 | if test x$support_unicode3 = xyes; then |
1191 | if test x$support_unicode3 = xyes; then |
1203 | AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) |
1192 | AC_DEFINE(UNICODE_3, 1, Define if you want to represent unicode characters outside plane 0) |
1204 | fi |
1193 | fi |
1205 | if test x$codesets = xall; then |
1194 | if test x$codesets = xall; then |
1206 | codesets=jp,jp-ext,kr,cn,cn-ext,vn |
1195 | codesets=jp,jp-ext,kr,cn,cn-ext,vn |
1207 | fi |
1196 | fi |
1208 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1197 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1209 | AC_DEFINE(ENCODING_EU, 1, Define if you want europeean extended codesets) |
1198 | AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) |
1210 | case "$codeset" in |
1199 | case "$codeset" in |
1211 | VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;; |
1200 | VN ) AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) ;; |
1212 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1201 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1213 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1202 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1214 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |
1203 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |