forked from cifsd-team/ksmbd-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
executable file
·65 lines (52 loc) · 1.53 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
58
59
60
61
62
63
64
65
AC_PREREQ([2.68])
m4_define([cifsd_tools_major_ver], [2])
m4_define([cifsd_tools_minor_ver], [0])
m4_define([cifsd_tools_micro_ver], [0])
m4_define([cifsd_tools_version],
[cifsd_tools_major_ver.cifsd_tools_minor_ver.cifsd_tools_micro_ver])
AC_INIT([CIFSD tools], [cifsd_tools_version],
AC_DEFINE([CIFSD_TOOLS_VERSION], "cifsd_tools_version", [cifsd-tools version])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign tar-pax dist-xz subdir-objects])
AC_LANG([C])
AC_PROG_CC
AC_PROG_CC_STDC
AM_SILENT_RULES([yes])
AC_PROG_LIBTOOL
# Checks for header files.
AC_CHECK_HEADERS([linux/netlink.h fcntl.h stdlib.h string.h \
unistd.h sys/socket.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_INT8_T
AC_TYPE_SIZE_T
# Checks for library functions.
AC_CHECK_FUNCS_ONCE([
memset
memcpy
getpwnam
sendmsg
recvmsg
])
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.40], [has_glib2=1], [has_glib2=0])
AS_IF([test "$has_glib2" -eq 0],
AC_MSG_ERROR([No glib2 was found])
])
has_libnl_ver=0
dnl libnl-genl-3.0.pc pkg-config file just for libnl-3.0 case.
PKG_CHECK_MODULES([LIBNL], [libnl-3.0 >= 3.0 libnl-genl-3.0 >= 3.0], [has_libnl_ver=3], [has_libnl_ver=0])
AS_IF([test "$has_libnl_ver" -eq 0], [
AC_MSG_ERROR([libnl and libnl-genl are required but were not found])
])
AC_CONFIG_FILES([
Makefile
lib/Makefile
cifsd/Makefile
cifsadmin/Makefile
])
AC_OUTPUT