-
Notifications
You must be signed in to change notification settings - Fork 9
/
configure.ac
112 lines (99 loc) · 1.76 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
##*****************************************************************************
## $Id$
##*****************************************************************************
## Process this file with autoconf to produce a configure script.
##*****************************************************************************
##
# Prologue.
##
AC_INIT([mrsh], [2.12.1])
AC_CONFIG_AUX_DIR([config])
AC_CONFIG_SRCDIR([README])
AC_CANONICAL_TARGET
##
# Automake support.
##
AM_INIT_AUTOMAKE([tar-ustar subdir-objects])
AC_CONFIG_HEADERS([config/config.h])
AM_MAINTAINER_MODE
##
# Checks for programs.
##
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_MAKE_SET
AC_PROG_LN_S
##
# Checks for header files.
##
AC_HEADER_STDC
AC_CHECK_HEADERS( \
stdio.h \
stdlib.h \
string.h \
unistd.h \
getopt.h \
types.h \
)
##
# Checks for typedefs, structures, and compiler characteristics.
##
AC_C_BIGENDIAN
AC_C_CONST
AC_TYPE_UID_T
AC_SYS_LARGEFILE
##
# Check for systemd
##
RRA_WITH_SYSTEMD_UNITDIR
##
# Checks for library functions.
##
AC_FUNC_MALLOC
AC_CHECK_FUNCS( \
strcmp \
strlen \
strcpy \
strchr \
)
##
# Program checks
##
AC_SIGNALS
AC_NCURSES
AC_CRYPT
AC_FORKPTY
AC_LOGWTMP
AC_TYPE_SOCKLEN_T
AC_SNPRINTF
LIBS="$LIBS $LIBTERMCAP $LIBCRYPT $LIBFORKPTY $LIBLOGWTMP"
AC_PAM
AM_CONDITIONAL(WITH_PAM, test "$ac_have_pam" = "yes")
AC_SHADOW
AM_CONDITIONAL(WITH_SHADOW, test "$ac_have_shadow" = "yes")
AC_MUNGE
AC_MCMD
AC_MAUTH
##
# Epilogue.
##
AC_CONFIG_FILES( \
mrsh.spec \
Makefile \
common/Makefile \
doc/Makefile \
etc/Makefile \
etc/pam/Makefile \
etc/systemd/Makefile \
etc/xinetd/Makefile \
mauth/Makefile \
mcmd/Makefile \
mrcp/Makefile \
mrlogin/Makefile \
mrlogind/Makefile \
mrsh/Makefile \
mrshd/Makefile \
rsh-compat/Makefile \
)
AC_OUTPUT