aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/libiberty.m4
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-09 20:47:26 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-10 19:53:05 -0500
commit908ff469f594ea64a1a7e5ec7ad1b0cb9988c42e (patch)
tree41153e306ac3d68602c6dd5f43014f9d4f750547 /gdbsupport/libiberty.m4
parent3f258212a8212ac2530bae48c306f7763d542594 (diff)
downloadgdb-908ff469f594ea64a1a7e5ec7ad1b0cb9988c42e.zip
gdb-908ff469f594ea64a1a7e5ec7ad1b0cb9988c42e.tar.gz
gdb-908ff469f594ea64a1a7e5ec7ad1b0cb9988c42e.tar.bz2
gdb: libiberty: switch to AC_CHECK_DECLS_ONCE
Only check these decls once in case other m4 macros also look for them. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdbsupport/libiberty.m4')
-rw-r--r--gdbsupport/libiberty.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/gdbsupport/libiberty.m4 b/gdbsupport/libiberty.m4
index 73673a9..5345a62 100644
--- a/gdbsupport/libiberty.m4
+++ b/gdbsupport/libiberty.m4
@@ -25,7 +25,8 @@ AC_DEFUN([libiberty_INIT],
# Check for presence and size of long long.
AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
- AC_CHECK_DECLS([basename(char *), ffs, asprintf, vasprintf, snprintf, vsnprintf])
- AC_CHECK_DECLS([strtol, strtoul, strtoll, strtoull])
- AC_CHECK_DECLS([strverscmp])
+ AC_CHECK_DECLS([basename(char *)])
+ AC_CHECK_DECLS_ONCE([ffs, asprintf, vasprintf, snprintf, vsnprintf])
+ AC_CHECK_DECLS_ONCE([strtol, strtoul, strtoll, strtoull])
+ AC_CHECK_DECLS_ONCE([strverscmp])
])