X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=6abd5211ee1ac2a1372c6d214c8d092e7f6cea34;hb=cf6207b610f15e73984e94c6c84ee07730ec746b;hp=4ec1972ac7348f8ae98615745690b94c442bc87a;hpb=9df2b7bb71e50e05f63789658c91a73c175b6787;p=openvswitch diff --git a/configure.ac b/configure.ac index 4ec1972a..6abd5211 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,23 @@ AC_CHECK_HEADER([linux/netlink.h], [HAVE_NETLINK=no], [#include ]) AM_CONDITIONAL([HAVE_NETLINK], [test "$HAVE_NETLINK" = yes]) +if test "$HAVE_NETLINK" = yes; then + AC_DEFINE([HAVE_NETLINK], [1], + [Define to 1 if Netlink protocol is available.]) +fi + +PKG_CHECK_MODULES([SSL], [libssl], + [HAVE_OPENSSL=yes], + [HAVE_OPENSSL=no + AC_MSG_WARN([Cannot find libssl: + +$SSL_PKG_ERRORS + +OpenFlow will not support SSL connections.])]) +AM_CONDITIONAL([HAVE_OPENSSL], [test "$HAVE_OPENSSL" = yes]) +if test "$HAVE_OPENSSL" = yes; then + AC_DEFINE([HAVE_OPENSSL], [1], [Define to 1 if OpenSSL is installed.]) +fi AC_CHECK_LIB([socket], [connect]) AC_CHECK_LIB([resolv], [gethostbyname])