]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Enforce pthread rwlock to be only enabled in developer mode
authorOndřej Surý <ondrej@sury.org>
Tue, 4 Jun 2019 19:53:15 +0000 (21:53 +0200)
committerEvan Hunt <each@isc.org>
Wed, 5 Jun 2019 18:17:19 +0000 (11:17 -0700)
configure
configure.ac

index 9a13d5f954df621624e5950057e0e947998b3b7a..b097723ece5a013a64cf716b54027c73e0c3263c 100755 (executable)
--- a/configure
+++ b/configure
@@ -15649,6 +15649,10 @@ $as_echo "#define USE_PTHREAD_RWLOCK 1" >>confdefs.h
 
 fi
 
+if test "$enable_pthread_rwlock" = "yes" -a "$enable_developer" != "yes"; then :
+  as_fn_error $? "pthread rwlock is not meant used in production and the developer mode must be enabled" "$LINENO" 5
+fi
+
 CRYPTO=OpenSSL
 
 #
index 7064846004c4f6f03de24442e3c481f9dc095e38..db2c524ea39c6b571dae295182c08ce2ebe1dce2 100644 (file)
@@ -747,6 +747,9 @@ AS_IF([test "$enable_pthread_rwlock" = "yes"],
        AC_DEFINE([USE_PTHREAD_RWLOCK],[1],[Define if you want to use pthread rwlock implementation])
       ])
 
+AS_IF([test "$enable_pthread_rwlock" = "yes" -a "$enable_developer" != "yes"],
+      [AC_MSG_ERROR([pthread rwlock is not meant used in production and the developer mode must be enabled])])
+
 CRYPTO=OpenSSL
 
 #