mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
Merge pull request #569 from jpoliv/master
Make "./configure --with-system-pgm" detect the OpenPGM 5.2 system library.
This commit is contained in:
commit
d5f603690f
10
configure.ac
10
configure.ac
@ -349,10 +349,18 @@ fi
|
||||
# Build with system openpgm
|
||||
if test "x$with_system_pgm_ext" != "xno"; then
|
||||
m4_ifdef([PKG_CHECK_MODULES], [
|
||||
PKG_CHECK_MODULES([OpenPGM], [openpgm-5.1 >= 5.1])
|
||||
have_pgm_system_library="no"
|
||||
PKG_CHECK_MODULES([OpenPGM], [openpgm-5.2 >= 5.2],
|
||||
[ have_pgm_system_library="yes" ],
|
||||
[PKG_CHECK_MODULES([OpenPGM], [openpgm-5.1 >= 5.1],
|
||||
[ have_pgm_system_library="yes" ])
|
||||
]
|
||||
)
|
||||
if test "x$have_pgm_system_library" = "xyes"; then
|
||||
AC_DEFINE(ZMQ_HAVE_OPENPGM, 1, [Have OpenPGM extension])
|
||||
LIBZMQ_EXTRA_CXXFLAGS="$OpenPGM_CFLAGS $LIBZMQ_EXTRA_CXXFLAGS"
|
||||
LIBS="$OpenPGM_LIBS $LIBS"
|
||||
fi
|
||||
],
|
||||
[AC_MSG_ERROR([--with-system-pgm requires a working pkg-config installation])])
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user