From 28aaab43234226b2885d66d1e70f536cd7e438f0 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Mon, 7 Dec 2015 08:14:51 -0600 Subject: allow optionally installing nc(1) with '--enable-nc' --- apps/nc/Makefile.am | 4 ++++ configure.ac | 4 ++++ 2 files changed, 8 insertions(+) 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]) -- cgit v1.2.3-55-g6feb