From a787f964a158aec0fd77d9969e1e600f431f4e38 Mon Sep 17 00:00:00 2001 From: Brent Cook <bcook@openbsd.org> Date: Sat, 12 Sep 2015 10:51:11 -0500 Subject: restrict nc to openbsd builds for now --- apps/nc/Makefile.am | 4 ++++ m4/check-os-options.m4 | 2 ++ 2 files changed, 6 insertions(+) diff --git a/apps/nc/Makefile.am b/apps/nc/Makefile.am index 9d5dafc..b27d7de 100644 --- a/apps/nc/Makefile.am +++ b/apps/nc/Makefile.am @@ -1,5 +1,7 @@ include $(top_srcdir)/Makefile.am.common +if HOST_OPENBSD + if HAVE_POLL noinst_PROGRAMS = nc @@ -17,3 +19,5 @@ nc_SOURCES += strtonum.c endif endif + +endif diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4 index 4f94897..895d22b 100644 --- a/m4/check-os-options.m4 +++ b/m4/check-os-options.m4 @@ -43,6 +43,7 @@ case $host_os in CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE" ;; *openbsd* | *bitrig*) + HOST_OS=openbsd HOST_ABI=elf AC_DEFINE([HAVE_ATTRIBUTE__BOUNDED__], [1], [OpenBSD gcc has bounded]) ;; @@ -72,6 +73,7 @@ AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) AM_CONDITIONAL([HOST_LINUX], [test x$HOST_OS = xlinux]) AM_CONDITIONAL([HOST_NETBSD], [test x$HOST_OS = xnetbsd]) +AM_CONDITIONAL([HOST_OPENBSD], [test x$HOST_OS = xopenbsd]) AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris]) AM_CONDITIONAL([HOST_WIN], [test x$HOST_OS = xwin]) ]) -- cgit v1.2.3-55-g6feb