]> granicus.if.org Git - postgresql/commit
Ignore libedit/libreadline while probing for standard functions.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Dec 2012 21:22:19 +0000 (16:22 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 18 Dec 2012 21:22:19 +0000 (16:22 -0500)
commit31e0349a1694ceff82b389a9ff4ab6b888f3ab02
treeec50552b9af99a530cb313e2ad1b747f8abd0587
parentfe2ef429a19b25903438b882ce16617a6e700d0f
Ignore libedit/libreadline while probing for standard functions.

Some versions of libedit expose bogus definitions of setproctitle(),
optreset, and perhaps other symbols that we don't want configure to pick up
on.  There was a previous report of similar problems with strlcpy(), which
we addressed in commit 59cf88da91bc88978b05275ebd94ac2d980c4047, but the
problem has evidently grown in scope since then.  In hopes of not having to
deal with it again in future, rearrange configure's tests for supplied
functions so that we ignore libedit/libreadline except when probing
specifically for functions we expect them to provide.

Per report from Christoph Berg, though this is slightly more aggressive
than his proposed patch.
configure
configure.in