Test whether the C++ compiler works by compiling a test program
commite3f7d256c32307d211b728582fb688512cddfb24
authorColomban Wendling <ban@herbesfolles.org>
Sat, 30 Jul 2016 22:40:58 +0000 (31 00:40 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Sat, 30 Jul 2016 22:54:56 +0000 (31 00:54 +0200)
tree9e5db9ece783be1198be36a03f6b366de93a27e7
parent5d8e291c6f7e5dfdfaf11cfe11e46684ffc669b5
Test whether the C++ compiler works by compiling a test program

This is more reliable than using `which`, which doesn't work if the CXX
environment variable is set to something else than an executable (e.g
contains options), and is apparently less portable on some systems.

See:
 * http://lists.geany.org/pipermail/devel/2009-September/001367.html,
   which lead to 5bb28825aadb43ea8ba536c34970d53860b50759.
 * https://sourceforge.net/p/geany/bugs/455/, which lead to a revert
   of the above, 5b9605a9d6d799629b8ed3163596069c8c948b06.

Fixes #829.
configure.ac
m4/geany-prog-cxx.m4 [new file with mode: 0644]