Index: config-scripts/cups-ssl.m4
===================================================================
--- config-scripts/cups-ssl.m4	(revision 9144)
+++ config-scripts/cups-ssl.m4	(working copy)
@@ -84,6 +84,10 @@
 	        SSLLIBS="$SSLLIBS `$LIBGCRYPTCONFIG --libs`"
 	        SSLFLAGS="$SSLFLAGS `$LIBGCRYPTCONFIG --cflags`"
 	    fi
+
+	    if test "x$have_pthread" = xyes; then
+		    AC_MSG_ERROR([The current version of GNU TLS cannot be made thread-safe.])
+	    fi
 	fi
     fi
 
Index: configure.in
===================================================================
--- configure.in	(revision 9144)
+++ configure.in	(working copy)
@@ -31,9 +31,9 @@
 sinclude(config-scripts/cups-slp.m4)
 sinclude(config-scripts/cups-gssapi.m4)
 sinclude(config-scripts/cups-ldap.m4)
+sinclude(config-scripts/cups-threads.m4)
 sinclude(config-scripts/cups-ssl.m4)
 sinclude(config-scripts/cups-pam.m4)
-sinclude(config-scripts/cups-threads.m4)
 sinclude(config-scripts/cups-largefile.m4)
 sinclude(config-scripts/cups-dnssd.m4)
 sinclude(config-scripts/cups-launchd.m4)
