aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac3
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 8514766..d1317d9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -215,9 +215,11 @@ blogc_make_SOURCES = \
blogc_make_CFLAGS = \
$(AM_CFLAGS) \
+ $(PTHREAD_CFLAGS) \
$(NULL)
blogc_make_LDADD = \
+ $(PTHREAD_LIBS) \
libblogc_make.la \
libblogc_common.la \
$(NULL)
@@ -235,10 +237,12 @@ libblogc_make_la_SOURCES = \
libblogc_make_la_CFLAGS = \
$(AM_CFLAGS) \
+ $(PTHREAD_CFLAGS) \
$(NULL)
libblogc_make_la_LIBADD = \
$(LIBM) \
+ $(PTHREAD_LIBS) \
libblogc_common.la \
$(NULL)
endif
diff --git a/configure.ac b/configure.ac
index 2dfc43e..6e6b490 100644
--- a/configure.ac
+++ b/configure.ac
@@ -106,6 +106,9 @@ AS_IF([test "x$enable_make" = "xyes" -o "x$enable_make_embedded" = "xyes"], [
AC_CHECK_HEADERS([dirent.h fcntl.h libgen.h sys/stat.h sys/wait.h time.h unistd.h],, [
AC_MSG_ERROR([blogc-make tool requested but required headers not found])
])
+ AX_PTHREAD([], [
+ AC_MSG_ERROR([blogc-make tool requested but pthread is not supported])
+ ])
have_make_lib=yes
AS_IF([test "x$enable_make_embedded" = "xyes"], [
MAKE_="enabled (embedded)"