Use a more bulletproof test for whether finite() and isinf() are present.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Jan 2006 19:24:02 +0000 (19:24 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 12 Jan 2006 19:24:02 +0000 (19:24 +0000)
commit01e2a15adac9e437ac16fd0a6aef427f4eb78aad
treeac6f796e89002e9923aad1407e7f7ccb0c125f40
parent2946ccf35f3a2ba1f3eb78bdc24433ad2d472192
Use a more bulletproof test for whether finite() and isinf() are present.
It seems that recent gcc versions can optimize away calls to these functions
even when the functions do not exist on the platform, resulting in a bogus
positive result.  Avoid this by using a non-constant argument and ensuring
that the function result is not simply discarded.  Per report from
François Laupretre.
configure
configure.in