summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-06-02 15:00:24 +0000
committerRoy Marples <roy@marples.name>2014-06-02 15:00:24 +0000
commit153c1a11affe0952e76d6a4a49cbdd9261fc110c (patch)
treed68ea557eb4ce49bf0e34212489548985dbc2dcc /configure
parent3ed12ab824919fda7cfae98b6779841e8651984e (diff)
downloaddhcpcd-153c1a11affe0952e76d6a4a49cbdd9261fc110c.tar.xz
Fix compile on FreeBSD
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 2 insertions, 3 deletions
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 <<EOF >>_sha256.c
-#include <sha2.h>
#include <stdlib.h>
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