summaryrefslogtreecommitdiff
path: root/scripts/reduced.m4
blob: dbceee0fc363e1ce383417a155955d417c6b8723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
## GLIBMM_ARG_ENABLE_API_PROPERTIES()
##
## Provide the --enable-api-properties configure argument, enabled
## by default.
##
AC_DEFUN([GLIBMM_ARG_ENABLE_API_PROPERTIES],
[
  AC_ARG_ENABLE([api-properties],
      [  --enable-api-properties  Build properties API.
                              [[default=yes]]],
      [glibmm_enable_api_properties="$enableval"],
      [glibmm_enable_api_properties='yes'])

  if test "x$glibmm_enable_api_properties" = "xyes"; then
  {
    AC_DEFINE([GLIBMM_PROPERTIES_ENABLED],[1], [Defined when the --enable-api-properties configure argument was given])
  }
  fi
])

## GLIBMM_ARG_ENABLE_API_VFUNCS()
##
## Provide the --enable-api-vfuncs configure argument, enabled
## by default.
##
AC_DEFUN([GLIBMM_ARG_ENABLE_API_VFUNCS],
[
  AC_ARG_ENABLE([api-vfuncs],
      [  --enable-api-vfuncs  Build vfuncs API.
                              [[default=yes]]],
      [glibmm_enable_api_vfuncs="$enableval"],
      [glibmm_enable_api_vfuncs='yes'])

  if test "x$glibmm_enable_api_vfuncs" = "xyes"; then
  {
    AC_DEFINE([GLIBMM_VFUNCS_ENABLED],[1], [Defined when the --enable-api-vfuncs configure argument was given])
  }
  fi
])

## GLIBMM_ARG_ENABLE_API_EXCEPTIONS()
##
## Provide the --enable-api-exceptions configure argument, enabled
## by default.
##
AC_DEFUN([GLIBMM_ARG_ENABLE_API_EXCEPTIONS],
[
  AC_ARG_ENABLE([api-exceptions],
      [  --enable-api-exceptions  Build exceptions API.
                              [[default=yes]]],
      [glibmm_enable_api_exceptions="$enableval"],
      [glibmm_enable_api_exceptions='yes'])

  if test "x$glibmm_enable_api_exceptions" = "xyes"; then
  {
    AC_DEFINE([GLIBMM_EXCEPTIONS_ENABLED],[1], [Defined when the --enable-api-exceptions configure argument was given])
  }
  fi
])

## GLIBMM_ARG_ENABLE_API_DEPRECATED()
##
## Provide the --enable-deprecated-api configure argument, enabled
## by default.
##
AC_DEFUN([GLIBMM_ARG_ENABLE_API_DEPRECATED],
[
  AC_ARG_ENABLE(deprecated-api, 
      [  --enable-deprecated-api  Include (build) deprecated API in the libraries.
                              [[default=yes]]],
      [glibmm_enable_api_deprecated="$enableval"],
      [glibmm_enable_api_deprecated='yes'])

  if test "x$glibmm_enable_api_deprecated" = "xyes"; then
  {
    AC_MSG_WARN([Deprecated API will be built, for backwards-compatibility.])
  }
  else
  {
    AC_MSG_WARN([Deprecated API will not be built, breaking backwards-compatibility. Do not use this build for distribution packages.])
    DISABLE_DEPRECATED_API_CFLAGS="-DGLIBMM_DISABLE_DEPRECATED"
    AC_SUBST(DISABLE_DEPRECATED_API_CFLAGS)
  }
  fi
])