Permalink
Browse files

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 <psychon@znc.in>
  • Loading branch information...
1 parent fabf94a commit 8cf938931b8d401ee024b3574124d9a49e372545 @psychon psychon committed Sep 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 m4/ax_pthread.m4
View
@@ -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

0 comments on commit 8cf9389

Please sign in to comment.