diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-06-12 13:18:29 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-06-12 14:39:44 -0400 |
commit | a48ff3efda87200f2a9b69d72287f9b6cd5dbba1 (patch) | |
tree | b74edecab8a3a10042d07eb13c8ac741ef806948 /sim/m4 | |
parent | d424629da8759410671d96d33a3fbd5bc38f93b2 (diff) | |
download | gdb-a48ff3efda87200f2a9b69d72287f9b6cd5dbba1.zip gdb-a48ff3efda87200f2a9b69d72287f9b6cd5dbba1.tar.gz gdb-a48ff3efda87200f2a9b69d72287f9b6cd5dbba1.tar.bz2 |
sim: ppc: unify header & function & type tests too
Since ppc now shares a config.h with the top-level, move all of its
relevant settings up a level. The ppc port tests a lot more funcs,
but that's because its syscall emulation is a lot more complete.
We'll probably utilize some of these in the common code too.
Diffstat (limited to 'sim/m4')
-rw-r--r-- | sim/m4/sim_ac_platform.m4 | 58 |
1 files changed, 55 insertions, 3 deletions
diff --git a/sim/m4/sim_ac_platform.m4 b/sim/m4/sim_ac_platform.m4 index c68aef1..95760a6 100644 --- a/sim/m4/sim_ac_platform.m4 +++ b/sim/m4/sim_ac_platform.m4 @@ -33,43 +33,89 @@ AC_CHECK_HEADERS_ONCE(m4_flatten([ netinet/tcp.h sys/ioctl.h sys/mman.h + sys/mount.h sys/param.h sys/resource.h sys/select.h sys/socket.h sys/stat.h + sys/statfs.h + sys/termio.h + sys/termios.h + sys/types.h + sys/vfs.h ])) +AC_HEADER_DIRENT AC_CHECK_FUNCS_ONCE(m4_flatten([ __setfpucw + access aint anint + cfgetispeed + cfgetospeed + cfsetispeed + cfsetospeed + chdir chmod + dup + dup2 execv execve + fcntl fork + fstat + fstatfs ftruncate - geteuid + getdirentries getegid + geteuid getgid + getpid + getppid getrusage + gettimeofday getuid + ioctl kill - lstat + link + lseek mmap munmap + pipe posix_fallocate pread - setuid + rmdir + setregid + setreuid setgid + setuid sigaction + sigprocmask sqrt + stat strsignal + symlink + tcdrain + tcflow + tcflush + tcgetattr + tcgetpgrp + tcsendbreak + tcsetattr + tcsetpgrp time truncate + umask + unlink utime ])) +AC_STRUCT_ST_BLKSIZE +AC_STRUCT_ST_BLOCKS +AC_STRUCT_ST_RDEV +AC_STRUCT_TIMEZONE + AC_CHECK_MEMBERS([[struct stat.st_dev], [struct stat.st_ino], [struct stat.st_mode], [struct stat.st_nlink], [struct stat.st_uid], [struct stat.st_gid], [struct stat.st_rdev], [struct stat.st_size], @@ -89,5 +135,11 @@ AC_CHECK_TYPES(socklen_t, [], [], ]) dnl Types used by common code +AC_TYPE_GETGROUPS +AC_TYPE_MODE_T +AC_TYPE_OFF_T +AC_TYPE_PID_T AC_TYPE_SIGNAL +AC_TYPE_SIZE_T +AC_TYPE_UID_T ]) |