allow optionally installing nc(1) with '--enable-nc'

This commit is contained in:
Brent Cook 2015-12-07 08:14:51 -06:00
parent 19f58fdb1b
commit 28aaab4323
2 changed files with 8 additions and 0 deletions

View File

@ -2,7 +2,11 @@ include $(top_srcdir)/Makefile.am.common
if BUILD_NC
if ENABLE_NC
bin_PROGRAMS = nc
else
noinst_PROGRAMS = nc
endif
EXTRA_DIST = nc.1

View File

@ -114,6 +114,10 @@ AM_CONDITIONAL([HOST_ASM_ELF_X86_64],
AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64],
[test "x$HOST_ABI" = "xmacosx" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"])
AC_ARG_ENABLE([nc],
AS_HELP_STRING([--enable-nc], [Enable installing TLS-enabled nc(1)]))
AM_CONDITIONAL([ENABLE_NC], [test "x$enable_nc" = xyes])
# Check if time_t is sized correctly
AC_CHECK_SIZEOF([time_t], [time.h])