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
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
fi
AX_PTHREAD([], AC_MSG_ERROR([no POSIX threads support detected]))
# If in_addr_t is not defined use unsigned int.
AC_CHECK_TYPES([in_addr_t], [], [], [[#include <netinet/in.h>]])
......
......@@ -120,6 +120,7 @@ libXcomp_la_LIBADD = \
@JPEG_LIBS@ \
@PNG_LIBS@ \
@Z_LIBS@ \
@PTHREAD_LIBS@ \
$(NULL)
AM_CXXFLAGS = \
......@@ -127,13 +128,18 @@ AM_CXXFLAGS = \
$(JPEG_CFLAGS) \
$(PNG_CFLAGS) \
$(Z_CFLAGS) \
$(PTHREAD_CFLAGS) \
$(NULL)
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
$(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
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