diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-04-18 21:50:07 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-04-18 21:55:17 -0400 |
commit | 37e9f18266e768ad93243fd34f9046c260b3096b (patch) | |
tree | ccb57e877ff8e68fdad6eaeb028a62182ba20e0d /sim/m4/sim_ac_common.m4 | |
parent | 3e91feb948093ffc52678681401cc2adabd13d38 (diff) | |
download | gdb-37e9f18266e768ad93243fd34f9046c260b3096b.zip gdb-37e9f18266e768ad93243fd34f9046c260b3096b.tar.gz gdb-37e9f18266e768ad93243fd34f9046c260b3096b.tar.bz2 |
sim: switch to AC_CHECK_FUNCS_ONCE & merge a little
This avoids duplicate tests for functions between common m4, arches,
and any other sources that would trigger func tests.
Also manually delete known duplicate function tests between the m4,
bfin, and v850 ports.
Diffstat (limited to 'sim/m4/sim_ac_common.m4')
-rw-r--r-- | sim/m4/sim_ac_common.m4 | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sim/m4/sim_ac_common.m4 b/sim/m4/sim_ac_common.m4 index 8cb45a8..7845142 100644 --- a/sim/m4/sim_ac_common.m4 +++ b/sim/m4/sim_ac_common.m4 @@ -56,8 +56,18 @@ AC_CHECK_HEADERS(unistd.h) AC_CHECK_HEADERS(sys/time.h sys/times.h sys/resource.h sys/mman.h) AC_CHECK_HEADERS(fcntl.h fpu_control.h) AC_CHECK_HEADERS(dlfcn.h sys/stat.h) -AC_CHECK_FUNCS(getrusage time sigaction __setfpucw) -AC_CHECK_FUNCS(mmap munmap lstat truncate ftruncate posix_fallocate) +AC_CHECK_FUNCS_ONCE(m4_flatten([ + __setfpucw + ftruncate + getrusage + lstat + mmap + munmap + posix_fallocate + sigaction + time + truncate +])) 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], |