summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2015-09-03 08:34:42 +0300
committerTapani Pälli <[email protected]>2015-09-04 08:05:24 +0300
commit0db323a62481a57269a46287a64fa743756e80f3 (patch)
treea7cb9c4b50dca1f37d06d03d08dd2e757b572568 /configure.ac
parent2ace64fd598816fd1be9877962734242fc27b87b (diff)
build: add HAVE_SHA1 define when using --with-sha1 option
Signed-off-by: Tapani Pälli <[email protected]> Acked-by: Brian Paul <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
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]),