Fix configure's AC_CHECK_DECLS tests to work correctly with clang.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Sep 2022 19:42:00 +0000 (15:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 21 Sep 2022 19:42:00 +0000 (15:42 -0400)
commitf6ce9cee620702d8df551cd25761169f45503dc9
tree5c973e8ac5aefbf8cf68daaf6fb9179010bcdc9b
parentbf216123446c4aa81998f51e54e55ae706ff175e
Fix configure's AC_CHECK_DECLS tests to work correctly with clang.

Back-port commit 16fbac39f into 9.3 and 9.2, so that these
out-of-support branches can be built with clang without wading
through a pile of warnings about strlcpy and related functions.
check_decls.m4 required some adaptation to work with autoconf 2.63,
but nothing too major.

Discussion: https://postgr.es/m/26819.1542515567@sss.pgh.pa.us
Discussion: https://postgr.es/m/1081321.1663775084@sss.pgh.pa.us
aclocal.m4
config/check_decls.m4 [new file with mode: 0644]
configure
configure.in