From: Sébastien Noel <sebastien@twolife.be>
Forwarded: https://github.com/eggheads/eggdrop/pull/1918
Description: If Minix and Haiku are not "weird", GNU/Hurd isn't either

--- a/aclocal.m4
+++ b/aclocal.m4
@@ -663,6 +663,9 @@
     Minix)
       WEIRD_OS="no"
     ;;
+    GNU)
+      WEIRD_OS="no"
+    ;;
     *)
       # QNX apparently supports dlopen()... Fallthrough.
       if test -r /cmds; then
@@ -830,6 +833,10 @@
       esac
       AC_DEFINE(BIND_8_COMPAT, 1, [Define if running on macOS with dns.mod.])
     ;;
+    GNU)
+      SHLIB_CC="$CC -fPIC"
+      SHLIB_LD="$CC -shared -nostartfiles $LDFLAGS"
+    ;;
     *)
       if test -r /cmds; then
         # Probably QNX.
