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

<p>See:</p>

<ul>
<li>
<a href="http://lists.geany.org/pipermail/devel/2009-September/001367.html">http://lists.geany.org/pipermail/devel/2009-September/001367.html</a>,
which lead to <a href="https://github.com/geany/geany/commit/5bb28825aadb43ea8ba536c34970d53860b50759" class="commit-link"><tt>5bb2882</tt></a>.</li>
<li>
<a href="https://sourceforge.net/p/geany/bugs/455/">https://sourceforge.net/p/geany/bugs/455/</a>, which lead to a revert
of the above, <a href="https://github.com/geany/geany/commit/5b9605a9d6d799629b8ed3163596069c8c948b06" class="commit-link"><tt>5b9605a</tt></a>.</li>
</ul>

<p>Fixes <a href="https://github.com/geany/geany/issues/829" class="issue-link js-issue-link" data-url="https://github.com/geany/geany/issues/829" data-id="122814833" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#829</a>.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/1155'>https://github.com/geany/geany/pull/1155</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Test whether the C++ compiler works by compiling a test program</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1155/files#diff-0">configure.ac</a>
    (6)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/geany/geany/pull/1155/files#diff-1">m4/geany-prog-cxx.m4</a>
    (20)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/1155.patch'>https://github.com/geany/geany/pull/1155.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/1155.diff'>https://github.com/geany/geany/pull/1155.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1155">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ-i0yqD1kEhh-3PDIJORLGJfJYszks5qa9a6gaJpZM4JY6WQ">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ8GZMhOAnKSumUtU-HA6SF8kmyT4ks5qa9a6gaJpZM4JY6WQ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/1155"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>