… | |
… | |
15 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
15 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
16 | dnl LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
17 | changequote([, ])dnl |
17 | changequote([, ])dnl |
18 | AC_SUBST(VERSION)dnl |
18 | AC_SUBST(VERSION)dnl |
19 | AC_SUBST(DATE)dnl |
19 | AC_SUBST(DATE)dnl |
20 | AC_SUBST(LSMDATE)dnl |
|
|
21 | AC_SUBST(LIBVERSION)dnl |
20 | dnl AC_SUBST(LIBVERSION)dnl |
22 | |
21 | |
23 | echo "" |
22 | echo "" |
24 | echo "configuring for rxvt $VERSION" |
23 | echo "configuring for rxvt $VERSION" |
25 | echo "" |
24 | echo "" |
26 | |
25 | |
27 | orig_CXXFLAGS="$CXXFLAGS" |
26 | orig_CXXFLAGS="$CXXFLAGS" |
28 | |
27 | |
29 | dnl# Checks for programs. |
28 | dnl# Checks for programs. |
30 | dnl AC_MAKE_SET |
|
|
31 | |
|
|
32 | AC_PROG_CC |
29 | AC_PROG_CC |
33 | AC_PROG_CXX |
30 | AC_PROG_CXX |
34 | AC_PROG_CPP |
31 | AC_PROG_CPP |
35 | AC_PROG_INSTALL |
32 | AC_PROG_INSTALL |
36 | |
33 | |
… | |
… | |
123 | |
120 | |
124 | dnl# -------------------------------------------------------------------------- |
121 | dnl# -------------------------------------------------------------------------- |
125 | dnl# CHECKING COMMAND LINE OPTIONS |
122 | dnl# CHECKING COMMAND LINE OPTIONS |
126 | dnl# -------------------------------------------------------------------------- |
123 | dnl# -------------------------------------------------------------------------- |
127 | |
124 | |
128 | if test "x$enable_shared" = xyes; then |
125 | dnl if test "x$enable_shared" = xyes; then |
129 | AC_DEFINE(LIBRXVT, 1, Build shared library version - specify via configure only) |
126 | dnl AC_DEFINE(LIBRXVT, 1, Build shared library version - specify via configure only) |
130 | INSTALL_LIBRXVT=yes |
127 | dnl INSTALL_LIBRXVT=yes |
131 | fi |
128 | dnl fi |
132 | AC_SUBST(INSTALL_LIBRXVT) |
129 | dnl AC_SUBST(INSTALL_LIBRXVT) |
133 | |
130 | |
134 | AC_ARG_ENABLE(everything, |
131 | AC_ARG_ENABLE(everything, |
135 | [ --enable-everything enable standard non-multichoice features |
132 | [ --enable-everything enable standard non-multichoice features |
136 | NOTE: this option is order dependent |
133 | NOTE: this option is order dependent], |
137 | NOTE: automatically enabled with --enable-shared], |
|
|
138 | [ |
134 | [ |
139 | if test x$enableval = xno; then |
135 | if test x$enableval = xno; then |
140 | support_frills=no |
136 | support_frills=no |
141 | support_inheritpixmap=no |
137 | support_inheritpixmap=no |
142 | support_fading=no |
138 | support_fading=no |
… | |
… | |
443 | |
439 | |
444 | dnl# -------------------------------------------------------------------------- |
440 | dnl# -------------------------------------------------------------------------- |
445 | |
441 | |
446 | AC_PATH_PROG(TIC, tic, :) |
442 | AC_PATH_PROG(TIC, tic, :) |
447 | |
443 | |
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 | |
|
|
461 | AC_PATH_XTRA |
444 | AC_PATH_XTRA |
462 | |
445 | |
463 | AFTERIMAGE_CFLAGS= |
446 | AFTERIMAGE_CFLAGS= |
464 | AFTERIMAGE_LIBS= |
447 | AFTERIMAGE_LIBS= |
465 | AFTERIMAGE_VERSION= |
448 | AFTERIMAGE_VERSION= |
… | |
… | |
496 | fi |
479 | fi |
497 | |
480 | |
498 | dnl# -------------------------------------------------------------------------- |
481 | dnl# -------------------------------------------------------------------------- |
499 | dnl# CHECKING FOR HEADER FILES |
482 | dnl# CHECKING FOR HEADER FILES |
500 | dnl# -------------------------------------------------------------------------- |
483 | dnl# -------------------------------------------------------------------------- |
501 | AC_HEADER_SYS_WAIT |
|
|
502 | AC_CHECK_HEADERS( \ |
484 | AC_CHECK_HEADERS( \ |
503 | assert.h \ |
485 | assert.h \ |
504 | fcntl.h \ |
486 | fcntl.h \ |
505 | stdarg.h \ |
487 | stdarg.h \ |
506 | stdlib.h \ |
488 | stdlib.h \ |
… | |
… | |
517 | wchar.h \ |
499 | wchar.h \ |
518 | cwchar \ |
500 | cwchar \ |
519 | clocale \ |
501 | clocale \ |
520 | ) |
502 | ) |
521 | |
503 | |
522 | AC_HEADER_TIME |
|
|
523 | |
|
|
524 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
504 | 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, |
505 | 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> |
506 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
527 | #include <sys/ioctl.h> |
507 | #include <sys/ioctl.h> |
528 | #ifdef HAVE_TERMIOS_H |
508 | #ifdef HAVE_TERMIOS_H |
… | |
… | |
547 | [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no] |
527 | [rxvt_xlib_illegal_access=yes],[rxvt_xlib_illegal_access=no] |
548 | )]) |
528 | )]) |
549 | if test x$rxvt_xlib_illegal_access = xyes; then |
529 | if test x$rxvt_xlib_illegal_access = xyes; then |
550 | AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it) |
530 | AC_DEFINE(XLIB_ILLEGAL_ACCESS, 1, Define ONLY iff Xlib.h supports it) |
551 | fi |
531 | 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 | |
532 | |
558 | dnl# -------------------------------------------------------------------------- |
533 | dnl# -------------------------------------------------------------------------- |
559 | dnl# CHECKING FOR MISSING TYPEDEFS |
534 | dnl# CHECKING FOR MISSING TYPEDEFS |
560 | dnl# -------------------------------------------------------------------------- |
535 | dnl# -------------------------------------------------------------------------- |
561 | dnl# Missing typedefs and replacements |
536 | dnl# Missing typedefs and replacements |
… | |
… | |
645 | AC_SUBST(rxvt_u_intp_define) |
620 | AC_SUBST(rxvt_u_intp_define) |
646 | |
621 | |
647 | dnl# -------------------------------------------------------------------------- |
622 | dnl# -------------------------------------------------------------------------- |
648 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
623 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
649 | dnl# -------------------------------------------------------------------------- |
624 | dnl# -------------------------------------------------------------------------- |
650 | AC_TYPE_SIGNAL |
|
|
651 | dnl> AC_FUNC_VPRINTF |
|
|
652 | |
|
|
653 | AC_CHECK_FUNCS(unsetenv) |
625 | AC_CHECK_FUNCS(unsetenv) |
654 | |
626 | |
655 | UTMP_CHECK |
627 | UTMP_CHECK |
656 | |
628 | |
657 | dnl# -------------------------------------------------------------------------- |
629 | dnl# -------------------------------------------------------------------------- |