… | |
… | |
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 |
20 | AC_SUBST(LSMDATE)dnl |
21 | AC_SUBST(LIBVERSION)dnl |
21 | AC_SUBST(LIBVERSION)dnl |
|
|
22 | |
22 | echo "" |
23 | echo "" |
23 | echo "configuring for rxvt $VERSION" |
24 | echo "configuring for rxvt $VERSION" |
24 | echo "" |
25 | echo "" |
25 | |
26 | |
26 | orig_CXXFLAGS="$CXXFLAGS" |
27 | orig_CXXFLAGS="$CXXFLAGS" |
… | |
… | |
435 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
436 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
436 | fi]) |
437 | fi]) |
437 | |
438 | |
438 | dnl# -------------------------------------------------------------------------- |
439 | dnl# -------------------------------------------------------------------------- |
439 | |
440 | |
|
|
441 | m4_include([libev/libev.m4]) |
|
|
442 | |
|
|
443 | dnl# -------------------------------------------------------------------------- |
|
|
444 | |
440 | AC_PATH_PROG(TIC, tic, :) |
445 | AC_PATH_PROG(TIC, tic, :) |
441 | |
446 | |
442 | dnl# need a neat way to detect SVR4 or its features |
447 | dnl# need a neat way to detect SVR4 or its features |
443 | dnl# in src/command.c we use these functions: |
448 | dnl# in src/command.c we use these functions: |
444 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
449 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
… | |
… | |
642 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
647 | dnl# CHECKING FOR LIBRARY FUNCTIONS |
643 | dnl# -------------------------------------------------------------------------- |
648 | dnl# -------------------------------------------------------------------------- |
644 | AC_TYPE_SIGNAL |
649 | AC_TYPE_SIGNAL |
645 | dnl> AC_FUNC_VPRINTF |
650 | dnl> AC_FUNC_VPRINTF |
646 | |
651 | |
647 | AC_CHECK_FUNCS( \ |
652 | AC_CHECK_FUNCS(unsetenv) |
648 | unsetenv \ |
|
|
649 | setutent \ |
|
|
650 | on_exit \ |
|
|
651 | ) |
|
|
652 | |
653 | |
653 | UTMP_CHECK |
654 | UTMP_CHECK |
654 | |
655 | |
655 | dnl# -------------------------------------------------------------------------- |
656 | dnl# -------------------------------------------------------------------------- |
656 | |
|
|
657 | dnl# find ttys/ttytab |
|
|
658 | AC_CACHE_CHECK(where ttys/ttytab is located, rxvt_cv_path_ttytab, |
|
|
659 | [for ttys_file in dnl |
|
|
660 | /etc/ttys /etc/ttytab; |
|
|
661 | do |
|
|
662 | if test -f "$ttys_file" ; then |
|
|
663 | rxvt_cv_path_ttytab=$ttys_file |
|
|
664 | break |
|
|
665 | fi |
|
|
666 | done |
|
|
667 | ]) |
|
|
668 | if test x$rxvt_cv_path_ttytab != x; then |
|
|
669 | AC_DEFINE_UNQUOTED(TTYTAB_FILENAME, "$rxvt_cv_path_ttytab", Define location of ttys/ttytab) |
|
|
670 | fi |
|
|
671 | |
657 | |
672 | dnl# -------------------------------------------------------------------------- |
658 | dnl# -------------------------------------------------------------------------- |
673 | dnl# -------------------------------------------------------------------------- |
659 | dnl# -------------------------------------------------------------------------- |
674 | |
660 | |
675 | dnl# this is a really hack test for some basic Xlocale stuff |
661 | dnl# this is a really hack test for some basic Xlocale stuff |
… | |
… | |
740 | dnl# now add and remove other stuff |
726 | dnl# now add and remove other stuff |
741 | dnl# -------------------------------------------------------------------------- |
727 | dnl# -------------------------------------------------------------------------- |
742 | if test x$support_xft = xyes; then |
728 | if test x$support_xft = xyes; then |
743 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
729 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
744 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
730 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
745 | LIBS="$LIBS `$PKG_CONFIG xft --libs`" |
731 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
746 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
732 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
747 | else |
733 | else |
748 | AC_PATH_PROG(XFT_CONFIG, xft-config, no) |
734 | AC_PATH_PROG(XFT_CONFIG, xft-config, no) |
749 | if test $XFT_CONFIG != no; then |
735 | if test $XFT_CONFIG != no; then |
750 | LIBS="$LIBS `$XFT_CONFIG --libs`" |
736 | X_LIBS="`$XFT_CONFIG --libs` $X_LIBS" |
751 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
737 | CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" |
752 | fi |
738 | fi |
753 | fi |
739 | fi |
754 | |
740 | |
|
|
741 | save_LIBS="$LIBS" |
|
|
742 | LIBS="$LIBS $X_LIBS" |
755 | AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
743 | AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
756 | AC_CHECK_LIB(Xft,XftDrawString32,,[support_xft=no]) |
744 | AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no]) |
|
|
745 | LIBS="$save_LIBS" |
757 | |
746 | |
758 | if test x$support_xft = xyes; then |
747 | if test x$support_xft = xyes; then |
759 | AC_DEFINE(XFT, 1, Define to enable xft support) |
748 | AC_DEFINE(XFT, 1, Define to enable xft support) |
760 | fi |
749 | fi |
761 | fi |
750 | fi |