Commit 381c39b8 authored by Mihai Moldovan's avatar Mihai Moldovan

nxcomp: add AX_PTHREAD code from autoconf-archive and check for pthread support.

parent 1f717c6f
...@@ -63,6 +63,8 @@ if test "$FreeBSD" = yes; then ...@@ -63,6 +63,8 @@ if test "$FreeBSD" = yes; then
CPPFLAGS="$CPPFLAGS -I/usr/local/include" CPPFLAGS="$CPPFLAGS -I/usr/local/include"
fi fi
AX_PTHREAD([], AC_MSG_ERROR([no POSIX threads support detected]))
# If in_addr_t is not defined use unsigned int. # If in_addr_t is not defined use unsigned int.
AC_CHECK_TYPES([in_addr_t], [], [], [[#include <netinet/in.h>]]) AC_CHECK_TYPES([in_addr_t], [], [], [[#include <netinet/in.h>]])
......
...@@ -120,6 +120,7 @@ libXcomp_la_LIBADD = \ ...@@ -120,6 +120,7 @@ libXcomp_la_LIBADD = \
@JPEG_LIBS@ \ @JPEG_LIBS@ \
@PNG_LIBS@ \ @PNG_LIBS@ \
@Z_LIBS@ \ @Z_LIBS@ \
@PTHREAD_LIBS@ \
$(NULL) $(NULL)
AM_CXXFLAGS = \ AM_CXXFLAGS = \
...@@ -127,13 +128,18 @@ AM_CXXFLAGS = \ ...@@ -127,13 +128,18 @@ AM_CXXFLAGS = \
$(JPEG_CFLAGS) \ $(JPEG_CFLAGS) \
$(PNG_CFLAGS) \ $(PNG_CFLAGS) \
$(Z_CFLAGS) \ $(Z_CFLAGS) \
$(PTHREAD_CFLAGS) \
$(NULL) $(NULL)
AM_CPPFLAGS = \ AM_CPPFLAGS = \
-I$(top_srcdir)/include \ -I$(top_srcdir)/include \
$(NULL) $(NULL)
libXcomp_la_LDFLAGS = -version-number @LT_COMP_VERSION@ -no-undefined libXcomp_la_LDFLAGS = \
-version-number @LT_COMP_VERSION@ \
-no-undefined \
$(PTHREAD_LDFLAGS) \
$(NULL)
libXcompincludedir = $(includedir)/nx libXcompincludedir = $(includedir)/nx
libXcompinclude_HEADERS = \ libXcompinclude_HEADERS = \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment