From: Pasi Kallinen Date: Fri, 29 Aug 2014 13:28:10 +0000 (+0300) Subject: Add -pthread to CFLAGS X-Git-Tag: v1.6.1-roc-dev~57^2~5 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=46aa412b7b085de9d4fed9020f13583cb2d5b813;p=dgamelaunch Add -pthread to CFLAGS --- diff --git a/configure.ac b/configure.ac index 499f653..8c63165 100644 --- a/configure.ac +++ b/configure.ac @@ -17,6 +17,7 @@ fi LIBS="$LIBS $LEXLIB" +AC_CHECK_LIB(pthread, pthread_create, [PTHREAD_CFLAGS+=-lpthread]) AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc) if test -z "$YACC"; then @@ -47,7 +48,7 @@ AC_PATH_PROG(MAKEDEPEND, makedepend) AC_MSG_CHECKING([how to generate dependency info]) if test "$ac_cv_c_compiler_gnu" = yes; then - CFLAGS="$CFLAGS -Wall -Wno-unused" + CFLAGS="$CFLAGS -Wall -Wno-unused $PTHREAD_CFLAGS" MKDEP="$CC -MM" MKDEP_DIRECT="> .depend" AC_MSG_RESULT(gcc)