… | |
… | |
92 | support_xft=no |
92 | support_xft=no |
93 | support_unicode3=no |
93 | support_unicode3=no |
94 | support_combining=no |
94 | support_combining=no |
95 | support_8bitctrls=no |
95 | support_8bitctrls=no |
96 | support_iso14755=no |
96 | support_iso14755=no |
|
|
97 | support_styles=no |
97 | codesets= |
98 | codesets= |
98 | |
99 | |
99 | dnl# -------------------------------------------------------------------------- |
100 | dnl# -------------------------------------------------------------------------- |
100 | dnl# CHECKING COMMAND LINE OPTIONS |
101 | dnl# CHECKING COMMAND LINE OPTIONS |
101 | dnl# -------------------------------------------------------------------------- |
102 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
137 | support_xft=yes |
138 | support_xft=yes |
138 | support_unicode3=yes |
139 | support_unicode3=yes |
139 | support_combining=yes |
140 | support_combining=yes |
140 | #support_8bitctrls=yes |
141 | #support_8bitctrls=yes |
141 | support_iso14755=yes |
142 | support_iso14755=yes |
|
|
143 | support_styles=yes |
142 | codesets=all |
144 | codesets=all |
143 | fi]) |
145 | fi]) |
144 | |
146 | |
145 | AC_ARG_ENABLE(unicode3, |
147 | AC_ARG_ENABLE(unicode3, |
146 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
148 | [ --enable-unicode3 use 21 instead of 16 bits to represent unicode characters], |
147 | [if test x$enableval = xyes -o x$enableval = xno; then |
149 | [if test x$enableval = xyes -o x$enableval = xno; then |
148 | support_unicode3=yes |
150 | support_unicode3=$enableval |
149 | fi]) |
151 | fi]) |
150 | |
152 | |
151 | AC_ARG_ENABLE(combining, |
153 | AC_ARG_ENABLE(combining, |
152 | [ --enable-combining enable composition of base and combining characters], |
154 | [ --enable-combining enable composition of base and combining characters], |
153 | [if test x$enableval = xyes -o x$enableval = xno; then |
155 | [if test x$enableval = xyes -o x$enableval = xno; then |
154 | support_combining=yes |
156 | support_combining=$enableval |
155 | fi]) |
157 | fi]) |
156 | |
158 | |
157 | AC_ARG_ENABLE(xft, |
159 | AC_ARG_ENABLE(xft, |
158 | [ --enable-xft enable xft support on systems that have it], |
160 | [ --enable-xft enable xft support on systems that have it], |
159 | [if test x$enableval = xyes -o x$enableval = xno; then |
161 | [if test x$enableval = xyes -o x$enableval = xno; then |
160 | support_xft=yes |
162 | support_xft=$enableval |
|
|
163 | fi]) |
|
|
164 | |
|
|
165 | AC_ARG_ENABLE(font-styles, |
|
|
166 | [ --enable-font-styles enable bold and italic support], |
|
|
167 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
168 | support_styles=$enableval |
161 | fi]) |
169 | fi]) |
162 | |
170 | |
163 | AC_ARG_ENABLE(utmp, |
171 | AC_ARG_ENABLE(utmp, |
164 | [ --enable-utmp enable utmp (utmpx) support], |
172 | [ --enable-utmp enable utmp (utmpx) support], |
165 | [if test x$enableval = xyes -o x$enableval = xno; then |
173 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
237 | [if test x$enableval = xyes; then |
245 | [if test x$enableval = xyes; then |
238 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
246 | AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less) |
239 | fi]) |
247 | fi]) |
240 | |
248 | |
241 | AC_ARG_WITH(codesets, |
249 | AC_ARG_WITH(codesets, |
242 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all)], |
250 | [ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
243 | [codesets="$withval"]) |
251 | [codesets="$withval"]) |
244 | |
252 | |
245 | AC_ARG_ENABLE(xim, |
253 | AC_ARG_ENABLE(xim, |
246 | [ --enable-xim XIM (X Input Method) protocol support], |
254 | [ --enable-xim XIM (X Input Method) protocol support], |
247 | [if test x$enableval = xyes -o x$enableval = xno; then |
255 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
279 | fi]) |
287 | fi]) |
280 | |
288 | |
281 | AC_ARG_ENABLE(8bitctrls, |
289 | AC_ARG_ENABLE(8bitctrls, |
282 | [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], |
290 | [ --enable-8bitctrls enable 8 bit control sequences (not recommended)], |
283 | [if test x$enableval = xyes -o x$enableval = xno; then |
291 | [if test x$enableval = xyes -o x$enableval = xno; then |
284 | support_8bitctrls=yes |
292 | support_8bitctrls=$enableval |
285 | fi]) |
293 | fi]) |
286 | |
294 | |
287 | RESFALLBACK=Rxvt |
295 | RESFALLBACK=Rxvt |
288 | AC_ARG_ENABLE(fallback, |
296 | AC_ARG_ENABLE(fallback, |
289 | [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
297 | [ --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)], |
… | |
… | |
311 | |
319 | |
312 | RXVTNAME=urxvt |
320 | RXVTNAME=urxvt |
313 | AC_ARG_WITH(name, |
321 | AC_ARG_WITH(name, |
314 | [ --with-name=NAME set the basename for the installed binaries (default: urxvt)], |
322 | [ --with-name=NAME set the basename for the installed binaries (default: urxvt)], |
315 | [RXVTNAME="$withval"]) |
323 | [RXVTNAME="$withval"]) |
|
|
324 | AC_DEFINE_UNQUOTED(RXVTNAME,"$RXVTNAME", [Binary base name]) |
316 | |
325 | |
317 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
326 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
318 | AC_SUBST(RXVTNAME) |
327 | AC_SUBST(RXVTNAME) |
319 | |
328 | |
320 | AC_ARG_ENABLE(strings, |
329 | AC_ARG_ENABLE(strings, |
… | |
… | |
398 | |
407 | |
399 | AC_ARG_ENABLE(smart-resize, |
408 | AC_ARG_ENABLE(smart-resize, |
400 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
409 | [ --enable-smart-resize enable smart growth/shrink behaviour], |
401 | [if test x$enableval = xyes; then |
410 | [if test x$enableval = xyes; then |
402 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
411 | AC_DEFINE(SMART_RESIZE, 1, Define to use "smart" resize behavior) |
403 | fi]) |
|
|
404 | |
|
|
405 | AC_ARG_ENABLE(256-color, |
|
|
406 | [ --enable-256-color enable 256-color support], |
|
|
407 | [if test x$enableval = xyes; then |
|
|
408 | AC_DEFINE(TTY_256COLOR, 1, Define if you want 256 colour support) |
|
|
409 | fi]) |
412 | fi]) |
410 | |
413 | |
411 | AC_ARG_ENABLE(cursor-blink, |
414 | AC_ARG_ENABLE(cursor-blink, |
412 | [ --enable-cursor-blink enable blinking cursor], |
415 | [ --enable-cursor-blink enable blinking cursor], |
413 | [if test x$enableval = xyes -o x$enableval = xno; then |
416 | [if test x$enableval = xyes -o x$enableval = xno; then |
… | |
… | |
463 | AC_PATH_PROG(LN, ln, ln) |
466 | AC_PATH_PROG(LN, ln, ln) |
464 | AC_PATH_PROG(SED, sed, sed) |
467 | AC_PATH_PROG(SED, sed, sed) |
465 | AC_PATH_PROG(ECHO, echo, echo) |
468 | AC_PATH_PROG(ECHO, echo, echo) |
466 | AC_PATH_PROG(CMP, cmp, cmp) |
469 | AC_PATH_PROG(CMP, cmp, cmp) |
467 | AC_PATH_PROG(TBL, tbl) |
470 | AC_PATH_PROG(TBL, tbl) |
|
|
471 | AC_PATH_PROG(TIC, tic) |
468 | |
472 | |
469 | dnl# need a neat way to detect SVR4 or its features |
473 | dnl# need a neat way to detect SVR4 or its features |
470 | dnl# in src/command.c we use these functions: |
474 | dnl# in src/command.c we use these functions: |
471 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
475 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
472 | dnl# - but are these also defined for other systems? |
476 | dnl# - but are these also defined for other systems? |
… | |
… | |
591 | dnl> AC_CHECK_TYPE(umode_t, int) |
595 | dnl> AC_CHECK_TYPE(umode_t, int) |
592 | dnl> AC_CHECK_TYPE(off_t, long) |
596 | dnl> AC_CHECK_TYPE(off_t, long) |
593 | AC_TYPE_PID_T |
597 | AC_TYPE_PID_T |
594 | AC_TYPE_UID_T |
598 | AC_TYPE_UID_T |
595 | |
599 | |
596 | AC_CHECK_SIZEOF(char, 1) |
|
|
597 | AC_CHECK_SIZEOF(short, 2) |
600 | AC_CHECK_SIZEOF(short, 2) |
598 | AC_CHECK_SIZEOF(int, 4) |
601 | AC_CHECK_SIZEOF(int, 4) |
599 | AC_CHECK_SIZEOF(long, 4) |
602 | dnl AC_CHECK_SIZEOF(long, 4) |
600 | AC_CHECK_SIZEOF(long long, 8) |
603 | AC_CHECK_SIZEOF(long long, 8) |
601 | AC_CHECK_SIZEOF(int *, 4) |
604 | AC_CHECK_SIZEOF(int *, 4) |
602 | |
605 | |
603 | dnl# see usage below |
606 | dnl# see usage below |
604 | AC_DEFUN(RXVT_CHECK_SIZE, |
607 | AC_DEFUN(RXVT_CHECK_SIZE, |
… | |
… | |
1178 | fi |
1181 | fi |
1179 | |
1182 | |
1180 | dnl# -------------------------------------------------------------------------- |
1183 | dnl# -------------------------------------------------------------------------- |
1181 | dnl# now add and remove other stuff |
1184 | dnl# now add and remove other stuff |
1182 | dnl# -------------------------------------------------------------------------- |
1185 | dnl# -------------------------------------------------------------------------- |
|
|
1186 | if test x$support_xft = xyes; then |
|
|
1187 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
1188 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
1189 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
1190 | |
|
|
1191 | AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
|
|
1192 | AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no]) |
|
|
1193 | |
|
|
1194 | if test x$support_xft = xyes; then |
|
|
1195 | AC_DEFINE(XFT, 1, Define to enable xft support) |
|
|
1196 | fi |
|
|
1197 | fi |
|
|
1198 | if test x$support_styles = xyes; then |
|
|
1199 | AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) |
|
|
1200 | fi |
1183 | if test x$support_iso14755 = xyes; then |
1201 | if test x$support_iso14755 = xyes; then |
1184 | AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) |
1202 | AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) |
1185 | fi |
1203 | fi |
1186 | if test x$support_8bitctrls = xyes; then |
1204 | if test x$support_8bitctrls = xyes; then |
1187 | AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) |
1205 | AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) |
… | |
… | |
1266 | fi |
1284 | fi |
1267 | if test x$support_combining = xyes; then |
1285 | if test x$support_combining = xyes; then |
1268 | AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters) |
1286 | AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters) |
1269 | fi |
1287 | fi |
1270 | if test x$codesets = xall; then |
1288 | if test x$codesets = xall; then |
1271 | codesets=jp,jp-ext,kr,cn,cn-ext |
1289 | codesets=jp,jp-ext,kr,zh,zh-ext |
1272 | fi |
1290 | fi |
1273 | AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) |
1291 | AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets) |
1274 | AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) |
1292 | AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets) |
1275 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1293 | for codeset in `echo $codesets | tr "[a-z,\\-]" "[A-Z _]"`; do |
1276 | case "$codeset" in |
1294 | case "$codeset" in |
1277 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1295 | JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;; |
1278 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1296 | JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;; |
1279 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |
1297 | KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;; |
1280 | CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;; |
1298 | ZH ) AC_DEFINE(ENCODING_ZH, 1, Define if you want chinese codesets) ;; |
1281 | CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;; |
1299 | ZH_EXT ) AC_DEFINE(ENCODING_ZH_EXT, 1, Define if you want extended chinese codesets) ;; |
1282 | esac |
1300 | esac |
1283 | done |
1301 | done |
1284 | |
1302 | |
1285 | dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket) |
1303 | dnl> AC_CHECK_FUNCS(gettimeofday putenv select socket) |
1286 | |
1304 | |
… | |
… | |
1340 | RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch) |
1358 | RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch) |
1341 | RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) |
1359 | RXVT_DEFINE_TO_INCLUDE(include_sys_select_h, sys/select.h, ac_cv_header_sys_select_h, yes, notset, dontmatch) |
1342 | RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) |
1360 | RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) |
1343 | RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) |
1361 | RXVT_DEFINE_TO_INCLUDE(include_sys_time_h, sys/time.h, ac_cv_header_sys_time_h, yes, notset, dontmatch) |
1344 | RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) |
1362 | RXVT_DEFINE_TO_INCLUDE(include_time_h, time.h, ac_cv_header_sys_time_h, no, ac_cv_header_time, yes) |
1345 | |
|
|
1346 | if test x$support_xft = xyes; then |
|
|
1347 | LIBS="$LIBS `pkg-config xft --libs`" |
|
|
1348 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
1349 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
|
|
1350 | |
|
|
1351 | AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
|
|
1352 | AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no]) |
|
|
1353 | |
|
|
1354 | if test x$support_xft = xyes; then |
|
|
1355 | AC_DEFINE(XFT, 1, Define to enable xft support) |
|
|
1356 | fi |
|
|
1357 | fi |
|
|
1358 | |
1363 | |
1359 | AC_CONFIG_FILES([autoconf/Make.common \ |
1364 | AC_CONFIG_FILES([autoconf/Make.common \ |
1360 | Makefile \ |
1365 | Makefile \ |
1361 | doc/Makefile \ |
1366 | doc/Makefile \ |
1362 | src/Makefile \ |
1367 | src/Makefile \ |