- *freebsd*)
- bsd=true
- AC_DEFINE(HAVE_FREEBSD, 1, [FreeBSD])
- ;;
- *darwin*)
- bsd=true
- AC_DEFINE(HAVE_DARWIN, 1, [Darwin (MacOS/X)])
- ;;
- *solaris*)
- solaris=true
- AC_DEFINE(HAVE_SOLARIS, 1, [Solaris/SunOS])
- ;;
- *openbsd*)
- bsd=true
- AC_DEFINE(HAVE_OPENBSD, 1, [OpenBSD])
- ;;
- *netbsd*)
- bsd=true
- AC_DEFINE(HAVE_NETBSD, 1, [NetBSD])
- ;;
- *dragonfly*)
- bsd=true
- AC_DEFINE(HAVE_DRAGONFLY, 1, [DragonFly])
- ;;
- *bsd*)
- bsd=true
- AC_MSG_WARN("Unknown BSD variant, tinc might not compile or work!")
- AC_DEFINE(HAVE_BSD, 1, [Unknown BSD variant])
- ;;
- *cygwin*)
- cygwin=true
- AC_DEFINE(HAVE_CYGWIN, 1, [Cygwin])
- ;;