Skip to content

Commit a5a81f7

Browse files
committed
configure: Detect (and reject) LibreSSL
1 parent fb061c3 commit a5a81f7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,14 @@ else
677677
fi
678678
fi
679679

680+
AC_CHECK_LIB([crypto],[RAND_egd],[],[
681+
AC_ARG_WITH([libressl],
682+
[AS_HELP_STRING([--with-libressl],[Build with system LibreSSL (default is no; DANGEROUS; NOT SUPPORTED)])],
683+
[AC_MSG_WARN([Detected LibreSSL: This is NOT supported, and may break consensus compatibility!])],
684+
[AC_MSG_ERROR([Detected LibreSSL: This is NOT supported, and may break consensus compatibility!])]
685+
)
686+
])
687+
680688
CFLAGS_TEMP="$CFLAGS"
681689
LIBS_TEMP="$LIBS"
682690
CFLAGS="$CFLAGS $SSL_CFLAGS $CRYPTO_CFLAGS"

0 commit comments

Comments
 (0)