📄 configure.in
字号:
AC_INIT(rlm_unix.c)AC_REVISION($Revision: 1.4 $)AC_DEFUN(modname,[rlm_unix])if test x$with_[]modname != xno; then AC_PROG_CC AC_PROG_CPP AC_MSG_CHECKING(for system password file) if test -f /etc/passwd; then AC_MSG_RESULT(/etc/passwd) else AC_MSG_RESULT(no /etc/passwd file.) [ fail=$fail" /etc/passwd" ], fi dnl useless? AC_MSG_CHECKING(for system shadow password file) if test -f /etc/shadow; then AC_MSG_RESULT(/etc/shadow) else AC_MSG_RESULT(no /etc/shadow file.) fi AC_CHECK_FUNC(crypt, [ cryptlocation=libc ], [ #crypt not in libc AC_CHECK_LIB(crypt, crypt, [ cryptlocation=libcrypt unix_ldflags="${unix_ldflags} -lcrypt" ] ) ] ) if test x$cryptlocation = x; then [ fail=$fail" crypt()" ], fi AC_CHECK_HEADERS(crypt.h shadow.h) AC_CHECK_FUNCS(getspnam getusershell) AC_CHECK_LIB(shadow, getspnam, [ unix_ldflags="${unix_ldflags} -lshadow" AC_DEFINE(HAVE_GETSPNAM) ] ) AC_CHECK_FUNCS(fgetpwent fgetspent fgetgrent) targetname=modnameelse targetname= echo \*\*\* module modname is disabled.fiif test x"$fail" != x""; then if test x"${enable_strict_dependencies}" = x"yes"; then AC_MSG_ERROR([set --without-]modname[ to disable it explicitly.]) else AC_MSG_WARN([silently not building ]modname[.]) AC_MSG_WARN([FAILURE: ]modname[ requires: $fail.]); targetname="" fifiAC_SUBST(unix_ldflags)AC_SUBST(unix_cflags)AC_SUBST(targetname)AC_CONFIG_HEADER(config.h)AC_OUTPUT(Makefile)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -