build: Exit with an error when the configure script can't find gcrypt.

The configure script already detects whether the header and library are
present. If they're missing however, the configure script succeeds and
we never notify the user.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
diff --git a/configure.ac b/configure.ac
index 636ed79..2cdf570 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,9 +36,14 @@
             [enable_esapi=$enableval],
             [enable_esapi=yes])
 AS_IF([test "x$enable_esapi" != xno],
-      [AC_CHECK_HEADER([gcrypt.h])])
+      [AC_CHECK_HEADER([gcrypt.h],
+                       [],
+                       [AC_MSG_ERROR([Missing required header: gcrypt.h.])])])
 AS_IF([test "x$enable_esapi" != xno],
-      [AC_CHECK_LIB([gcrypt], [gcry_mac_open])])
+      [AC_CHECK_LIB([gcrypt],
+                    [gcry_mac_open],
+                    [],
+                    [AC_MSG_ERROR([Missing required library: gcrypt.])])])
 AM_CONDITIONAL([ESAPI], [test "x$enable_esapi" != xno])
 
 AC_ARG_WITH([tctidefaultmodule],