Skip to content

Commit

Permalink
Merge pull request #6244
Browse files Browse the repository at this point in the history
a5a81f7 configure: Detect (and reject) LibreSSL (Luke Dashjr)
  • Loading branch information
laanwj committed Jun 10, 2015
2 parents 643114f + a5a81f7 commit d9a94b7
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 @@ -679,6 +679,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 d9a94b7

Please sign in to comment.