[evolution-data-server] Introduce --enable-strict configure option
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Introduce --enable-strict configure option
- Date: Tue, 6 Nov 2012 10:09:05 +0000 (UTC)
commit 1f2e9d445367e30947e012cf5508e50c4ca1e27e
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 6 11:07:07 2012 +0100
Introduce --enable-strict configure option
This is currently used to add extra AM_CPPFLAGS to disable
deprecated symbols from GLib.
configure.ac | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b7a7ba1..f1d9dd3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -180,8 +180,26 @@ dnl -Wstrict-aliasing=2
AM_CPPFLAGS="$WARNING_FLAGS -fno-strict-aliasing"
-dnl Be strict when compiling with .git subdirectory
-if test -d .git ; then
+dnl *******************************
+dnl Check for --enable-strict
+dnl *******************************
+AC_ARG_ENABLE([strict],
+ [AS_HELP_STRING([--enable-strict],
+ [enable strict building, like without deprecated symbols (default=auto); auto enables strict building only if .git subdirectory exists])],
+ [enable_strict=$enableval], [enable_strict=auto])
+
+AC_MSG_CHECKING([if strict building is enabled])
+if test "x$enable_strict" = xauto; then
+ dnl Be strict when compiling with .git subdirectory
+ if test -d .git ; then
+ enable_strict=yes
+ else
+ enable_strict=no
+ fi
+fi
+AC_MSG_RESULT([$enable_strict])
+
+if test "x$enable_strict" = xyes; then
AM_CPPFLAGS="$AM_CPPFLAGS -DG_DISABLE_DEPRECATED"
fi
@@ -1631,4 +1649,5 @@ echo "
Vala bindings: $enable_vala_bindings
GNOME Online Accounts $enable_goa
Code coverage (gcov): $enable_code_coverage
+ Strict building: $enable_strict
"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]