Commit 2924b949 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Philipp Schafft

Allow examples not to be built

parent e75f7606
......@@ -3,7 +3,10 @@
AUTOMAKE_OPTIONS = 1.6 foreign
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = include src examples doc win32
SUBDIRS = include src doc win32
if HAVE_EXAMPLES
SUBDIRS += examples
endif
EXTRA_DIST = INSTALL m4/shout.m4 m4/acx_pthread.m4 \
m4/ogg.m4 m4/vorbis.m4 m4/xiph_compiler.m4 m4/xiph_net.m4 \
......
......@@ -89,6 +89,11 @@ AC_SEARCH_LIBS([nanosleep], [rt],
[AC_DEFINE([HAVE_NANOSLEEP], [1],
[Define if you have the nanosleep function])])
dnl Allow examples not to be build
AC_ARG_ENABLE([examples],
AC_HELP_STRING([--disable-examples],[Do not build example code]))
AM_CONDITIONAL([HAVE_EXAMPLES],[test "${enable_examples}" != "no"])
dnl Module checks
XIPH_NET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment