pgsql: Replace obsolete AC_LANG_FUNC_LINK_TRY autoconf macro. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Replace obsolete AC_LANG_FUNC_LINK_TRY autoconf macro.
Date
Msg-id E1QyBcz-0004Yg-9o@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f81da5997eaeebb481fb9d5d0c36bfc943bc3159

Modified Files
--------------
config/c-library.m4 |   69 ++++++
configure           |  618 +++++++++++++++++++++------------------------------
2 files changed, 327 insertions(+), 360 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix concat_ws() to not insert a separator after leading NULL arg
Next
From: Robert Haas
Date:
Subject: pgsql: Remove some tabs from README file.