2 # A file-manager extension which offers configurable context menu actions.
4 # Copyright (C) 2005 The GNOME Foundation
5 # Copyright (C) 2006-2008 Frederic Ruaudel and others (see AUTHORS)
6 # Copyright (C) 2009-2015 Pierre Wieser and others (see AUTHORS)
8 # FileManager-Actions is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 2 of
11 # the License, or (at your option) any later version.
13 # FileManager-Actions is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with FileManager-Actions; see the file COPYING. If not, see
20 # <http://www.gnu.org/licenses/>.
23 # Frederic Ruaudel <grumz@grumz.net>
24 # Rodrigo Moya <rodrigo@gnome-db.org>
25 # Pierre Wieser <pwieser@trychlos.org>
26 # ... and many others (see AUTHORS)
28 # serial 4 rename macro to NA_MAINTAINER_CHECK_MODE
29 # NA_MAINTAINER_CHECK_FOR_DEPRECATED
31 dnl define NA_MAINTAINER_CHECK_MODE
33 dnl Don''t agree with maintainer mode use
34 dnl See http://www.gnu.org/software/automake/manual/automake.html#maintainer_002dmode
35 dnl but gnome-autogen.sh forces its usage and gnome_common_init requires it
36 dnl is nonetheless explicitely required by gnome_maintainer_mode_defines macro
38 AC_DEFUN([NA_MAINTAINER_CHECK_MODE],[
39 AC_REQUIRE([GNOME_MAINTAINER_MODE_DEFINES])
41 msg_maintainer_mode="disabled"
42 AC_MSG_CHECKING([whether to enable maintainer mode])
43 AC_MSG_RESULT([${USE_MAINTAINER_MODE}])
45 if test "${USE_MAINTAINER_MODE}" = "yes"; then
46 AC_DEFINE([NA_MAINTAINER_MODE],[1],[Define to 1 if we are in maintainer mode])
47 AC_SUBST([AM_CPPFLAGS],["${AM_CPPFLAGS} ${DISABLE_DEPRECATED} -DGSEAL_ENABLED"])
48 AC_SUBST([AM_CFLAGS],["${AM_CFLAGS} -Werror"])
49 msg_maintainer_mode="enabled"
52 AM_CONDITIONAL([NA_MAINTAINER_MODE], [test "${USE_MAINTAINER_MODE}" = "yes"])
55 AC_DEFUN([NA_MAINTAINER_CHECK_FOR_DEPRECATED],[
59 [--enable-deprecated],
60 [whether to enable deprecated symbols]),
61 [enable_deprecated=$enableval],
62 [enable_deprecated="no"])
64 AC_MSG_CHECKING([whether deprecated symbols should be enabled])
65 AC_MSG_RESULT([${enable_deprecated}])
67 if test "${enable_deprecated}" = "yes"; then
68 AC_DEFINE([NA_ENABLE_DEPRECATED],[1],[Define to 1 if deprecated symbols should be enabled])
70 if test "${na_request_for_deprecated}" = "yes"; then
71 AC_MSG_WARN([API documentation will be incomplete as deprecated symbols are disabled])
72 let fma_fatal_count+=1
76 AM_CONDITIONAL([ENABLE_DEPRECATED], [test "${enable_deprecated}" = "yes"])