From: Emil Velikov Date: Tue, 17 Mar 2015 00:19:27 +0000 (+0000) Subject: configure.ac: error out if building freedreno_kgsl without freedreno X-Git-Tag: libdrm-2.4.60~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d20413a7ce5816abe1127ffffc5bcab82f268c16;p=platform%2Fupstream%2Flibdrm.git configure.ac: error out if building freedreno_kgsl without freedreno The former is a subset of the latter. Error out early so the user is aware that they are doing something very wrong. Cc: Rob Clark Signed-off-by: Emil Velikov Reviewed-by: Rob Clark --- diff --git a/configure.ac b/configure.ac index 7f76083..6e45fa8 100644 --- a/configure.ac +++ b/configure.ac @@ -321,6 +321,11 @@ if test "x$FREEDRENO" = xyes; then AC_DEFINE(HAVE_FREEDRENO, 1, [Have freedreno support]) fi +if test "x$FREEDRENO_KGSL" = xyes; then + if test "x$FREEDRENO" != xyes; then + AC_MSG_ERROR([Cannot enable freedreno KGSL interface if freedreno is disabled]) + fi +fi AM_CONDITIONAL(HAVE_FREEDRENO_KGSL, [test "x$FREEDRENO_KGSL" = xyes]) if test "x$FREEDRENO_KGSL" = xyes; then AC_DEFINE(HAVE_FREEDRENO_KGSL, 1, [Have freedreno support for KGSL kernel interface])