postgres/config
Tom Lane 08aad3c81e Fix detection of the result type of strerror_r().
The method we've traditionally used, of redeclaring strerror_r() to
see if the compiler complains of inconsistent declarations, turns out
not to work reliably because some compilers only report a warning,
not an error.  Amazingly, this has gone undetected for years, even
though it certainly breaks our detection of whether strerror_r
succeeded.

Let's instead test whether the compiler will take the result of
strerror_r() as a switch() argument.  It's possible this won't
work universally either, but it's the best idea I could come up with
on the spur of the moment.

Back-patch of commit 751f532b9.  Buildfarm results indicate that only
icc-on-Linux actually has an issue here; perhaps the lack of field
reports indicates that people don't build PG for production that way.

Discussion: https://postgr.es/m/10877.1537993279@sss.pgh.pa.us
2018-09-30 16:24:56 -04:00
..
ac_func_accept_argtypes.m4 Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
acx_pthread.m4 Better support for thread-support flag detection with clang 2011-02-16 23:15:54 +02:00
c-compiler.m4 Fix "quiet inline" configure test for newer clang compilers. 2014-05-02 15:30:29 -04:00
c-library.m4 Fix detection of the result type of strerror_r(). 2018-09-30 16:24:56 -04:00
config.guess Update config.guess and config.sub 2013-04-26 22:13:03 -04:00
config.sub Update config.guess and config.sub 2013-04-26 22:13:03 -04:00
docbook.m4 Fix configure's search for collateindex.pl. 2012-03-22 00:46:03 -04:00
general.m4 Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
install-sh Fix install-strip on Mac OS X 2012-08-21 23:42:43 -04:00
libtool.m4 Rename AC_PROG_LD* macros to PGAC_PROG_LD*. This avoids clashes with the 2004-07-17 18:53:56 +00:00
Makefile Install our "missing" script where PGXS builds can find it. 2015-12-11 16:14:40 -05:00
missing Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
perl.m4 MSVC: Test whether 32-bit Perl needs -D_USE_32BIT_TIME_T. 2017-12-08 18:14:08 -08:00
prep_buildtree find -path is not portable, so use grep -v instead. 2010-10-25 10:04:00 -03:00
programs.m4 Silence Bison deprecation warnings 2017-01-02 13:51:32 -08:00
python.m4 Remove configure check prohibiting threaded libpython on OpenBSD. 2015-05-26 22:14:59 -04:00
tcl.m4 Make some fixes to allow building Postgres on macOS 10.14 ("Mojave"). 2018-09-25 13:23:29 -04:00
test_quiet_include.h Blacklist xlc 32-bit inlining. 2015-07-29 22:53:40 -04:00