summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2019-08-28 16:15:04 +0100
committerRoy Marples <roy@marples.name>2019-08-28 16:15:04 +0100
commitcf648d64b2b23ad91ad8cffa704a4a2d3687a091 (patch)
tree304fd06eb813d6a4d1da58c0e8d3009c9abd6b5d /configure
parent61091306f58db5db2c4c3ae9fcf210563966604b (diff)
downloaddhcpcd-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-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index a42e99db..69bf4a72 100755
--- a/configure
+++ b/configure
@@ -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 ... "