diff --git a/apps/nc/Makefile.am b/apps/nc/Makefile.am index 564080c..34c5cd3 100644 --- a/apps/nc/Makefile.am +++ b/apps/nc/Makefile.am @@ -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 diff --git a/configure.ac b/configure.ac index f15e746..6c60d15 100644 --- a/configure.ac +++ b/configure.ac @@ -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])