From patchwork Thu Oct 4 00:27:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Stone X-Patchwork-Id: 1543981 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id D1D79DFF71 for ; Thu, 4 Oct 2012 00:27:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 96217A0B20 for ; Wed, 3 Oct 2012 17:27:41 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B4A69E864 for ; Wed, 3 Oct 2012 17:27:30 -0700 (PDT) Received: by mail-pb0-f49.google.com with SMTP id xa7so12064pbc.36 for ; Wed, 03 Oct 2012 17:27:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:x-mailer:x-gm-message-state; bh=9MkCm5SEig1CKpuxS5MhNv/x2PQCzo3z6SSV416qftw=; b=VgptNTpj26B6nzGgRjA9nty3wkEPoysxehwq0RlwnI4FHh9vGiYRxWMhb7o5Nc2zyM m1LqCv79yhx+lWRZiaRRFdRGSgt6h4ud67RfzXZHk0DdQH5qVSeyXAu3V31orgTX0ESL d0BQw4q6TW1udHSvlEOugmNnVhChM6T9djM6v4sdbqs13ahokBjgnt17nHfJJ+uwsqla kWOpNrGlGwJQ0DKpq+al+XMpDnr+V6MUSUUOdXwzN03pINqOOHG++68k26U074vTF1Gr fhox4J9FIAzLE7g14e9bczU+JgoIVnKv41N+YGgzgneEZEkaYHiWAJE9qF8+1PWawj7O TJuQ== Received: by 10.68.242.97 with SMTP id wp1mr17190979pbc.159.1349310450159; Wed, 03 Oct 2012 17:27:30 -0700 (PDT) Received: from swamp81.fooishbar.org (115-64-155-100.static.tpgi.com.au. [115.64.155.100]) by mx.google.com with ESMTPS id kt2sm3356182pbc.73.2012.10.03.17.27.28 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 03 Oct 2012 17:27:29 -0700 (PDT) Received: by swamp81.fooishbar.org (Postfix, from userid 1000) id ADE1E65A654; Thu, 4 Oct 2012 10:27:24 +1000 (EST) From: Daniel Stone To: dri-devel@lists.freedesktop.org Subject: [PATCH] configure.ac: Allow forcible disabling of Cairo support Date: Thu, 4 Oct 2012 10:27:24 +1000 Message-Id: <1349310444-10413-1-git-send-email-daniel@fooishbar.org> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQnHrEmD7klaPmFRzwWE1pGe3yJZi6tNXEOzd7puKYLlpYkSr6i0wJOsjwwhKBAycnQgvwt6 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org We don't want to build libdrm tests with Cairo support under Poky, since they're never used and also cause a build loop from libdrm -> cairo -> mesa-dri -> libdrm. To avoid variance in build results, introduce a --disable-cairo-tests switch. Signed-off-by: Daniel Stone --- configure.ac | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 290362c..69cb1cf 100644 --- a/configure.ac +++ b/configure.ac @@ -222,11 +222,21 @@ if test "x$EXYNOS" = xyes; then AC_DEFINE(HAVE_EXYNOS, 1, [Have EXYNOS support]) fi +AC_ARG_ENABLE([cairo-tests], + [AS_HELP_STRING([--enable-cairo-tests], + [Enable support for Cairo rendering in tests (default: auto)])], + [CAIRO=$enableval], [CAIRO=auto]) PKG_CHECK_MODULES(CAIRO, cairo, [HAVE_CAIRO=yes], [HAVE_CAIRO=no]) -if test "x$HAVE_CAIRO" = xyes; then +if test "x$CAIRO" = xauto; then + CAIRO="$HAVE_CAIRO" +fi +if test "x$CAIRO" = xyes; then + if ! test "x$HAVE_CAIRO" = xyes; then + AC_MSG_ERROR([Cairo support required but not present]) + fi AC_DEFINE(HAVE_CAIRO, 1, [Have cairo support]) fi -AM_CONDITIONAL(HAVE_CAIRO, [test "x$HAVE_CAIRO" = xyes]) +AM_CONDITIONAL(HAVE_CAIRO, [test "x$HAVE_CAIRO" = xyes && test "x$CAIRO" = xyes]) # For enumerating devices in test case PKG_CHECK_MODULES(LIBUDEV, libudev, [HAVE_LIBUDEV=yes], [HAVE_LIBUDEV=no])