Index: trunk/configure.ac
===================================================================
--- trunk/configure.ac	(revision 388)
+++ trunk/configure.ac	(revision 389)
@@ -2307,5 +2307,13 @@
 			  mychk0=`${sampre} -H ${withval} 2>/dev/null`
 			  if test "x$?" != "x0"; then
-			    :
+			    if test "x${nocl_code}" != "x"; then
+			       mychk0=`echo -H ${withval} | ${sampre} ${nocl_code} 2>/dev/null`
+			       if test "x$?" != "x0"; then
+			       	  :
+			       else
+			          mychk="${mychk0}"
+				  mychktest=yes
+			       fi 
+			    fi
 			  else
 			    mychk="${mychk0}"
Index: trunk/docs/Changelog
===================================================================
--- trunk/docs/Changelog	(revision 388)
+++ trunk/docs/Changelog	(revision 389)
@@ -1,3 +1,5 @@
 3.0.2:
+	* fixed configure.ac for the case that --with-gpg and --enable-nocl are
+	  used (./samhain for gpg checksum; problem report by Andy Jack)
 	* fixed a potential NULL pointer dereference in sh_inotify.c on
 	  systems where inotify is not available (reported by <anonymous>)
