/* Define if on MINIX. */
#undef _MINIX
-/* Define to `int' if <sys/types.h> doesn't define. */
-#undef mode_t
-
/* Define if you don't have <dirent.h>, but have <ndir.h>. */
#undef NDIR
/* Define if your Fortran 77 compiler doesn't accept -c and -o together. */
#undef F77_NO_MINUS_C_MINUS_O
-/* Define to `long' if <sys/types.h> doesn't define. */
-#undef off_t
-
-/* Define to `int' if <sys/types.h> doesn't define. */
-#undef pid_t
-
/* Define if the system does not provide POSIX.1 features except
with this defined. */
#undef _POSIX_1_SOURCE
before release 3. */
#undef SETVBUF_REVERSED
-/* Define to `unsigned' if <sys/types.h> doesn't define. */
-#undef size_t
-
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
dnl ### Checking for typedefs
-dnl AC_CHECK_TYPE(TYPE, DEFAULT)
+dnl AC_CHECK_TYPE(TYPE, DEFAULT [, INCLUDES])
AC_DEFUN(AC_CHECK_TYPE,
[AC_REQUIRE([AC_HEADER_STDC])dnl
AC_MSG_CHECKING(for $1)
[AC_EGREP_CPP(dnl
changequote(<<,>>)dnl
<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
-changequote([,]), [#include <sys/types.h>
+changequote([,]), ifelse([$3],,[#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
-#endif], eval "ac_cv_type_$1=yes", eval "ac_cv_type_$1=no")])dnl
+#endif],[$3])
+, eval "ac_cv_type_$1=yes", eval "ac_cv_type_$1=no")])dnl
if eval "test \"`echo '$ac_cv_type_'$1`\" = yes"; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
- AC_DEFINE_UNQUOTED($1, $2)
+ AC_DEFINE_UNQUOTED($1, $2, [Define to \`$2' if <sys/types.h> does not define.])
fi
])
This macro is used to check for typedefs not covered by the particular
test macros.
-@defmac AC_CHECK_TYPE (@var{type}, @var{default})
+@defmac AC_CHECK_TYPE (@var{type}, @var{default} @r{[}, @var{includes}@r{]})
@maindex CHECK_TYPE
If the type @var{type} is not defined in @file{sys/types.h}, or
@file{stdlib.h} or @file{stddef.h} if they exist, define it to be the
C (or C++) builtin type @var{default}; e.g., @samp{short} or
-@samp{unsigned}.
+@samp{unsigned}. The default header files to search can be replaced
+by supplying the optional argument @var{includes}.
@end defmac
@node C Compiler Characteristics, Fortran 77 Compiler Characteristics, Typedefs, Existing Tests
This macro is used to check for typedefs not covered by the particular
test macros.
-@defmac AC_CHECK_TYPE (@var{type}, @var{default})
+@defmac AC_CHECK_TYPE (@var{type}, @var{default} @r{[}, @var{includes}@r{]})
@maindex CHECK_TYPE
If the type @var{type} is not defined in @file{sys/types.h}, or
@file{stdlib.h} or @file{stddef.h} if they exist, define it to be the
C (or C++) builtin type @var{default}; e.g., @samp{short} or
-@samp{unsigned}.
+@samp{unsigned}. The default header files to search can be replaced
+by supplying the optional argument @var{includes}.
@end defmac
@node C Compiler Characteristics, Fortran 77 Compiler Characteristics, Typedefs, Existing Tests
dnl ### Checking for typedefs
-dnl AC_CHECK_TYPE(TYPE, DEFAULT)
+dnl AC_CHECK_TYPE(TYPE, DEFAULT [, INCLUDES])
AC_DEFUN(AC_CHECK_TYPE,
[AC_REQUIRE([AC_HEADER_STDC])dnl
AC_MSG_CHECKING(for $1)
[AC_EGREP_CPP(dnl
changequote(<<,>>)dnl
<<(^|[^a-zA-Z_0-9])$1[^a-zA-Z_0-9]>>dnl
-changequote([,]), [#include <sys/types.h>
+changequote([,]), ifelse([$3],,[#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
-#endif], eval "ac_cv_type_$1=yes", eval "ac_cv_type_$1=no")])dnl
+#endif],[$3])
+, eval "ac_cv_type_$1=yes", eval "ac_cv_type_$1=no")])dnl
if eval "test \"`echo '$ac_cv_type_'$1`\" = yes"; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
- AC_DEFINE_UNQUOTED($1, $2)
+ AC_DEFINE_UNQUOTED($1, $2, [Define to \`$2' if <sys/types.h> does not define.])
fi
])