[Openvpn-devel,v1] configure: Output compiler version

Message ID 20261022081514.2882-1-gert@greenie.muc.de
State New
Headers
Series [Openvpn-devel,v1] configure: Output compiler version |

Commit Message

Gert Doering Oct. 22, 2026, 8:15 a.m. UTC
  From: Frank Lichtenheld <frank@lichtenheld.com>

CMake does this and it is really useful when looking at
logs in buildbot, so one does know which compiler was
used.

Change-Id: I230654e770c0556976a9bf4aaae9bcbea79b31e9
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2026
---

This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2026
This mail reflects revision 1 of this Change.

Acked-by according to Gerrit (reflected above):
Arne Schwabe <arne-openvpn@rfc2549.org>
  

Comments

Gert Doering Oct. 22, 2026, 9:14 a.m. UTC | #1
Imminently useful...

  checking compiler version... gcc (Gentoo 16.2.1_p20260926 p1) 16.2.1 20260926
  checking compiler version... gcc (FreeBSD Ports Collection) 14.2.0

(= ran a test run on Linux and FreeBSD)

Your patch has been applied to the master and release/2.7 branch.

commit a51224225e495d09d6d200c30c0c6c4a8fffb3d3 (master)
commit 8bd3cec344e0764b978a7b001bc3f88de6a78092 (release/2.7)
Author: Frank Lichtenheld
Date:   Thu Oct 22 10:15:08 2026 +0200

     configure: Output compiler version

     Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
     Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2026
     Message-Id: <20261022081514.2882-1-gert@greenie.muc.de>
     URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg40086.html
     Signed-off-by: Gert Doering <gert@greenie.muc.de>


--
kind regards,

Gert Doering
  

Patch

diff --git a/configure.ac b/configure.ac
index e83aba7..818b10d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -391,6 +391,10 @@ 
 fi
 
 AC_PROG_CC
+# AC_PROG_CC doesn't output any useful information
+AC_MSG_CHECKING([compiler version])
+CC_version=$($CC --version | head -n1)
+AC_MSG_RESULT([$CC_version])
 AC_PROG_CPP
 AC_PROG_INSTALL
 AC_PROG_LN_S