configure.in

来自「支持SSL v2/v3, TLS, PKCS #5, PKCS #7, PKCS」· IN 代码 · 共 181 行

IN
181
字号
dnldnl The contents of this file are subject to the Mozilla Publicdnl License Version 1.1 (the "License"); you may not use this filednl except in compliance with the License. You may obtain a copy ofdnl the License at http://www.mozilla.org/MPL/dnl dnl Software distributed under the License is distributed on an "ASdnl IS" basis, WITHOUT WARRANTY OF ANY KIND, either express ordnl implied. See the License for the specific language governingdnl rights and limitations under the License.dnl dnl The Original Code is a trivial PKCS#11 test program.dnl dnl The Initial Developer of the Original Code is Netscapednl Communications Corp.  Portions created by Netscape are dnl Copyright (C) 2000.  All Rights Reserved.dnl dnl Contributor(s): dnldnl Alternatively, the contents of this file may be used under thednl terms of the GNU General Public License Version 2 or later (thednl "GPL"), in which case the provisions of the GPL are applicable dnl instead of those above.  If you wish to allow use of your dnl version of this file only under the terms of the GPL and not todnl allow others to use your version of this file under the MPL,dnl indicate your decision by deleting the provisions above anddnl replace them with the notice and other provisions required bydnl the GPL.  If you do not delete the provisions above, a recipientdnl may use your version of this file under either the MPL or thednl GPL.dnldnl My revision info: "@(#) $RCSfile: configure.in,v $ $Revision: 1.1 $ $Date: 2000/05/08 23:19:45 $ $Name: NSS_3_1_1_RTM $"dnl Don't use AC_REVISION; it's brokenAC_INIT(trivial.c)AC_CONFIG_HEADER(config.h)AC_PROG_MAKE_SETAC_ARG_WITH(nspr, [  --with-nspr[=path]      specify location of NSPR],[ case "$withval" in  no)    AC_MSG_ERROR(NSPR is required);;  yes)    NSPR_INCLUDE="$includedir"    NSPR_LIBPATH="$libdir"    ;;  *)    NSPR_INCLUDE="$withval/include"    NSPR_LIBPATH="$withval/lib"    ;;  esac ],[ NSPR_INCLUDE="$includedir"  NSPR_LIBPATH="$libdir" ])NSPR_CFLAGS="-I$NSPR_INCLUDE"NSPR_LDFLAGS="-L$NSPR_LIBPATH -lnspr4 -lplc4 -lplds4"dnl This isn't optimum, but the mozilla build system and autoconf don't really mesh well..AC_ARG_WITH(nss-dist,    [  --with-nss-dist[=path]  specify path to NSS dist directory],[ case "$withval" in  no)    NSS_CFLAGS=""    nss="0"    ;;  yes)    AC_MSG_ERROR(You have to specify a path for --with-nss-dist)    ;;  *)    NSS_CFLAGS="-I$withval/private/security -I$withval/public/security"    nss="1"    ;;  esac ])AC_ARG_WITH(nss-hdrs, [  --with-nss-hdrs[=path]  or, specify path to installed NSS headers],[ if test "x$nss" != "x"; then    AC_MSG_ERROR(Only specify --with-nss-hdrs or --with-nss-dist, not both)  fi  case "$withval" in  no)    NSS_CFLAGS=""    nss="0"    ;;  yes)    NSS_CFLAGS="-I$includedir"    nss="1"    ;;  *)    NSS_CFLAGS="-I$withval"    nss="1"    ;;  esac ])AC_ARG_WITH(rsa-hdrs, [  --with-rsa-hdrs[=path]  if not using NSS, specify path to RSA headers],[ if test "x$nss" != "x"; then    AC_MSG_ERROR(Only specify --with-nss-{hdrs,dist} or --with-rsa-hdrs, not both)  fi  case "$withval" in  no)    rsa="0"    ;;  yes)    RSA_INCLUDE="$includedir"    rsa="1"    ;;  *)    RSA_INCLUDE="$withval"    rsa="1"    ;;  esac ])if test "x$nss" = "x"; then  if test "x$rsa" = "x"; then    RSA_INCLUDE="$includedir"  fi  RSA_CFLAGS="-I$RSA_INCLUDE"fiif test "x$nss" = "x1"; then  AC_DEFINE(WITH_NSS,1)fiAC_SUBST(WITH_NSS)if test "x$rsa" = "x1"; then  RSA_CFLAGS-"-I$RSA_INCLUDE"fiAC_ARG_ENABLE(debug, [  --disable-debug         default is enabled],[ case "$enableval" in  no)    DEBUG_CFLAGS="";;  yes)    DEBUG_CFLAGS="-DDEBUG";;  *)    DEBUG_CFLAGS="-DDEBUG";;  esac ], DEBUG_CFLAGS="-DDEBUG")dnl Checks for programs.AC_PROG_CCAC_PROG_CPPAC_PROG_INSTALLAC_PROG_RANLIBAC_CHECK_PROG(AR, ar, ar)AC_CHECK_PROG(LD, ld, ld)AC_CHECK_PROG(RM, rm, rm)AC_CHECK_PROG(TAR, tar, tar)AC_SUBST(CC INSTALL RANLIB AR LD RM TAR)CPPFLAGS="$CFLAGS $NSPR_CFLAGS $NSS_CFLAGS $RSA_CFLAGS $DEBUG_CFLAGS"LIBS="$NSPR_LDFLAGS $LIBS"AC_SUBST(CFLAGS)dnl Checks for libraries.AC_CHECK_LIB(nspr4, PR_Init)dnl Checks for header files.AC_CHECK_HEADERS(nspr.h)AC_SUBST(HAVE_NSPR_H)if test "x$nss" = "x1"; then  AC_CHECK_HEADERS(ck.h)fiif test "x$rsa" = "x1"; then  AC_CHECK_HEADERS(pkcs11t.h pkcs11.h)fiAC_SUBST(HAVE_CK_H HAVE_PKCS11T_H HAVE_PKCS11_H)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_SUBST(const)AC_CHECK_FUNCS(memset strlen)AC_SUBST(HAVE_MEMSET HAVE_STRLEN)AC_OUTPUT(Makefile, [echo timestamp > stamp-h])

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?