configure.ac: Add --enable-{client,server,examples}

These default respectively to yes, yes, no.
This commit is contained in:
Keegan McAllister
2012-03-17 05:36:42 -04:00
parent a151ea15c2
commit 139bcbf9ae
5 changed files with 42 additions and 4 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
AM_CPPFLAGS = $(protobuf_CFLAGS)
AM_CXXFLAGS = $(WARNING_CXXFLAGS) $(PICKY_CXXFLAGS) -fno-default-inline -pipe
noinst_PROGRAMS = encrypt decrypt ntester parse termemu benchmark
if BUILD_EXAMPLES
noinst_PROGRAMS = encrypt decrypt ntester parse termemu benchmark
endif
encrypt_SOURCES = encrypt.cc
encrypt_CPPFLAGS = -I$(srcdir)/../crypto
+9 -1
View File
@@ -9,7 +9,15 @@ else
LDADD += $(STDDJB_LDFLAGS)
endif
bin_PROGRAMS = mosh-client mosh-server
bin_PROGRAMS =
if BUILD_CLIENT
bin_PROGRAMS += mosh-client
endif
if BUILD_SERVER
bin_PROGRAMS += mosh-server
endif
mosh_client_SOURCES = mosh-client.cc stmclient.cc stmclient.h terminaloverlay.cc terminaloverlay.h
mosh_server_SOURCES = mosh-server.cc