From: Elronnd Date: Mon, 6 Feb 2017 01:48:11 +0000 (-0700) Subject: (hopefully) put -lpthread in LIBS instead of CFLAGS X-Git-Tag: v1.6.1-roc-dev~54^2 X-Git-Url: https://skyeroc.xyz/gitweb/?a=commitdiff_plain;h=118ce808ca9d2a529d2410a1c39359dd1284e65b;p=dgamelaunch (hopefully) put -lpthread in LIBS instead of CFLAGS --- diff --git a/configure.ac b/configure.ac index 8c63165..4000a22 100644 --- a/configure.ac +++ b/configure.ac @@ -15,9 +15,9 @@ if test -z "$LEX"; then AC_MSG_ERROR([lex or flex not found.]) fi -LIBS="$LIBS $LEXLIB" +AC_CHECK_LIB(pthread, pthread_create, [PTHREAD_LIBS+=-lpthread]) -AC_CHECK_LIB(pthread, pthread_create, [PTHREAD_CFLAGS+=-lpthread]) +LIBS="$LIBS $LEXLIB $PTHREAD_LIBS" AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc) if test -z "$YACC"; then