Source
1
1
# Zabbix
2
-
# Copyright (C) 2001-2022 Zabbix SIA
2
+
# Copyright (C) 2001-2023 Zabbix SIA
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
6
6
# the Free Software Foundation; either version 2 of the License, or
7
7
# (at your option) any later version.
8
8
#
9
9
# This program is distributed in the hope that it will be useful,
10
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
12
# GNU General Public License for more details.
28
28
29
29
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
30
30
#include <$2>
31
31
]], [[
32
32
int e = $1;
33
33
]])],
34
34
[AS_VAR_SET([enum_var], [yes])],
35
35
[AS_VAR_SET([enum_var], [no])])
36
36
37
37
AS_IF([test yes = AS_VAR_GET([enum_var])],[
38
-
AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$1), 1, [Define to 1 if the library has the $1 enum value])
38
+
AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_$1), 1, [Define to 1 if $1 definition is available])
39
39
AC_MSG_RESULT(yes)
40
40
], [
41
41
AC_MSG_RESULT(no)
42
42
])
43
43
44
44
AS_VAR_POPDEF([enum_var])
45
45
])dnl