1 Star 0 Fork 0

chummy2015/google-authenticator-libpam

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
configure.ac 2.26 KB
一键复制 编辑 原始数据 按行查看 历史
Thomas Habets 提交于 2020-05-26 18:06 +08:00 . Up version to 1.09
AC_PREREQ(2.61)
AC_INIT(google-authenticator, 1.09, habets@google.com)
AC_CONFIG_SRCDIR([src/google-authenticator.c])
AC_CONFIG_AUX_DIR([build])
AC_CONFIG_MACRO_DIR([build])
# --enable-silent-rules
m4_ifdef([AM_SILENT_RULES],
[AM_SILENT_RULES([yes])],
[AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
AC_USE_SYSTEM_EXTENSIONS
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_MAINTAINER_MODE([enable])
LT_INIT
AC_PROG_CC
AC_PROG_CC_STDC
AC_CHECK_HEADERS([sys/fsuid.h])
AC_CHECK_FUNCS([ \
explicit_bzero \
setfsuid \
setfsgid \
])
AC_CHECK_HEADERS_ONCE([security/pam_appl.h])
# On Solaris at least, <security/pam_modules.h> requires <security/pam_appl.h>
# to be included first
AC_CHECK_HEADER([security/pam_modules.h], [], [], \
[#ifdef HAVE_SECURITY_PAM_APPL_H
# include <security/pam_appl.h>
#endif
])
AC_CHECK_LIB([pam], [pam_get_user], [:])
AS_IF([test "x$ac_cv_header_security_pam_modules_h" = "xno" \
-o "x$ac_cv_lib_pam_pam_get_user" = "xno"], [
AC_MSG_ERROR([Unable to find the PAM library or the PAM header files])
])
AC_MSG_CHECKING([whether certain PAM functions require const arguments])
AC_LANG_PUSH(C)
# Force test to bail if const isn't needed
AC_LANG_WERROR
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <security/pam_appl.h>
#include <security/pam_modules.h>
]],[[
const void **item = 0;
int dummy = 0;
/*
* since pam_handle_t is opaque on at least some platforms, give it
* a non-NULL dummy value
*/
const pam_handle_t *ph = (const pam_handle_t *)&dummy;
(void) pam_get_item(ph, 0, item);
]])],[AC_DEFINE([PAM_CONST], [const], \
[Define if certain PAM functions require const arguments])
AC_MSG_RESULT([yes])],
[AC_DEFINE([PAM_CONST], [], \
[Prevent certain PAM functions from using const arguments])
AC_MSG_RESULT([no])])
AC_MSG_CHECKING(whether compiler understands -Wall)
old_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Wall"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
AC_MSG_RESULT(yes),
AC_MSG_RESULT(no)
CFLAGS="$old_CFLAGS")
AC_LANG_POP(C)
AC_SEARCH_LIBS([dlopen], [dl])
AC_CONFIG_HEADER(config.h)
AC_CONFIG_FILES([Makefile contrib/rpm.spec])
AC_OUTPUT
echo "
$PACKAGE_NAME version $PACKAGE_VERSION
Prefix.........: $prefix
Debug Build....: $debug
C Compiler.....: $CC $CFLAGS $CPPFLAGS
Linker.........: $LD $LDFLAGS $LIBS
"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chummy2015/google-authenticator-libpam.git
git@gitee.com:chummy2015/google-authenticator-libpam.git
chummy2015
google-authenticator-libpam
google-authenticator-libpam
master

搜索帮助