Skip to content

Commit

Permalink
ax_pthread: Check for g++ instead of gcc
Browse files Browse the repository at this point in the history
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
psychon committed Sep 11, 2013
1 parent fabf94a commit 8cf9389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m4/ax_pthread.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 8cf9389

Please sign in to comment.