Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

Commit 403ebff

Browse files
author
Victor Perron
committed
Tiny corrections to autotools config: wrong --with-czmq handler
Made all the *.h files fo to a $(includedir)/zre folder upon install Includes czmq.h on top of zre.h
1 parent b159fa7 commit 403ebff

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

C/configure.in

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ if test "x$czmq_search_libzmq" = "xyes"; then
7878
fi
7979
fi
8080

81-
AC_CHECK_LIB(zmq, zmq_init, ,[AC_MSG_ERROR([cannot link with -lzmq, install libzmq.])])
81+
AC_CHECK_LIB(zmq, zmq_init,
82+
LIBS="-lzmq $LIBS",
83+
[AC_MSG_ERROR([cannot link with -lzmq, install libzmq.])])
8284

8385
AC_MSG_CHECKING([whether libzmq installation works])
8486
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <zmq.h>],
@@ -89,7 +91,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <zmq.h>],
8991

9092
# libczmq integration
9193
AC_ARG_WITH([libczmq],
92-
[AS_HELP_STRING([--with-czmq],
94+
[AS_HELP_STRING([--with-libczmq],
9395
[Specify libczmq prefix])],
9496
[zre_search_libczmq="yes"],
9597
[])
@@ -103,7 +105,9 @@ if test "x$zre_search_libczmq" = "xyes"; then
103105
fi
104106
fi
105107

106-
AC_CHECK_LIB(czmq, zctx_test, ,[AC_MSG_ERROR([cannot link with -lczmq, install libczmq.])])
108+
AC_CHECK_LIB(czmq, zctx_test,
109+
LIBS="-lczmq $LIBS",
110+
[AC_MSG_ERROR([cannot link with -lczmq, install libczmq.])])
107111

108112
AC_MSG_CHECKING([whether libczmq installation works])
109113
AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <czmq.h>],

C/include/zre.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
#ifndef __ZRE_H_INCLUDED__
2828
#define __ZRE_H_INCLUDED__
2929

30+
#include <czmq.h>
31+
32+
3033
#define ZRE_VERSION_MAJOR 0
3134
#define ZRE_VERSION_MINOR 2
3235
#define ZRE_VERSION_PATCH 0

C/src/Makefile.am

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@ lib_LTLIBRARIES = libzre.la
33
pkgconfigdir = $(libdir)/pkgconfig
44
pkgconfig_DATA = libzre.pc
55

6-
include_HEADERS = \
7-
../include/zre.h
6+
libzre_la_includedir = $(includedir)/zre
7+
libzre_la_include_HEADERS = \
8+
../include/zre.h \
9+
../include/zre_udp.h \
10+
../include/zre_msg.h \
11+
../include/zre_peer.h \
12+
../include/zre_group.h \
13+
../include/zre_log.h \
14+
../include/zre_log_msg.h \
15+
../include/zre_interface.h
16+
817

918
libzre_la_SOURCES = \
1019
zre_interface.c \

0 commit comments

Comments
 (0)