… | |
… | |
25 | echo "" |
25 | echo "" |
26 | |
26 | |
27 | orig_CXXFLAGS="$CXXFLAGS" |
27 | orig_CXXFLAGS="$CXXFLAGS" |
28 | |
28 | |
29 | dnl# Checks for programs. |
29 | dnl# Checks for programs. |
30 | dnl AC_MAKE_SET |
|
|
31 | |
|
|
32 | AC_PROG_CC |
30 | AC_PROG_CC |
33 | AC_PROG_CXX |
31 | AC_PROG_CXX |
34 | AC_PROG_CPP |
32 | AC_PROG_CPP |
35 | AC_PROG_INSTALL |
33 | AC_PROG_INSTALL |
36 | |
34 | |
… | |
… | |
131 | fi |
129 | fi |
132 | AC_SUBST(INSTALL_LIBRXVT) |
130 | AC_SUBST(INSTALL_LIBRXVT) |
133 | |
131 | |
134 | AC_ARG_ENABLE(everything, |
132 | AC_ARG_ENABLE(everything, |
135 | [ --enable-everything enable standard non-multichoice features |
133 | [ --enable-everything enable standard non-multichoice features |
136 | NOTE: this option is order dependent |
134 | NOTE: this option is order dependent], |
137 | NOTE: automatically enabled with --enable-shared], |
|
|
138 | [ |
135 | [ |
139 | if test x$enableval = xno; then |
136 | if test x$enableval = xno; then |
140 | support_frills=no |
137 | support_frills=no |
141 | support_inheritpixmap=no |
138 | support_inheritpixmap=no |
142 | support_fading=no |
139 | support_fading=no |
… | |
… | |
282 | [ --enable-xterm-scroll enable Xterm style scrollbar], |
279 | [ --enable-xterm-scroll enable Xterm style scrollbar], |
283 | [if test x$enableval = xyes -o x$enableval = xno; then |
280 | [if test x$enableval = xyes -o x$enableval = xno; then |
284 | support_scroll_xterm=$enableval |
281 | support_scroll_xterm=$enableval |
285 | fi]) |
282 | fi]) |
286 | |
283 | |
|
|
284 | AC_ARG_ENABLE(plain-scroll, |
|
|
285 | [ --enable-plain-scroll enable plain style scrollbar], |
|
|
286 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
287 | support_scroll_plain=$enableval |
|
|
288 | fi]) |
|
|
289 | |
287 | AC_ARG_ENABLE(perl, |
290 | AC_ARG_ENABLE(perl, |
288 | [ --enable-perl enable embedded perl interpreter], |
291 | [ --enable-perl enable embedded perl interpreter], |
289 | [if test x$enableval = xyes -o x$enableval = xno; then |
292 | [if test x$enableval = xyes -o x$enableval = xno; then |
290 | support_perl=$enableval |
293 | support_perl=$enableval |
291 | fi]) |
|
|
292 | |
|
|
293 | AC_ARG_ENABLE(plain-scroll, |
|
|
294 | [ --enable-plain-scroll enable plain style scrollbar], |
|
|
295 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
296 | support_scroll_plain=$enableval |
|
|
297 | fi]) |
294 | fi]) |
298 | |
295 | |
299 | AC_ARG_WITH(codesets, |
296 | AC_ARG_WITH(codesets, |
300 | [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
297 | [ --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)], |
301 | [codesets="$withval"]) |
298 | [codesets="$withval"]) |
… | |
… | |
442 | m4_include([libev/libev.m4]) |
439 | m4_include([libev/libev.m4]) |
443 | |
440 | |
444 | dnl# -------------------------------------------------------------------------- |
441 | dnl# -------------------------------------------------------------------------- |
445 | |
442 | |
446 | AC_PATH_PROG(TIC, tic, :) |
443 | AC_PATH_PROG(TIC, tic, :) |
447 | |
|
|
448 | dnl# need a neat way to detect SVR4 or its features |
|
|
449 | dnl# in src/command.c we use these functions: |
|
|
450 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
|
|
451 | dnl# - but are these also defined for other systems? |
|
|
452 | |
|
|
453 | dnl# hack to find if this is SVR4 -- who knows? |
|
|
454 | dnl## AC_MSG_CHECKING(for SVR4) |
|
|
455 | dnl## AC_EGREP_CPP(yes, |
|
|
456 | dnl## [#if defined (SVR4) || defined (_SVR4) || defined (__svr4__) |
|
|
457 | dnl## yes; |
|
|
458 | dnl## #endif |
|
|
459 | dnl## ], [AC_MSG_RESULT(yes); AC_DEFINE(PERHAPS_SVR4)], AC_MSG_RESULT(perhaps not?)) |
|
|
460 | |
444 | |
461 | AC_PATH_XTRA |
445 | AC_PATH_XTRA |
462 | |
446 | |
463 | AFTERIMAGE_CFLAGS= |
447 | AFTERIMAGE_CFLAGS= |
464 | AFTERIMAGE_LIBS= |
448 | AFTERIMAGE_LIBS= |
… | |
… | |
496 | fi |
480 | fi |
497 | |
481 | |
498 | dnl# -------------------------------------------------------------------------- |
482 | dnl# -------------------------------------------------------------------------- |
499 | dnl# CHECKING FOR HEADER FILES |
483 | dnl# CHECKING FOR HEADER FILES |
500 | dnl# -------------------------------------------------------------------------- |
484 | dnl# -------------------------------------------------------------------------- |
501 | AC_HEADER_SYS_WAIT |
|
|
502 | AC_CHECK_HEADERS( \ |
485 | AC_CHECK_HEADERS( \ |
503 | assert.h \ |
486 | assert.h \ |
504 | fcntl.h \ |
487 | fcntl.h \ |
505 | stdarg.h \ |
488 | stdarg.h \ |
506 | stdlib.h \ |
489 | stdlib.h \ |
… | |
… | |
517 | wchar.h \ |
500 | wchar.h \ |
518 | cwchar \ |
501 | cwchar \ |
519 | clocale \ |
502 | clocale \ |
520 | ) |
503 | ) |
521 | |
504 | |
522 | AC_HEADER_TIME |
|
|
523 | |
|
|
524 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
505 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
525 | AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl, |
506 | AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl, |
526 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
507 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
527 | #include <sys/ioctl.h> |
508 | #include <sys/ioctl.h> |
528 | #ifdef HAVE_TERMIOS_H |
509 | #ifdef HAVE_TERMIOS_H |
… | |
… | |
547 | [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no] |
528 | [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no] |
548 | )]) |
529 | )]) |
549 | if test x$rxvt_xlib_illegal_access = xyes; then |
530 | if test x$rxvt_xlib_illegal_access = xyes; then |
550 | AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it) |
531 | AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it) |
551 | fi |
532 | fi |
552 | |
|
|
553 | AC_C_CONST |
|
|
554 | AC_C_INLINE |
|
|
555 | |
|
|
556 | dnl> AC_HEADER_STDC dnl# skip this test, Sun always fails anyhow. |
|
|
557 | |
533 | |
558 | dnl# -------------------------------------------------------------------------- |
534 | dnl# -------------------------------------------------------------------------- |
559 | dnl# CHECKING FOR MISSING TYPEDEFS |
535 | dnl# CHECKING FOR MISSING TYPEDEFS |
560 | dnl# -------------------------------------------------------------------------- |
536 | dnl# -------------------------------------------------------------------------- |
561 | dnl# Missing typedefs and replacements |
537 | dnl# Missing typedefs and replacements |
… | |
… | |
645 | AC_SUBST(rxvt_u_intp_define) |
621 | AC_SUBST(rxvt_u_intp_define) |
646 | |
622 | |
647 | dnl# -------------------------------------------------------------------------- |
623 | dnl# -------------------------------------------------------------------------- |
648 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
624 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
649 | dnl# -------------------------------------------------------------------------- |
625 | dnl# -------------------------------------------------------------------------- |
650 | AC_TYPE_SIGNAL |
|
|
651 | dnl> AC_FUNC_VPRINTF |
|
|
652 | |
|
|
653 | AC_CHECK_FUNCS(unsetenv) |
626 | AC_CHECK_FUNCS(unsetenv) |
654 | |
627 | |
655 | UTMP_CHECK |
628 | UTMP_CHECK |
656 | |
629 | |
657 | dnl# -------------------------------------------------------------------------- |
630 | dnl# -------------------------------------------------------------------------- |