diff options
| author | Roy Marples <roy@marples.name> | 2019-08-28 16:15:04 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-08-28 16:15:04 +0100 |
| commit | cf648d64b2b23ad91ad8cffa704a4a2d3687a091 (patch) | |
| tree | 304fd06eb813d6a4d1da58c0e8d3009c9abd6b5d /configure | |
| parent | 61091306f58db5db2c4c3ae9fcf210563966604b (diff) | |
| download | dhcpcd-cf648d64b2b23ad91ad8cffa704a4a2d3687a091.tar.xz | |
DragonFly: make import-src now prepares the source for importing
I'm a lazy man and there's too many steps to import dhcpcd into
DragonFlyBSD, so hopefully this makes it a lot easier.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1217,6 +1217,14 @@ if [ "$FLS64" = yes ]; then echo "#define HAVE_SYS_BITOPS_H" >>$CONFIG_H fi +# Workaround for DragonFlyBSD import +if [ "$OS" = dragonfly ]; then + echo "#ifdef USE_PRIVATECRYPTO" >>$CONFIG_H + echo "#define HAVE_MD5_H" >>$CONFIG_H + echo "#define SHA2_H <sha256.h>" >>$CONFIG_H + echo "#else" >>$CONFIG_H +fi + if [ -z "$MD5" ]; then MD5_LIB= printf "Testing for MD5Init ... " @@ -1353,6 +1361,9 @@ else [ -n "$SHA2_LIB" ] && echo "LDADD+= $SHA2_LIB" >>$CONFIG_MK fi +# Workarond for DragonFlyBSD import +[ "$OS" = dragonfly ] && echo "#endif" >>$CONFIG_H + if [ -z "$HMAC" ]; then HMAC_LIB= printf "Testing for hmac ... " |
