Skip to content

Commit

Permalink
configure: Check for pkg-config "openssl" library instead of "libssl".
Browse files Browse the repository at this point in the history
Checking for libssl only does not necessarily link against libcrypto, so
the build can gratuitously fail.

Reported-by: Dave Walker <[email protected]>
Ubuntu bug #680439.
  • Loading branch information
blp committed Nov 29, 2010
1 parent 7045a62 commit 924c243
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Brad Hall [email protected]
Brandon Heller [email protected]
Bryan Fulton [email protected]
Cedric Hobbs [email protected]
Dave Walker [email protected]
Derek Cormier [email protected]
DK Moon [email protected]
Ghanem Bahri [email protected]
Expand Down
6 changes: 3 additions & 3 deletions m4/openvswitch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ AC_DEFUN([OVS_CHECK_OPENSSL],
if test "$ssl" != false; then
dnl Make sure that pkg-config is installed.
m4_pattern_forbid([PKG_CHECK_MODULES])
PKG_CHECK_MODULES([SSL], [libssl],
PKG_CHECK_MODULES([SSL], [openssl],
[HAVE_OPENSSL=yes],
[HAVE_OPENSSL=no
if test "$ssl" = check; then
AC_MSG_WARN([Cannot find libssl:
AC_MSG_WARN([Cannot find openssl:
$SSL_PKG_ERRORS
OpenFlow connections over SSL will not be supported.
(You may use --disable-ssl to suppress this warning.)])
else
AC_MSG_ERROR([Cannot find libssl (use --disable-ssl to configure without SSL support)])
AC_MSG_ERROR([Cannot find openssl (use --disable-ssl to configure without SSL support)])
fi])
else
HAVE_OPENSSL=no
Expand Down

0 comments on commit 924c243

Please sign in to comment.