Add PGAC_PROG_VARCC_VARFLAGS_OPT autoconf macro.

Andres Freund <andres@anarazel.de>

Commit: 3de04e4ed12d0794e87e1db2e729d126cf183a58
Author: Andres Freund <andres@anarazel.de>
Date: 2018-03-20T19:58:08Z
Releases: 11.0
Add PGAC_PROG_VARCC_VARFLAGS_OPT autoconf macro.

The new macro allows to test flags for different compilers and to
store them in different CFLAG like variables.  The existing
PGAC_PROG_CC_CFLAGS_OPT and PGAC_PROG_CC_VAR_OPT are changed to be
just wrappers around the new function.

This'll be used by the upcoming LLVM support, to separately detect
capabilities used by clang, when generating bitcode.

Author: Andres Freund
Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de

Files

PathChange+/−
config/c-compiler.m4 modified +24 −24
configure modified +219 −147

Discussion