diff options
| author | msheby <msheby@cinecert.com> | 2008-07-22 00:12:50 +0000 |
|---|---|---|
| committer | msheby <> | 2008-07-22 00:12:50 +0000 |
| commit | 2571cbd0b62ed6564238369793dfc1b5a1ae1d8b (patch) | |
| tree | ef8df3def977b79143adc9db421892db384901cf | |
| parent | 4e35856e1045d356d3fcad1b4db4e40e613847c6 (diff) | |
Add --enable-freedist option for configuration.
| -rw-r--r-- | configure.ac | 8 | ||||
| -rw-r--r-- | src/Makefile.am | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f65642f..3e3527a 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,14 @@ AX_LIB_XERCES AZ_PYTHON_DEFAULT AZ_PYTHON_WITH AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :]) +AC_ARG_ENABLE([freedist], + [ --enable-freedist Ensure source distribution is of BSD-licensed code.], + [case "${enableval}" in + yes) freedist=true ;; + no) freedist=false ;; + *) AC_MSG_ERROR([bad value ${enableval} for --enable-freedist]) ;; + esac],[freedist=false]) + AM_CONDITIONAL([FREEDIST], [test x$freedist = xtrue]) # Checks for libraries. AC_CHECK_LIB([pthread], [pthread_create]) diff --git a/src/Makefile.am b/src/Makefile.am index fa681a4..7b509ca 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -110,7 +110,11 @@ TESTS_ENVIRONMENT = BUILD_DIR="." TEST_FILES=../tests TEST_FILE_PREFIX=DCPd1-M1 # files to include in the distribution that automake doesn't automatically include EXTRA_DIST = fips-186-test-harness.pl $(TESTS) - +if PYTHON_USE +if !FREEDIST +EXTRA_DIST += $(nodist_libpyasdcp_la_SOURCES) $(nodist_kumu_la_SOURCES) $(nodist_asdcp_la_SOURCES) +endif +endif # source files that are themselves built BUILT_SOURCES = Metadata.h Metadata.cpp MDD.h MDD.cpp |
