forked from paulscherrerinstitute/pam_single_kcm_cache
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigure.ac
More file actions
76 lines (66 loc) · 2.3 KB
/
configure.ac
File metadata and controls
76 lines (66 loc) · 2.3 KB
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
dnl
dnl File: configure.ac
dnl Created: 2022/09/22
dnl Author: Konrad Bucheli <konrad.bucheli@psi.ch>
dnl
dnl ---------------------------------------------------------------------------
AC_PREREQ([2.59])
AC_COPYRIGHT([
See the included file: COPYING for copyright information.
])
AC_INIT([pam_single_kcm_cache], [0.0.2], [konrad.bucheli@psi.ch])
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([pam_single_kcm_cache.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_USE_SYSTEM_EXTENSIONS
dnl --------------------------------------------------------------------
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AM_PROG_AR
LT_INIT([disable-static])
dnl --------------------------------------------------------------------
# Checks for libraries.
AC_CHECK_LIB(pam,pam_start)
AC_CHECK_LIB(pam_misc,pam_misc_setenv)
dnl --------------------------------------------------------------------
dnl Autoheader "templates" (was acconfig.h)
AH_TOP([
/*****
**** PAM-SINGLE-KCM-CACHE Header **************************************
**
** pam_single_kcm_cache
** set KRB5CCNAME with currently used KCM cache (when not yet set)
** on PAM session setup
**
** Description: config.h.in (generated by autoheader from configure.ac)
**
***********************************************************************
****/
])dnl
dnl --------------------------------------------------------------------
dnl Checks for header files.
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([string.h syslog.h unistd.h])
AC_CHECK_HEADERS([security/pam_appl.h], [],
[AC_MSG_ERROR([*** Sorry, you must install the PAM development module ***])])
AC_CHECK_HEADERS([krb5.h], [],
[AC_MSG_ERROR([*** Sorry, you must install the KRB5 development module ***])])
AC_CHECK_HEADERS([security/pam_modules.h], [], [],
[#include <security/pam_appl.h>])
dnl --------------------------------------------------------------------
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T
PAM_ATTRIBUTE_UNUSED
dnl --------------------------------------------------------------------
dnl Checks for library functions.
AC_FUNC_VPRINTF
dnl --------------------------------------------------------------------
dnl Generate made files
AC_CONFIG_FILES([Makefile pam_single_kcm_cache.7])
AC_OUTPUT