… | |
… | |
626 | dnl AC_CHECK_SIZEOF(long, 4) |
626 | dnl AC_CHECK_SIZEOF(long, 4) |
627 | AC_CHECK_SIZEOF(long long, 8) |
627 | AC_CHECK_SIZEOF(long long, 8) |
628 | AC_CHECK_SIZEOF(int *, 4) |
628 | AC_CHECK_SIZEOF(int *, 4) |
629 | |
629 | |
630 | dnl# see usage below |
630 | dnl# see usage below |
631 | AC_DEFUN(RXVT_CHECK_SIZE, |
631 | AC_DEFUN([RXVT_CHECK_SIZE], |
632 | [AC_CACHE_CHECK([for $2], $1, |
632 | [AC_CACHE_CHECK([for $2], $1, |
633 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
633 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl |
634 | if test "$ac_cv_sizeof_char" -ge $3; then |
634 | if test "$ac_cv_sizeof_char" -ge $3; then |
635 | $1="$4 char" |
635 | $1="$4 char" |
636 | else |
636 | else |
… | |
… | |
1423 | AC_ARG_PROGRAM |
1423 | AC_ARG_PROGRAM |
1424 | |
1424 | |
1425 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
1425 | dnl# test for "sun" or "__sun__" before include sys_ioctl |
1426 | |
1426 | |
1427 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
1427 | dnl# revert HAVE_BLAH_H into a "#include <blah.h>" |
1428 | AC_DEFUN(RXVT_DEFINE_TO_INCLUDE, dnl |
1428 | AC_DEFUN([RXVT_DEFINE_TO_INCLUDE], dnl |
1429 | [if test "$$3" = "$4" -o "$$5" = "$6"; then |
1429 | [if test "$$3" = "$4" -o "$$5" = "$6"; then |
1430 | $1="#include <$2>" |
1430 | $1="#include <$2>" |
1431 | else |
1431 | else |
1432 | $1="/* #include <$2> */" |
1432 | $1="/* #include <$2> */" |
1433 | fi dnl |
1433 | fi dnl |