changeset 2504:4ee5d28155d5 draft

Fix compile on FreeBSD
author Roy Marples <roy@marples.name>
date Mon, 02 Jun 2014 15:00:24 +0000
parents f0bff129e321
children a258c02383fb
files configure
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Mon Jun 02 14:48:33 2014 +0000
+++ b/configure	Mon Jun 02 15:00:24 2014 +0000
@@ -789,7 +789,7 @@
 	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 @@
 EOF
 	[ -n "$SHA2_H" ] && echo "#include <$SHA2_H>">>_sha256.c
 	cat <<EOF >>_sha256.c
-#include <sha2.h>
 #include <stdlib.h>
 int main(void) {
 	SHA256_CTX context;
@@ -823,7 +822,7 @@
 		SHA2="yes (-lmd)"
 		SHA2_LIB=-lmd
 	else
-		MD5=no
+		SHA2=no
 	fi
 	echo "$SHA2"
 	rm -f _sha256.c _sha256