summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-08-28 22:41:11 +0100
committerRoy Marples <roy@marples.name>2019-08-28 22:41:11 +0100
commit933e0df9ee7ae54807608555e1d41286d4253e25 (patch)
tree3bf0874402ce53fb009a5ff0ff3a9cf68c427db0 /configure
parente3817d6db34cd0c5dbcd809f2fb615fecb696f89 (diff)
downloaddhcpcd-933e0df9ee7ae54807608555e1d41286d4253e25.tar.xz
build: Fix import-src when there is no compat to import.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 11 insertions, 3 deletions
diff --git a/configure b/configure
index 69bf4a72..fae17464 100755
--- a/configure
+++ b/configure
@@ -504,10 +504,18 @@ if [ -z "$AUTH" -o "$AUTH" = yes ]; then
echo "Enabling Authentication"
echo "CPPFLAGS+= -DAUTH" >>$CONFIG_MK
echo "SRCS+= auth.c" >>$CONFIG_MK
- echo "CRYPT_SRCS+= \${HMAC_SRC}" >>$CONFIG_MK
+ if [ -n "$HMAC_SRC" ]; then
+ echo "CRYPT_SRCS+= \${HMAC_SRC}" >>$CONFIG_MK
+ fi
fi
-if [ -z "$INET6" -o "$INET6" = yes -o -z "$AUTH" -o "$AUTH" = yes ]; then
- echo "CRYPT_SRCS+= \${MD5_SRC} \${SHA256_SRC}" >>$CONFIG_MK
+if [ -z "$INET6" ] || [ "$INET6" = yes ] || \
+ [ -z "$AUTH" ] || [ "$AUTH" = yes ]; then
+ if [ -n "$MD5_SRC" ]; then
+ echo "CRYPT_SRCS+= \${MD5_SRC}" >>$CONFIG_MK
+ fi
+ if [ -n "$SHA256_SRC" ]; then
+ echo "CRYPT_SRCS+= \${SHA256_SRC}" >>$CONFIG_MK
+ fi
fi
echo "Using compiler .. $CC"