From: Roy Marples Date: Mon, 2 Jun 2014 15:00:24 +0000 (+0000) Subject: Fix compile on FreeBSD X-Git-Tag: v6.4.0~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=153c1a11affe0952e76d6a4a49cbdd9261fc110c;p=thirdparty%2Fdhcpcd.git Fix compile on FreeBSD --- diff --git a/configure b/configure index 2d49f86d..e9973f36 100755 --- a/configure +++ b/configure @@ -789,7 +789,7 @@ if [ -z "$SHA2_H" -a -z "$SHA2" -o "$SHA2" != no ]; then printf "Testing for sha2.h ... " if [ -e /usr/include/sha2.h ]; then SHA2_H=sha2.h - elif [ -e /usr/inclde/sha256.h ]; then + elif [ -e /usr/include/sha256.h ]; then SHA2_H=sha256.h fi if [ -n "$SHA2_H" ]; then @@ -807,7 +807,6 @@ if [ -z "$SHA2" ]; then EOF [ -n "$SHA2_H" ] && echo "#include <$SHA2_H>">>_sha256.c cat <>_sha256.c -#include #include int main(void) { SHA256_CTX context; @@ -823,7 +822,7 @@ EOF SHA2="yes (-lmd)" SHA2_LIB=-lmd else - MD5=no + SHA2=no fi echo "$SHA2" rm -f _sha256.c _sha256