📄 configure.in
字号:
## configure.in## The Initial Developer of the Original Code is International# Business Machines Corporation. Portions created by IBM# Corporation are Copyright (C) 2005, 2006 International Business# Machines Corporation. All Rights Reserved.## This program is free software; you can redistribute it and/or modify# it under the terms of the Common Public License as published by# IBM Corporation; either version 1 of the License, or (at your option)# any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# Common Public License for more details.## You should have received a copy of the Common Public License# along with this program; if not, a copy can be viewed at# http://www.opensource.org/licenses/cpl1.0.php.#AC_INIT(tpm-tools, 1.2.5.1, trousers-tech@lists.sf.net)AC_CONFIG_SRCDIR(Makefile.am)AC_CANONICAL_TARGETAM_INIT_AUTOMAKE([foreign 1.6])AC_PROG_CCAC_PROG_CXXAC_PROG_INSTALLAC_PROG_LIBTOOLAC_PROG_LN_SAC_CHECK_PROGS(AR, ar)AC_CHECK_PROGS(COPY, cp)AC_CHECK_PROGS(ECHO, echo)AC_CHECK_PROGS(MKDIR, mkdir)AC_CHECK_PROGS(RM, rm)AM_GNU_GETTEXT([external])AC_CHECK_LIB(tspi, Tspi_Context_Create, [TSS_LIB="1"], [AC_MSG_ERROR([tss lib not found: libtspi.so])])AC_CHECK_HEADER(trousers/tss.h, [TSS_INC="1"], [AC_MSG_ERROR([tss header not found: trousers/tss.h])])AC_CHECK_LIB(crypto, PEM_read_X509, [OPENSSL_LIB="1"], [AC_MSG_ERROR([openssl lib not found: libcrypto.so])])AC_CHECK_HEADER(openssl/evp.h, [OPENSSL_INC="1"], [AC_MSG_ERROR([openssl header not found: openssl/evp.h])])OPENCRYPTOKI="0"AC_ARG_ENABLE(pkcs11_support, AC_HELP_STRING([--disable-pkcs11-support], [don't build data_mgmt commands [[default=no]]]), [disable_pkcs11_support="yes" AC_MSG_RESULT([*** Not building data_mgmt at user request ***])],)if test "x$disable_pkcs11_support" != "xyes"; then AC_CHECK_HEADER(opencryptoki/pkcs11.h, [OPENCRYPTOKI_INC="1"], [OPENCRYPTOKI_INC="0"]) if test "$OPENCRYPTOKI_INC" = "1"; then OPENCRYPTOKI="1" fifiAM_CONDITIONAL([P11_SUPPORT], [test "$OPENCRYPTOKI" = "1"])AC_HEADER_STDCAC_C_CONSTAC_C_INLINEAC_SYS_LONG_FILE_NAMESAC_TYPE_MODE_TAC_TYPE_OFF_TAC_TYPE_PID_TAC_TYPE_SIZE_TAC_TYPE_SIGNALAC_TYPE_UID_TDEBUG=""AC_MSG_CHECKING([for debug-enabled build])AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [create a debug build that outputs debug messages]), [if test "$enableval" = "yes"; then DEBUG="yes" AC_MSG_RESULT([yes]) else DEBUG="no" AC_MSG_RESULT([no]) fi], [DEBUG="no" AC_MSG_RESULT([no])])if test "$DEBUG" == "yes"; then CFLAGS="$CFLAGS -DDEBUG -g -O0 -Wall -Werror"fiAC_CONFIG_FILES(./Makefile \ po/Makefile.in \ m4/Makefile \ include/Makefile \ lib/Makefile \ src/Makefile \ src/tpm_mgmt/Makefile \ src/cmds/Makefile \ src/data_mgmt/Makefile \ man/Makefile \ man/man1/Makefile \ man/man3/Makefile \ man/man8/Makefile)AC_OUTPUTecho "CFLAGS=$CFLAGS"echo "LDFLAGS=$LDFLAGS"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -