forked from aad-for-linux/pam_aad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
64 lines (53 loc) · 1.81 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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ([2.65])
AC_INIT([pam_aad], [0.0.5], [[email protected]])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([1.11 foreign subdir-objects -Wall -Werror])
AM_SILENT_RULES([yes])
AC_USE_SYSTEM_EXTENSIONS
dnl Checks for programs.
AC_PROG_CC_C_O
AM_PROG_AR
AC_LIBTOOL_WIN32_DLL
AC_DISABLE_STATIC
LT_INIT([disable-static])
AC_ENABLE_STATIC([no])
AC_ENABLE_SHARED([yes])
AC_ARG_ENABLE([man],
[AS_HELP_STRING([--disable-man], [Disable man page generation])],
[:],
[enable_man=yes]
)
AC_SUBST(PAMDIR, "\$(exec_prefix)/lib/security")
AC_ARG_WITH(pam-dir,
AC_HELP_STRING([--with-pam-dir=DIR],
[Where to install PAM module [[PREFIX/lib/security]]]),
[case "${withval}" in
/*) PAMDIR="${withval}";;
./*|../*) AC_MSG_ERROR(Bad value for --with-pam-dir);;
*) PAMDIR="\$(exec_prefix)/lib/${withval}";;
esac])
AC_MSG_NOTICE([PAM installation path $PAMDIR])
dnl Checks for libraries.
AC_CHECK_LIB([jwt], [jwt_set_alg])
AC_CHECK_LIB([pam], [pam_get_user])
AC_CHECK_LIB([ssl], [SSL_library_init])
dnl Checks for header files.
AC_CHECK_HEADERS([float.h limits.h stddef.h stdlib.h string.h syslog.h unistd.h])
dnl Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_SIZE_T
dnl Checks for library functions.
AC_CHECK_FUNCS([floor memset pow strchr strdup strstr])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
AC_MSG_NOTICE([Summary of build options:
Version: ${VERSION}
Host type: ${host}
Install prefix: ${prefix}
Compiler: ${CC}
Library types: Shared=${enable_shared}, Static=${enable_static}
PAM: ${PAMDIR}
])