summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-11-19 12:01:47 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2018-11-19 12:01:47 -0500
commit16fbac39ff68a737317f6fc7be78cc93a14856af (patch)
treeeeb453e1fffc7781e3a8442efd88c384f4a14b38 /aclocal.m4
parent5c9a5513a3967367e5fcc9237bc4146f4b24b408 (diff)
downloadpostgresql-16fbac39ff68a737317f6fc7be78cc93a14856af.tar.gz
Fix configure's AC_CHECK_DECLS tests to work correctly with clang.
The test case that Autoconf uses to discover whether a function has been declared doesn't work reliably with clang, because clang reports a warning not an error if the name is a known built-in function. On some platforms, this results in a lot of compile-time warnings about strlcpy and related functions not having been declared. There is a fix for this (by Noah Misch) in the upstream Autoconf sources, but since they've not made a release in years and show no indication of doing so anytime soon, let's just absorb their fix directly. We can revert this when and if we update to a newer Autoconf release. Back-patch to all supported branches. Discussion: https://postgr.es/m/26819.1542515567@sss.pgh.pa.us
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index a517e949f1..bfd34ecec8 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -4,6 +4,7 @@ m4_include([config/ax_prog_perl_modules.m4])
m4_include([config/ax_pthread.m4])
m4_include([config/c-compiler.m4])
m4_include([config/c-library.m4])
+m4_include([config/check_decls.m4])
m4_include([config/docbook.m4])
m4_include([config/general.m4])
m4_include([config/libtool.m4])