summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2022-08-16 17:09:06 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2022-08-16 17:09:06 +0200
commit4998c316ab1af5abed696e04bcb62144c11698a3 (patch)
treed4ce7af715904a452f0a9782a58a4a366668138c
parentb40521d70ba96cfe709a76a366991e0c61912ec9 (diff)
Autotools build: Add --disable-deprecated-api
Make it possible to exclude deprecated API from the build. See #29
-rw-r--r--cairommconfig.h.in3
-rw-r--r--configure.ac1
2 files changed, 4 insertions, 0 deletions
diff --git a/cairommconfig.h.in b/cairommconfig.h.in
index f55f6d0..57fe7b2 100644
--- a/cairommconfig.h.in
+++ b/cairommconfig.h.in
@@ -1,5 +1,8 @@
/* This file is part of cairomm. */
+/* Define to omit deprecated API from the library. */
+#undef CAIROMM_DISABLE_DEPRECATED
+
/* Defined when the --enable-api-exceptions configure argument was given */
#undef CAIROMM_EXCEPTIONS_ENABLED
diff --git a/configure.ac b/configure.ac
index 64e31e1..74202d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,6 +73,7 @@ MM_ARG_ENABLE_WARNINGS([CAIROMM_WXXFLAGS],
[-Wall],
[-pedantic -Wall -Wextra -Wformat-security -Wsuggest-override],
[SIGCXX])
+MM_ARG_DISABLE_DEPRECATED_API
AC_ARG_ENABLE([tests],
[AS_HELP_STRING([--enable-tests], [enable automated tests [default=no]])],