Make configure probe for mbstowcs_l as well as wcstombs_l.
authorTom Lane <[email protected]>
Fri, 31 Aug 2012 18:18:02 +0000 (14:18 -0400)
committerTom Lane <[email protected]>
Fri, 31 Aug 2012 18:18:02 +0000 (14:18 -0400)
commite46794420ee37f15d3a6da771b7703fcd9b1ea91
tree2b90d825373d73a5a4e005e15fdb75358f533624
parentd2528e5dbf1ad6e391f40712a27d4d199b43100d
Make configure probe for mbstowcs_l as well as wcstombs_l.

We previously supposed that any given platform would supply both or neither
of these functions, so that one configure test would be sufficient.  It now
appears that at least on AIX this is not the case ... which is likely an
AIX bug, but nonetheless we need to cope with it.  So use separate tests.
Per bug #6758; thanks to Andrew Hastie for doing the followup testing
needed to confirm what was happening.

Backpatch to 9.1, where we began using these functions.
configure
configure.in
src/backend/utils/adt/pg_locale.c
src/include/pg_config.h.in
src/include/pg_config.h.win32