From patchwork Tue Jul 2 19:31:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 256487 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "userp1040.oracle.com", Issuer "VeriSign Class 3 International Server CA - G3" (not verified)) by ozlabs.org (Postfix) with ESMTPS id AD3232C0077 for ; Wed, 3 Jul 2013 05:31:36 +1000 (EST) Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r62JPDtt018283 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 2 Jul 2013 19:25:14 GMT Received: from oss.oracle.com (oss-external.oracle.com [137.254.96.51]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r62JVVP9026420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Jul 2013 19:31:32 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1Uu6IV-0000Rc-U3; Tue, 02 Jul 2013 12:31:31 -0700 Received: from acsinet21.oracle.com ([141.146.126.237]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1Uu6IA-0000Q8-7G for fedfs-utils-devel@oss.oracle.com; Tue, 02 Jul 2013 12:31:10 -0700 Received: from userp1020.oracle.com (userp1020.oracle.com [156.151.31.79]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r62JV9td025649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 2 Jul 2013 19:31:10 GMT Received: from manray.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net [99.26.161.222]) by userp1020.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r62JUXf4031832 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Jul 2013 19:30:34 GMT Received: from manray.1015granger.net (localhost [127.0.0.1]) by manray.1015granger.net (8.14.7/8.14.7) with ESMTP id r62JV8KU048391 for ; Tue, 2 Jul 2013 15:31:08 -0400 To: fedfs-utils-devel@oss.oracle.com From: Chuck Lever Date: Tue, 02 Jul 2013 15:31:08 -0400 Message-ID: <20130702193107.48202.27157.stgit@manray.1015granger.net> In-Reply-To: <20130702191631.48202.83851.stgit@manray.1015granger.net> References: <20130702191631.48202.83851.stgit@manray.1015granger.net> User-Agent: StGit/0.16 MIME-Version: 1.0 X-Flow-Control-Info: class=Pass-to-MM reputation=ipRisk-All ip=99.26.161.222 ct-class=T2 ct-vol1=1 ct-vol2=0 ct-vol3=0 ct-risk=58 ct-spam1=0 ct-spam2=0 ct-bulk=0 rcpts=1 size=999 X-Sendmail-CM-Score: 0.00% X-Sendmail-CM-Analysis: v=2.1 cv=D7V+dJhj c=1 sm=1 tr=0 a=VArTBjHSyJYTe+J30wkXtQ==:117 a=VArTBjHSyJYTe+J30wkXtQ==:17 a=dzsqy3y4QnMA:10 a=vTp5zbeKngEA:10 a=dPGociXpb70A:10 a=IkcTkHD0fZMA:10 a=yPCof4ZbAAAA:8 a=Lb1rMZzfAAAA:8 a=oftqke5UPPQA:10 a=huQqAk2lTGbwX8NO1_ 8A:9 a=QEXdDO2ut3YA:10 a=7DSvI1NPTFQA:10 X-Sendmail-CT-Classification: not spam X-Sendmail-CT-RefID: str=0001.0A090202.51D32A7D.0048, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 Subject: [fedfs-utils] [PATCH 04/11] configure.ac: check for presence of libattr X-BeenThere: fedfs-utils-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: fedfs-utils Developers List-Id: fedfs-utils Developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: fedfs-utils-devel-bounces@oss.oracle.com Errors-To: fedfs-utils-devel-bounces@oss.oracle.com X-Source-IP: acsinet21.oracle.com [141.146.126.237] libattr.so and headers under /usr/include/attr/ should be called out by configure.ac if they can't be found on the build system. Introduced by commit 0520ee72 "Initial commit", Tue Mar 29 15:37:40 2011. Signed-off-by: Chuck Lever --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 0965cfd..7e304ce 100644 --- a/configure.ac +++ b/configure.ac @@ -139,6 +139,11 @@ AC_CHECK_LIB([ssl], [SSL_CTX_new], AC_DEFINE([HAVE_LIBSSL], [1], [Define if you have libssl])], [AC_MSG_ERROR([libssl not found.])]) +AC_CHECK_LIB([attr], [fgetxattr], + [AC_SUBST([LIBATTR], ["-lattr"]) + AC_DEFINE([HAVE_LIBATTR], [1], + [Define if you have libattr])], + [AC_MSG_ERROR([libattr not found.])]) # Checks for header files. AC_CHECK_HEADERS([fcntl.h langinfo.h locale.h memory.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h syslog.h termios.h unistd.h wchar.h])