diff options
| author | Roy Marples <roy@marples.name> | 2019-08-28 22:41:11 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-08-28 22:41:11 +0100 |
| commit | 933e0df9ee7ae54807608555e1d41286d4253e25 (patch) | |
| tree | 3bf0874402ce53fb009a5ff0ff3a9cf68c427db0 /configure | |
| parent | e3817d6db34cd0c5dbcd809f2fb615fecb696f89 (diff) | |
| download | dhcpcd-933e0df9ee7ae54807608555e1d41286d4253e25.tar.xz | |
build: Fix import-src when there is no compat to import.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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" |
