Add an option to disable the example applications.
The example applications may not always be needed. An option to disable them might be useful. Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
This commit is contained in:
parent
6433a45bbc
commit
33710423ac
@ -1,4 +1,8 @@
|
||||
SUBDIRS = include src examples
|
||||
SUBDIRS = include src
|
||||
|
||||
if ENABLE_EXAMPLES
|
||||
SUBDIRS += examples
|
||||
endif
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
|
||||
@ -46,6 +46,13 @@ AS_IF([test "x$enable_pty" = "xyes"], [
|
||||
AC_DEFINE(ENABLE_PTY, [1], [Enable pseudo terminal support.])
|
||||
])
|
||||
|
||||
# Example applications.
|
||||
AC_ARG_ENABLE([examples],
|
||||
[AS_HELP_STRING([--enable-examples=@<:@yes/no@:>@],
|
||||
[Build example applications @<:@default=yes@:>@])],
|
||||
[], [enable_examples=yes])
|
||||
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CC_C99
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user