From: Tapani Pälli Date: Thu, 3 Sep 2015 05:34:42 +0000 (+0300) Subject: build: add HAVE_SHA1 define when using --with-sha1 option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0db323a62481a57269a46287a64fa743756e80f3;p=mesa.git build: add HAVE_SHA1 define when using --with-sha1 option Signed-off-by: Tapani Pälli Acked-by: Brian Paul --- diff --git a/configure.ac b/configure.ac index 90ba4feb572..0fed26e1a01 100644 --- a/configure.ac +++ b/configure.ac @@ -1110,6 +1110,11 @@ AC_MSG_RESULT([$with_sha1]) AC_SUBST(SHA1_LIBS) AC_SUBST(SHA1_CFLAGS) +# Enable a define for SHA1 +if test "x$with_sha1" != "x"; then + DEFINES="$DEFINES -DHAVE_SHA1" +fi + # Allow user to configure out the shader-cache feature AC_ARG_ENABLE([shader-cache], AS_HELP_STRING([--disable-shader-cache], [Disable binary shader cache]),