From patchwork Tue Jul 16 21:59:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Droneaud X-Patchwork-Id: 2828326 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C78EB9F9CA for ; Tue, 16 Jul 2013 22:01:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E910F20182 for ; Tue, 16 Jul 2013 22:01:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 02D0C20151 for ; Tue, 16 Jul 2013 22:01:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933324Ab3GPWBi (ORCPT ); Tue, 16 Jul 2013 18:01:38 -0400 Received: from smtp1-g21.free.fr ([212.27.42.1]:35945 "EHLO smtp1-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933201Ab3GPWBi (ORCPT ); Tue, 16 Jul 2013 18:01:38 -0400 Received: from localhost.localdomain (unknown [IPv6:2a01:e35:2e9f:6ac0:cd91:c425:aa91:8c1a]) by smtp1-g21.free.fr (Postfix) with ESMTP id 53262940132; Wed, 17 Jul 2013 00:01:28 +0200 (CEST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.14.7/8.14.5) with ESMTP id r6GM0OiE001104; Wed, 17 Jul 2013 00:00:24 +0200 Received: (from ydroneaud@localhost) by localhost.localdomain (8.14.7/8.14.7/Submit) id r6GM0OKD001103; Wed, 17 Jul 2013 00:00:24 +0200 From: Yann Droneaud To: Sean Hefty , linux-rdma@vger.kernel.org Cc: Yann Droneaud Subject: [PATCH librdmacm 4/8] configure: Apply updates proposed by autoupdate Date: Tue, 16 Jul 2013 23:59:48 +0200 Message-Id: X-Mailer: git-send-email 1.8.3.1 In-Reply-To: References: Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 'autoupdate' is a tool to help developer to update configure.ac. This patch applies a few fixes as suggested by autoupdate. Signed-off-by: Yann Droneaud --- configure.ac | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 20c2f94..a9e95c0 100644 --- a/configure.ac +++ b/configure.ac @@ -1,18 +1,18 @@ dnl Process this file with autoconf to produce a configure script. -AC_PREREQ(2.57) -AC_INIT(librdmacm, 1.0.17, linux-rdma@vger.kernel.org) +AC_PREREQ([2.63]) +AC_INIT([librdmacm],[1.0.17],[linux-rdma@vger.kernel.org]) AC_CONFIG_SRCDIR([src/cma.c]) AC_CONFIG_AUX_DIR(config) AC_CONFIG_MACRO_DIR(config) -AC_CONFIG_HEADERS(config.h) +AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([foreign]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) -AM_PROG_LIBTOOL +LT_INIT AC_ARG_WITH([valgrind], - AC_HELP_STRING([--with-valgrind], + AS_HELP_STRING([--with-valgrind], [Enable valgrind annotations - default NO])) if test "$with_valgrind" != "" && test "$with_valgrind" != "no"; then @@ -50,8 +50,8 @@ AC_CHECK_MEMBER(struct ibv_path_record.service_id, [], dnl Check for gcc atomic intrinsics AC_MSG_CHECKING(compiler support for atomics) -AC_TRY_LINK([int i = 0;], - [ return __sync_add_and_fetch(&i, 1) != __sync_sub_and_fetch(&i, 1); ], +AC_LINK_IFELSE([AC_LANG_PROGRAM([[int i = 0;]], + [[ return __sync_add_and_fetch(&i, 1) != __sync_sub_and_fetch(&i, 1); ]])], [ AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no)