summaryrefslogtreecommitdiff
path: root/configure.ac
blob: a55bf807c0133bbe96bcf3af9a4f2779d0fa9a1d (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
AC_PREREQ([2.69])
AC_INIT([cifs-idmap-sss-plugin], [0.1], [benjaminfranzke@googlemail.com])
AC_CONFIG_SRCDIR([cifs_idmap_sss.c])

AM_INIT_AUTOMAKE
AM_SILENT_RULES([yes])
LT_INIT
AC_CONFIG_MACRO_DIR([m4])

PKG_PROG_PKG_CONFIG()
PKG_CHECK_MODULES([SSS_IDMAP], [sss_idmap sss_nss_idmap])

if test "x$GCC" = "xyes"; then
	GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes"
fi
AC_SUBST(GCC_CFLAGS)

# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99

# Checks for libraries.

# Checks for header files.
AC_CHECK_HEADERS([limits.h stdlib.h string.h cifsidmap.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([strdup strerror])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT