Commit a2f0522a authored by Jean-Paul Saman's avatar Jean-Paul Saman

configure.ac: add --enable-compat

Enable the API compatibility layer that supports wraps the new API in old API.
Its use is meant only for easing transistion to the new API and will remain exactly
one release. It is scheduled to be removed in version 2.1.
parent e9d4fbc8
...@@ -82,6 +82,18 @@ if test "$release" != "true"; then ...@@ -82,6 +82,18 @@ if test "$release" != "true"; then
CFLAGS_dist="${CFLAGS_dist} -DDVBPSI_DIST" CFLAGS_dist="${CFLAGS_dist} -DDVBPSI_DIST"
fi fi
dnl --enable-compat
AC_ARG_ENABLE(compat,
[ --enable-compat Enable API compatibility layer (default disabled)],
[case "${enableval}" in
yes) compat=true ;;
no) compat=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-compat) ;;
esac],[compat=false])
if test "$compat" = "true"; then
CFLAGS_dist="${CFLAGS_dist} -DDVBPSI_USE_DEPRECATED_DR_API"
fi
dnl compile feature tests dnl compile feature tests
CFLAGS="${CFLAGS_save} ${CFLAGS_dist}" CFLAGS="${CFLAGS_save} ${CFLAGS_dist}"
...@@ -150,6 +162,7 @@ libdvbpsi configuration ...@@ -150,6 +162,7 @@ libdvbpsi configuration
libdvbpsi version : ${VERSION} libdvbpsi version : ${VERSION}
debug : ${debug} debug : ${debug}
release : ${release} release : ${release}
compatibility old api : ${compat}
compile flags : ${CFLAGS} compile flags : ${CFLAGS}
build for : ${SYS} build for : ${SYS}
" "
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