AC_SUBST(arch)
if test "$arch" = mips; then
- AC_CACHE_CHECK([for MIPS ABI], [ac_cv_mips_abi],
+ AC_CACHE_CHECK([for _MIPS_SIM], [st_cv__MIPS_SIM],
+ [AC_COMPUTE_INT([st_cv__MIPS_SIM], [_MIPS_SIM],
+ [#include <sgidefs.h>],
+ [AC_MSG_ERROR([_MIPS_SIM cannot be determined])])])
+
+ AC_CACHE_CHECK([for MIPS ABI], [st_cv_mips_abi],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <sgidefs.h>]],
[[int i[_MIPS_SIM == _MIPS_SIM_ABI32 ? 1 : - 1];]])],
- [ac_cv_mips_abi=o32],
+ [st_cv_mips_abi=o32],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <sgidefs.h>]],
[[int i[_MIPS_SIM == _MIPS_SIM_NABI32 ? 1 : - 1];]])],
- [ac_cv_mips_abi=n32],
+ [st_cv_mips_abi=n32],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <sgidefs.h>]],
[[int i[_MIPS_SIM == _MIPS_SIM_ABI64 ? 1 : - 1];]])],
- [ac_cv_mips_abi=n64],
- [ac_cv_mips_abi=unknown])])])])
- case "$ac_cv_mips_abi" in
+ [st_cv_mips_abi=n64],
+ [st_cv_mips_abi=unknown])])])])
+
+ case "$st_cv_mips_abi" in
o32) AC_DEFINE([LINUX_MIPSO32], [1], [Define for _MIPS_SIM_ABI32.]);;
n32) AC_DEFINE([LINUX_MIPSN32], [1], [Define for _MIPS_SIM_NABI32.]);;
n64) AC_DEFINE([LINUX_MIPSN64], [1], [Define for _MIPS_SIM_ABI64.]);;
AC_HEADER_DIRENT
AC_HEADER_STAT
AC_CHECK_MEMBERS(m4_normalize([
+ struct stat.st_atim.tv_nsec,
struct stat.st_blksize,
struct stat.st_blocks,
+ struct stat.st_ctim.tv_nsec,
struct stat.st_flags,
struct stat.st_fstype,
struct stat.st_gen,
+ struct stat.st_mtim.tv_nsec,
struct stat.st_rdev
]))
sendmsg
sendmmsg
sigaction
+ signalfd
stpcpy
strerror
strsignal
linux/utsname.h
mqueue.h
netinet/sctp.h
- poll.h
scsi/sg.h
stropts.h
sys/conf.h
sys/epoll.h
+ sys/eventfd.h
sys/fanotify.h
sys/ioctl.h
- sys/poll.h
sys/reg.h
+ sys/signalfd.h
sys/vfs.h
sys/xattr.h
]))
AC_CHECK_TYPES([struct mmsghdr],,, [#include <sys/socket.h>])
AC_CHECK_MEMBERS([struct msghdr.msg_control],,, [#include <sys/socket.h>])
+AC_CHECK_MEMBERS(m4_normalize([
+ struct stat.st_atime_nsec,
+ struct stat.st_ctime_nsec,
+ struct stat.st_mtime_nsec
+]),,, [#include <sys/types.h>
+#include <asm/stat.h>])
+
AC_CHECK_TYPES([struct stat64],,, [#include <sys/types.h>
#include <asm/stat.h>])
AC_CHECK_TYPES([struct __old_kernel_stat],,, [#include <asm/stat.h>])
siginfo_t.si_timerid,
siginfo_t.si_overrun],,, [#include <signal.h>])
-AC_CHECK_MEMBERS([struct sysinfo.totalhigh,
- struct sysinfo.freehigh,
- struct sysinfo.mem_unit],,, [#include <sys/sysinfo.h>])
-
AC_CHECK_TYPES([struct flock64],,, [#include <fcntl.h>])
AC_CHECK_HEADERS([libaio.h], [