aboutsummaryrefslogtreecommitdiff
path: root/helper/m4
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2021-09-29 14:17:55 +0300
committerMatias Elo <matias.elo@nokia.com>2021-11-12 09:48:41 +0200
commit7bef61ebe885c6a089d1cd7b3f7f3b6bdf7b8cf7 (patch)
treec84f93220247bf644a7a5f761c95802a2911ad1a /helper/m4
parentc4b1cde446777a397c99058de5c19aeffe1faacc (diff)
helper: implement deprecation
Implement deprecation in the helper library. Deprecated helper APIs may be enabled with the --enable-helper-deprecated configure option. By default, deprecated helper APIs are not enabled. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'helper/m4')
-rw-r--r--helper/m4/configure.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/helper/m4/configure.m4 b/helper/m4/configure.m4
index 36629c81e..2e1076172 100644
--- a/helper/m4/configure.m4
+++ b/helper/m4/configure.m4
@@ -47,5 +47,17 @@ AS_IF([test "x$enable_helper_debug_print" != "xno"], [ODPH_DEBUG_PRINT=1],
AC_DEFINE_UNQUOTED([ODPH_DEBUG_PRINT], [$ODPH_DEBUG_PRINT],
[Define to 1 to display helper debug information])
+##########################################################################
+# Enable/disable deprecated helper API definitions
+##########################################################################
+AC_ARG_ENABLE([helper-deprecated],
+ [AS_HELP_STRING([--enable-helper-deprecated],
+ [enable deprecated helper API definitions [default=disabled]])],
+ [], [enable_helper_deprecated=no])
+AS_IF([test "x$enable_helper_deprecated" != "xno"], [ODPH_DEPRECATED_API=1],
+ [ODPH_DEPRECATED_API=0])
+AC_DEFINE_UNQUOTED([ODPH_DEPRECATED_API], [$ODPH_DEPRECATED_API],
+ [Define to 1 to enable deprecated helper API definitions])
+
AC_CONFIG_FILES([helper/libodphelper.pc
helper/test/Makefile])