postgresql/config
Tom Lane 47fca011b8 Use return instead of exit() in configure
Using exit() requires stdlib.h, which is not included.  Use return
instead.  Also add return type for main().

This back-patches commit 1c0cf52b3 into out-of-support branches,
pursuant to a newly-established project policy that we'll try to keep
out-of-support branches buildable on modern platforms for at least
ten major releases back, ensuring people can test pg_dump and psql
compatibility against servers that far back.  With the current
development branch being v15, that works out to keeping 9.2 and up
buildable as of today.

This fix is needed to get through 'configure' when using recent
macOS (and possibly other clang-based toolchains).  It seems to
be sufficient to get through 'check-world', although there are
annoyances such as compiler warnings, which will be dealt with
separately.

Original patch by Peter Eisentraut

Discussion: https://postgr.es/m/d0316012-ece7-7b7e-2d36-9c38cb77cb3b@enterprisedb.com
2021-12-12 14:54:26 -05:00
..
Makefile Install our "missing" script where PGXS builds can find it. 2015-12-11 16:14:36 -05:00
ac_func_accept_argtypes.m4 Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
ax_pthread.m4 Back-patch updated thread flags tests into 9.4 and 9.5. 2018-11-19 14:24:52 -05:00
c-compiler.m4 Use return instead of exit() in configure 2021-12-12 14:54:26 -05:00
c-library.m4 Use return instead of exit() in configure 2021-12-12 14:54:26 -05:00
check_decls.m4 Fix configure's AC_CHECK_DECLS tests to work correctly with clang. 2018-11-19 12:01:47 -05:00
config.guess Update config.guess and config.sub 2014-05-10 10:33:34 -04:00
config.sub Update config.guess and config.sub 2014-05-10 10:33:34 -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
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:13:49 -08:00
prep_buildtree find -path is not portable, so use grep -v instead. 2010-10-25 10:04:00 -03:00
programs.m4 Fix configure's incorrect version tests for flex and perl. 2016-05-02 11:18:11 -04:00
python.m4 configure: Update python search order 2019-09-08 13:45:13 -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:09 -04:00