add --disable-tutorials

This commit is contained in:
Jehan Monnier 2013-08-27 17:40:47 +02:00
parent 094eea00e9
commit 88add42eb5
2 changed files with 14 additions and 0 deletions

View file

@ -740,6 +740,17 @@ AC_SUBST(ORTP_LIBS)
AC_SUBST([ORTP_VERSION])
AC_SUBST([ORTP_DIR])
AC_ARG_ENABLE(tutorials,
[AS_HELP_STRING([--disable-tutorials], [Disable compilation of tutorials])],
[case "${enableval}" in
yes) tutorials_enabled=true ;;
no) tutorials_enabled=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-tutorials) ;;
esac],
[tutorials_enabled=yes]
)
AM_CONDITIONAL(ENABLE_TUTORIALS, test x$tutorials_enabled = xyes)
AC_ARG_ENABLE(tests,
[AS_HELP_STRING([--disable-tests], [Disable compilation of tests])],
[case "${enableval}" in

View file

@ -33,6 +33,8 @@ clean-local:
#tutorials
if ENABLE_TUTORIALS
noinst_PROGRAMS=helloworld registration buddy_status chatroom notify
helloworld_SOURCES=helloworld.c
@ -78,3 +80,4 @@ AM_CFLAGS=\
tutodir=$(datadir)/tutorials/linphone
tuto_DATA=$(LINPHONE_TUTOS)
endif