Fix inconsistent configure data for --with-ssl
authorMichael Paquier <[email protected]>
Sat, 20 Feb 2021 01:17:10 +0000 (10:17 +0900)
committerMichael Paquier <[email protected]>
Sat, 20 Feb 2021 01:17:10 +0000 (10:17 +0900)
This inconsistency was showing up after an autoreconf.

Reported-by: Antonin Houska
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/47255.1613716807@antos

configure.ac
src/include/pg_config.h.in

index 07da84d40172d8464c810f2fe17fc7f47f740b3e..f54f65febe6c6893a182c0b879599a72e9a41ab6 100644 (file)
@@ -1234,7 +1234,7 @@ if test "$with_ssl" = openssl ; then
   # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
   # function was removed.
   AC_CHECK_FUNCS([CRYPTO_lock])
-  AC_DEFINE([USE_OPENSSL], 1, [Define to 1 if you have OpenSSL support.])
+  AC_DEFINE([USE_OPENSSL], 1, [Define to 1 to build with OpenSSL support. (--with-ssl=openssl)])
 elif test "$with_ssl" != no ; then
   AC_MSG_ERROR([--with-ssl must specify openssl])
 fi
index 55cab4d2bf361a2e05d6229b1a3b97a847aaa7e8..04dc330119193dfa5aea81b9b6d6be8802f4a0c8 100644 (file)
 /* Define to select named POSIX semaphores. */
 #undef USE_NAMED_POSIX_SEMAPHORES
 
-/* Define to build with OpenSSL support. (--with-ssl=openssl) */
+/* Define to 1 to build with OpenSSL support. (--with-ssl=openssl) */
 #undef USE_OPENSSL
 
 /* Define to 1 to build with PAM support. (--with-pam) */