]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on FreeBSD
authorRoy Marples <roy@marples.name>
Mon, 2 Jun 2014 15:00:24 +0000 (15:00 +0000)
committerRoy Marples <roy@marples.name>
Mon, 2 Jun 2014 15:00:24 +0000 (15:00 +0000)
configure

index 2d49f86d3a5550c912532d3019e35745c9966cd8..e9973f36c70dc1d827b1f100bba846662712a72a 100755 (executable)
--- 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