… | |
… | |
484 | stdint.h \ |
484 | stdint.h \ |
485 | wchar.h \ |
485 | wchar.h \ |
486 | cwchar \ |
486 | cwchar \ |
487 | ) |
487 | ) |
488 | |
488 | |
489 | dnl# check to allow both <termios.h> and <sys/ioctl.h> |
|
|
490 | AC_CACHE_CHECK(whether termios.h and sys/ioctl.h may both be included, rxvt_cv_header_sysioctl, |
|
|
491 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
|
|
492 | #include <sys/ioctl.h> |
|
|
493 | #include <termios.h> |
|
|
494 | ]], [[int a = ECHO;]])],[rxvt_cv_header_sysioctl=yes],[rxvt_cv_header_sysioctl=no])]) |
|
|
495 | |
|
|
496 | AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer, |
489 | AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer, |
497 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]], [[XPointer dummy;]])],[rxvt_cv_xpointer=yes],[rxvt_cv_xpointer=no])]) |
490 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]], [[XPointer dummy;]])],[rxvt_cv_xpointer=yes],[rxvt_cv_xpointer=no])]) |
498 | if test x$rxvt_cv_xpointer = xyes; then |
491 | if test x$rxvt_cv_xpointer = xyes; then |
499 | AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef) |
492 | AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef) |
500 | fi |
493 | fi |
… | |
… | |
767 | AC_SUBST(AFTERIMAGE_CFLAGS) |
760 | AC_SUBST(AFTERIMAGE_CFLAGS) |
768 | AC_SUBST(AFTERIMAGE_LIBS) |
761 | AC_SUBST(AFTERIMAGE_LIBS) |
769 | |
762 | |
770 | AC_ARG_PROGRAM |
763 | AC_ARG_PROGRAM |
771 | |
764 | |
772 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
|
|
773 | |
|
|
774 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
765 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
775 | AC_DEFUN([RXVT_DEFINE_TO_INCLUDE], dnl |
766 | AC_DEFUN([RXVT_DEFINE_TO_INCLUDE], dnl |
776 | [if test "$$3" = "$4" -o "$$5" = "$6"; then |
767 | [if test "$$3" = "$4" -o "$$5" = "$6"; then |
777 | $1="#include <$2>" |
768 | $1="#include <$2>" |
778 | else |
769 | else |
779 | $1="/* #include <$2> */" |
770 | $1="/* #include <$2> */" |
780 | fi dnl |
771 | fi dnl |
781 | AC_SUBST($1)]) |
772 | AC_SUBST($1)]) |
782 | |
773 | |
783 | RXVT_DEFINE_TO_INCLUDE(include_stdint_h, stdint.h, ac_cv_header_stdint_h, yes, notset, dontmatch) |
774 | RXVT_DEFINE_TO_INCLUDE(include_stdint_h, stdint.h, ac_cv_header_stdint_h, yes, notset, dontmatch) |
784 | RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, rxvt_cv_header_sysioctl, yes, notset, dontmatch) |
775 | RXVT_DEFINE_TO_INCLUDE(include_sys_ioctl_h, sys/ioctl.h, ac_cv_header_sys_ioctl_h, yes, notset, dontmatch) |
785 | RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) |
776 | RXVT_DEFINE_TO_INCLUDE(include_sys_strredir_h, sys/strredir.h, ac_cv_header_sys_strredir_h, yes, notset, dontmatch) |
786 | |
777 | |
787 | AC_CONFIG_FILES([Makefile \ |
778 | AC_CONFIG_FILES([Makefile \ |
788 | doc/Makefile \ |
779 | doc/Makefile \ |
789 | src/Makefile \ |
780 | src/Makefile \ |