From 8cf938931b8d401ee024b3574124d9a49e372545 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 11 Sep 2013 23:56:37 +0200 Subject: [PATCH] ax_pthread: Check for g++ instead of gcc Surprisingly, ZNC is written in C++, not C and thus needs a C++ compiler, not a C one. Signed-off-by: Uli Schlachter --- m4/ax_pthread.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index 5ffcb4b1..90e91ca6 100644 --- a/m4/ax_pthread.m4 +++ b/m4/ax_pthread.m4 @@ -259,7 +259,7 @@ if test "x$ax_pthread_ok" = xyes; then *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; *-osf* | *-hpux*) flag="-D_REENTRANT";; *solaris*) - if test "$GCC" = "yes"; then + if test "$GXX" = "yes"; then flag="-D_REENTRANT" else flag="-mt -D_REENTRANT" @@ -285,7 +285,7 @@ if test "x$ax_pthread_ok" = xyes; then CXXFLAGS="$save_CXXFLAGS" # More AIX lossage: must compile with xlc_r or cc_r - if test x"$GCC" != xyes; then + if test x"$GXX" != xyes; then AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC}) else PTHREAD_CC=$CC