]> git.pond.sub.org Git - empserver/commit
configure: Test GCC-specific compiler flags only when using GCC
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 28 Dec 2020 04:07:50 +0000 (05:07 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 17 Jan 2021 20:24:28 +0000 (21:24 +0100)
commit13362acc46a089b228d878926d7f6a60193e30ab
treef4bc92c5578743c9e4a00a5e926490173952406e
parent6cff48853710884e9bdf2b1c6c74cebb3678c571
configure: Test GCC-specific compiler flags only when using GCC

Commit 23373d01d "configure: Test compiler flags" (v4.4.0) made
configure test whether compiler flags work, to let us use flags that
work only for some compilers.

Unfortunately, the Sun C compiler accepts invalid options with a
warning, breaking the test.  Observed on Solaris 10.

Fix by testing the compiler flags only when AC_PROG_CC detected GCC.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
configure.ac