3 dnl Just like AC_CHECK_TYPE from autoconf-2.12, but also checks in unistd.h
4 dnl on systems that have it. Fujitsu UXP/V needs this for ssize_t.
5 dnl Now, also uses the three-argument form of AC_DEFINE.
7 undefine([AC_CHECK_TYPE])
8 dnl AC_CHECK_TYPE(TYPE, DEFAULT)
9 AC_DEFUN(AC_CHECK_TYPE,
10 [AC_REQUIRE([AC_HEADER_STDC])dnl
11 AC_CHECK_HEADERS(unistd.h)
12 AC_MSG_CHECKING(for $1)
13 AC_CACHE_VAL(ac_cv_type_$1,
16 <<$1[^a-zA-Z_0-9]>>dnl
17 changequote([,]), [#include <sys/types.h>
24 #endif], ac_cv_type_$1=yes, ac_cv_type_$1=no)])dnl
25 AC_MSG_RESULT($ac_cv_type_$1)
26 if test $ac_cv_type_$1 = no; then
28 [ Define to \`$2' if certain system header files doesn't define it.])