Skip to content

Commit 1865e1e

Browse files
committed
Adding some better checks to configure.ac for external dependencies.
1 parent fe235c4 commit 1865e1e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

configure.ac

+8-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ AC_CHECK_LIB([zmq], [zmq_socket], [],
2323

2424
AC_HEADER_STDC
2525
AC_CHECK_HEADERS([ctype.h fcntl.h float.h pthread.h signal.h stdarg.h \
26-
sys/types.h syslog.h time.h zmq.h jansson.h ev.h libev/ev.h])
26+
sys/types.h syslog.h time.h zmq.h ev.h libev/ev.h])
27+
28+
AC_SEARCH_LIBS([ev_sleep], [ev])
29+
30+
AC_CHECK_HEADER([jansson.h], [], AC_MSG_FAILURE([jansson.h not found]), [])
31+
AC_SEARCH_LIBS([json_loads], [jansson])
32+
33+
AC_SEARCH_LIBS([pthread_create], [pthread])
2734

2835
AC_TYPE_SIZE_T
2936
AC_TYPE_SIGNAL
@@ -33,7 +40,6 @@ AC_FUNC_MALLOC
3340
AC_FUNC_REALLOC
3441
AC_FUNC_STRTOD
3542

36-
3743
if test "x$PCRE_CONFIG" != "x"; then
3844
CFLAGS_SAVE=$CFLAGS
3945
LIBS_SAVE=$LIBS

0 commit comments

Comments
 (0)