Skip to content

Commit

Permalink
configure: Try openssl.pc after libcrypto.pc
Browse files Browse the repository at this point in the history
OpenSSL < 0.9.8 didn’t ship libcrypto.pc.

Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Jan 15, 2013
1 parent 1f121cb commit 58b6ce5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ AS_IF([test "x$with_zephyr" != xno],
[PKG_CHECK_MODULES([LIBCRYPTO], [libcrypto],
[AM_CFLAGS="${AM_CFLAGS} ${LIBCRYPTO_CFLAGS}"
LIBS="${LIBS} ${LIBCRYPTO_LIBS}"
])])
],
[PKG_CHECK_MODULES([OPENSSL], [openssl],
[AM_CFLAGS="${AM_CFLAGS} ${OPENSSL_CFLAGS}"
LIBS="${LIBS} ${OPENSSL_LIBS}"
])])])
AC_CHECK_LIB([zephyr], [ZGetSender],
[LIBS="$LIBS -lzephyr"
Expand Down

0 comments on commit 58b6ce5

Please sign in to comment.