From patchwork Tue Oct 15 21:30:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi-Hung Wei X-Patchwork-Id: 1177434 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="qlHBJnFH"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46t85v2WKQz9sP4 for ; Wed, 16 Oct 2019 08:42:10 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 19D87BE4; Tue, 15 Oct 2019 21:42:08 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 00046ACD for ; Tue, 15 Oct 2019 21:42:06 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 8217A5D3 for ; Tue, 15 Oct 2019 21:42:06 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id k20so5587676pgi.1 for ; Tue, 15 Oct 2019 14:42:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=T8y0U8iMudRJV8Zf5ny8Cuk4JIQg4M6kS8aif+lGbKw=; b=qlHBJnFHNQAOnmk+LAB/Sbn9nW0OE5PHzZ1n5MKMpzp6h24BAg73vZE/3ke9yYrhsE D6LuXzqbIGSZbaZYvfJDnF02pimi5c6haQoCyBlUIFTP96eooIWeSRj0ghzj9dKbGu0p ExMzIdm3t/wh3f9iGAVxvxfUqDikLOYW1i9UxmrghiRQ2I1ArbXZ8PNJFB0ilu/yY/27 +MUPCV909hxNEu4Vqh1azozJGVWvkBQWHqeGRabZfYO0W6rlShD3VYnYc6s2UYjWhRYc PAI61bWNsvHXKy4/Y0pX83KYOyYAsx4anXp4BrnpaMQkV8GocT6jpzQKuiQ5Bpwpt5gu U8/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=T8y0U8iMudRJV8Zf5ny8Cuk4JIQg4M6kS8aif+lGbKw=; b=Y1h7ptpdPpxShXZhekqhfzpsZL2sYv2bXwgXRnRk04IpZ2e2A0cIwBuJK0DjRlGsTB L1PsM2O/b7/hJwfYUfhULxR/hOH9KVuM2I4LnToaE1ZO4xuvPfqEFsu+opEbJQa3zSQ8 qFs9r8BGYd4yKBF3a/LzJufvoThVS2uNu35Fn2ckLCMKyFi4ky0gNkZg+BQXuhZto9ST SiinBW4pd7iZ+67Ffj1md0IjuD/FQwRM9Oi7GiCwLtIlpuwMuFAZPeK9E8FNO0y9PbcX EncIc1KKrS44xzIKBIYags9w25iRIo2XrvllMqL6ZaFG6k6GepWw32DFJVnI0T/EUg6k aYlw== X-Gm-Message-State: APjAAAWrnxMMQuifYREUfr1i2qp3tMBRqW4BmCsJXtrnn8vDBbZxhH6+ Jo2FTCar0gblHGhpGn4MhWNdN7jFrDc= X-Google-Smtp-Source: APXvYqxUEwX1gGOuXiHejGSH/EW870LAA+q+P6px0VBEvkzP1rQTXFdXDav+5aSxmQshFhooxENy9A== X-Received: by 2002:a65:434c:: with SMTP id k12mr41798675pgq.141.1571175725483; Tue, 15 Oct 2019 14:42:05 -0700 (PDT) Received: from Husky.eng.vmware.com ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id y2sm25147469pfe.126.2019.10.15.14.42.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Oct 2019 14:42:04 -0700 (PDT) From: Yi-Hung Wei To: dev@openvswitch.org Date: Tue, 15 Oct 2019 14:30:48 -0700 Message-Id: <1571175048-48730-1-git-send-email-yihung.wei@gmail.com> X-Mailer: git-send-email 2.7.4 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH] configure: Properly handle case where libunwind.h is not available. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org It is possible that user install libunwind but not libunwind-devel, and it will run into a compilation error. So check the existence of the header file instead of the library. Fixes: e2ed6fbeb18c ("fatal-signal: Catch SIGSEGV and print backtrace.") Signed-off-by: Yi-Hung Wei --- m4/openvswitch.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/openvswitch.m4 b/m4/openvswitch.m4 index 79e0be5a33dd..da7119951484 100644 --- a/m4/openvswitch.m4 +++ b/m4/openvswitch.m4 @@ -640,7 +640,7 @@ AC_DEFUN([OVS_CHECK_UNBOUND], dnl Checks for libunwind. AC_DEFUN([OVS_CHECK_UNWIND], - [AC_CHECK_LIB(unwind, unw_backtrace, [HAVE_UNWIND=yes], [HAVE_UNWIND=no]) + [AC_CHECK_HEADERS([libunwind.h], [HAVE_UNWIND=yes], [HAVE_UNWIND=no]) if test "$HAVE_UNWIND" = yes; then AC_DEFINE([HAVE_UNWIND], [1], [Define to 1 if unwind is detected.]) LIBS="$LIBS -lunwind"