Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files Redefine AC_PROG_CC to cause errors

ZNC is written in C++ and doesn't need a C compiler. This redefine let's us
catch code which accidentally uses the C compiler.

Currently this means that we break due to gl_VISIBILITY.

Signed-off-by: Uli Schlachter <>
  • Loading branch information...
commit 6f2335d529c1f63ac0cb7777165577e1b4995dd1 1 parent ca476ef
@psychon psychon authored
Showing with 6 additions and 0 deletions.
  1. +6 −0
@@ -1,3 +1,9 @@
+dnl This redefines AC_PROG_CC to a version which errors out instead. This is
+dnl because all our tests should be done with the C++ compiler. This should
+dnl catch stuff which accidentally uses the C compiler.
+AC_DEFUN([AC_PROG_CC], [m4_errprint(__file__:__line__[: Something is trying to use the C compiler. Since this is a C++ project, this should not happen!
dnl Needed for AC_PATH_PROGS_FEATURE_CHECK which was added in 2.62
dnl Keep the version number in sync with main.h!
Please sign in to comment.
Something went wrong with that request. Please try again.