]> granicus.if.org Git - postgresql/commit
Replace obsolete AC_LANG_FUNC_LINK_TRY autoconf macro.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Aug 2011 23:52:13 +0000 (19:52 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 29 Aug 2011 23:52:13 +0000 (19:52 -0400)
commitcbd51548dc1869fde58b621ea3c2fc9386947ea9
treeabdd8b39429a52fe95a5df0d5b57516714ad5bb1
parenta2d9f9478e3cc37e534681f702724345050f9ec7
Replace obsolete AC_LANG_FUNC_LINK_TRY autoconf macro.

The version of this macro used in autoconf 2.59 is capable of incorrectly
succeeding (ie, reporting that a library function is available when it
isn't), if the compiler performs link-time optimization and decides that
it can optimize the function reference away entirely.  Replace it with the
coding used in autoconf 2.61 and later, which forces the program result to
depend on the function's result so that it cannot be optimized away.  This
should fix build failures currently being seen on buildfarm member anchovy.

This patch affects the 8.2 and 8.3 branches only, since later branches are
using autoconf versions that don't have this problem.
config/c-library.m4
configure