postgresql/config
Noah Misch 1886899420 MSVC: Test whether 32-bit Perl needs -D_USE_32BIT_TIME_T.
Commits 5a5c2feca3 and
b5178c5d08 introduced support for modern
MSVC-built, 32-bit Perl, but they broke use of MinGW-built, 32-bit Perl
distributions like Strawberry Perl and modern ActivePerl.  Perl has no
robust means to report whether it expects a -D_USE_32BIT_TIME_T ABI, so
test this.  Back-patch to 9.3 (all supported versions).

The chief alternative was a heuristic of adding -D_USE_32BIT_TIME_T when
$Config{gccversion} is nonempty.  That banks on every gcc-built Perl
using the same ABI.  gcc could change its default ABI the way MSVC once
did, and one could build Perl with gcc and the non-default ABI.

The GNU make build system could benefit from a similar test, without
which it does not support MSVC-built Perl.  For now, just add a comment.
Most users taking the special step of building Perl with MSVC probably
build PostgreSQL with MSVC.

Discussion: https://postgr.es/m/20171130041441.GA3161526@rfd.leadboat.com
2017-12-08 18:14:08 -08: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 Cope if platform declares mbstowcs_l(), but not locale_t, in <xlocale.h>. 2016-03-15 13:19:58 -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
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 Accept tcl 8.6 in configure's probe for tclsh. 2014-05-10 10:48:04 -04:00
test_quiet_include.h Blacklist xlc 32-bit inlining. 2015-07-29 22:53:40 -04:00