Skip to content

Commit

Permalink
configure: Detect (and reject) LibreSSL
Browse files Browse the repository at this point in the history
Rebased-From: a5a81f7
Github-Pull: #6244
  • Loading branch information
luke-jr authored and laanwj committed Jun 10, 2015
1 parent 3eada74 commit 0401aa2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,14 @@ else
fi
fi

AC_CHECK_LIB([crypto],[RAND_egd],[],[
AC_ARG_WITH([libressl],
[AS_HELP_STRING([--with-libressl],[Build with system LibreSSL (default is no; DANGEROUS; NOT SUPPORTED)])],
[AC_MSG_WARN([Detected LibreSSL: This is NOT supported, and may break consensus compatibility!])],
[AC_MSG_ERROR([Detected LibreSSL: This is NOT supported, and may break consensus compatibility!])]
)
])

CFLAGS_TEMP="$CFLAGS"
LIBS_TEMP="$LIBS"
CFLAGS="$CFLAGS $SSL_CFLAGS $CRYPTO_CFLAGS"
Expand Down

0 comments on commit 0401aa2

Please sign in to comment.