-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfigure.ac
57 lines (46 loc) · 1.33 KB
/
configure.ac
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
AC_INIT([zabbix-module-sockets], [1.1.0], [ryan@cavaliercoder.com])
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign])
m4_pattern_allow([AM_PROG_AR])
AM_PROG_AR
# init libtool
# need > v1.4 to drop 'lib' prefix from linker output
LT_PREREQ([1.4.0])
LT_INIT
AC_PROG_CC
AC_PROG_CC_STDC
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
# check for stdlib header files
AC_HEADER_STDC
# Checking for Zabbix headers
AX_CHECK_ZABBIX
if test ! "x$found_zabbix" = "xyes"; then
AC_MSG_ERROR([Zabbix headers not found])
fi
dnl
dnl output
dnl
AC_CONFIG_FILES([
Makefile
src/modules/sockets/Makefile
templates/Makefile
])
AC_OUTPUT
echo "
Configuration:
Detected OS: ${host_os}
Module install path: ${libdir}
Compiler: ${CC}
Compiler flags: ${CFLAGS}
Library-specific flags:"
if test "x$ZABBIX_CPPFLAGS" != "x"; then
echo " zabbix: ${ZABBIX_CPPFLAGS}"
fi
echo
echo "************************************************************"
echo "* Now run '${am_make} install' *"
echo "* *"
echo "* Thank you for using libzbxsockets! *"
echo "* <http://cavaliercoder.com> *"
echo "************************************************************"
echo