From patchwork Thu Jul 24 17:53:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robbie King X-Patchwork-Id: 34246 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 78E2420C7F for ; Thu, 24 Jul 2014 17:55:07 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id at20sf19693786iec.11 for ; Thu, 24 Jul 2014 10:55:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=E7G9PZ+bAwJ90oCNeLJ75eh+mOeW1FKLMfaRI2fN6H4=; b=cdeXtP05h4dMP5Qmx1t9VJC3rAqkWLb87EovggEUkkhxCOSzumdOU3pz8iA2hqe55G xpOZPSRwJHu9efcJl9pXpOb17bsWi5r1xnCfZOaCtxvSTKpawexOz3Z/VmBgwNwmk1vR 4+p+xjpet43fkuDzGmgBK+cAjbgXnLCTPRvAZT2cpYHhu0GtU+g0TOVcjwdlIxWXfgmc qMo4QCBGzTMwy5TjN4nUHAWTfOdWnJXUo+n3mXYOmt0lnnR7YRYDma8/8HBivp6lCncT 4hYnacnM2gPA3RC4M1UCSXDLlxKvKiXth3+jl/9siByoxL/k33ZQrxfIaHxJ6ePNC7/U d8/w== X-Gm-Message-State: ALoCoQk4kpqpCvZXE7o8PBXFoiF4QPc/56C93i3RsAvjyZwDBcomQCm5B3affgmc+KMbqID8R0+8 X-Received: by 10.42.47.10 with SMTP id m10mr4951317icf.34.1406224507031; Thu, 24 Jul 2014 10:55:07 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.80 with SMTP id t74ls881919qge.32.gmail; Thu, 24 Jul 2014 10:55:06 -0700 (PDT) X-Received: by 10.236.82.5 with SMTP id n5mr14771302yhe.35.1406224506848; Thu, 24 Jul 2014 10:55:06 -0700 (PDT) Received: from mail-vc0-x234.google.com (mail-vc0-x234.google.com [2607:f8b0:400c:c03::234]) by mx.google.com with ESMTPS id p9si19156049yhp.133.2014.07.24.10.55.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 10:55:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::234 as permitted sender) client-ip=2607:f8b0:400c:c03::234; Received: by mail-vc0-f180.google.com with SMTP id ij19so5377751vcb.25 for ; Thu, 24 Jul 2014 10:55:06 -0700 (PDT) X-Received: by 10.220.131.207 with SMTP id y15mr14484322vcs.71.1406224506578; Thu, 24 Jul 2014 10:55:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp384781vcb; Thu, 24 Jul 2014 10:55:06 -0700 (PDT) X-Received: by 10.140.81.134 with SMTP id f6mr2477879qgd.60.1406224506108; Thu, 24 Jul 2014 10:55:06 -0700 (PDT) Received: from ip-10-141-164-156.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id k10si12231660qai.42.2014.07.24.10.55.05 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 10:55:06 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-141-164-156.ec2.internal) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XANEO-0000JI-WA; Thu, 24 Jul 2014 17:55:05 +0000 Received: from rcdn-iport-1.cisco.com ([173.37.86.72]) by ip-10-141-164-156.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XANEJ-0000IM-PG for lng-odp@lists.linaro.org; Thu, 24 Jul 2014 17:54:59 +0000 X-IronPort-AV: E=Sophos;i="5.01,725,1400025600"; d="scan'208";a="342394587" Received: from alln-core-5.cisco.com ([173.36.13.138]) by rcdn-iport-1.cisco.com with ESMTP; 24 Jul 2014 17:54:54 +0000 Received: from cpp-rtpbld-55.cisco.com (cpp-rtpbld-55.cisco.com [172.18.5.199]) by alln-core-5.cisco.com (8.14.5/8.14.5) with ESMTP id s6OHsrD5029356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jul 2014 17:54:54 GMT Received: from cpp-rtpbld-55.cisco.com (localhost.localdomain [127.0.0.1]) by cpp-rtpbld-55.cisco.com (8.13.8/8.13.8) with ESMTP id s6OHsrjq024458; Thu, 24 Jul 2014 13:54:53 -0400 Received: (from robking@localhost) by cpp-rtpbld-55.cisco.com (8.13.8/8.13.8/Submit) id s6OHsrdE024457; Thu, 24 Jul 2014 13:54:53 -0400 From: Robbie King To: lng-odp@lists.linaro.org Date: Thu, 24 Jul 2014 13:53:57 -0400 Message-Id: <1406224439-24226-2-git-send-email-robking@cisco.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1406224439-24226-1-git-send-email-robking@cisco.com> References: <1406224439-24226-1-git-send-email-robking@cisco.com> X-Topics: crypto patch Subject: [lng-odp] [PATCH 1/3] Add crypto library to dependencies and configure script X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Original-Sender: robking@cisco.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::234 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=fail header.i=@cisco.com Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Robbie King --- DEPENDENCIES | 8 ++++++++ configure.ac | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/DEPENDENCIES b/DEPENDENCIES index 4b7faef..d0e614e 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -16,3 +16,11 @@ Prerequisites for building the OpenDataPlane (ODP) API On CentOS/RedHat/Fedora systems: $ sudo yum install automake autoconf autoconf-archive libtool libtoolize + +3. crypto + + On Debian/Ubuntu systems: + $ sudo apt-get install libssl-dev + + On CentOS/RedHat/Fedora systems: + $ sudo yum install openssl-devel diff --git a/configure.ac b/configure.ac index 7320162..c895c7d 100644 --- a/configure.ac +++ b/configure.ac @@ -87,6 +87,15 @@ AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS" AM_LDFLAGS="$AM_LDFLAGS $PTHREAD_LDFLAGS" ########################################################################## +# Check for openssl availability +########################################################################## + +AC_CHECK_LIB([crypto], [EVP_EncryptInit], [], + [AC_MSG_FAILURE([can't find openssl crypto lib])]) +AC_CHECK_HEADERS([openssl/des.h openssl/rand.h openssl/hmac.h openssl/evp.h], [], + [AC_MSG_FAILURE([can't find openssl crypto headers])]) + +########################################################################## # Default warning setup ########################################################################## ODP_CFLAGS="$ODP_CFLAGS -W -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes"