build: add HAVE_SHA1 define when using --with-sha1 option
authorTapani Pälli <tapani.palli@intel.com>
Thu, 3 Sep 2015 05:34:42 +0000 (08:34 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 4 Sep 2015 05:05:24 +0000 (08:05 +0300)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Brian Paul <brianp@vmware.com>
configure.ac

index 90ba4feb572e352a584eedd84dff2d937e655504..0fed26e1a019eef3d80ca2eec20dec73213d80c2 100644 (file)
@@ -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]),