]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4: want_mysql.m4 - Remove HAVE_OPENSSL definition when detecting mysql features
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Thu, 11 Aug 2022 14:36:03 +0000 (16:36 +0200)
committerKarl Fleischmann <karl.fleischmann@open-xchange.com>
Thu, 11 Aug 2022 14:36:03 +0000 (16:36 +0200)
The HAVE_OPENSSL macro has no effect on the exposed features when
including mysql.h, thus it can be removed from the feature detection.

m4/want_mysql.m4

index 50e84cd071fee4b1571394b968f5adbfda145dea..7274708c632bb10bbe30ba45323aa3490d06dccf 100644 (file)
@@ -83,17 +83,11 @@ AC_DEFUN([DOVECOT_WANT_MYSQL], [
       ])
     ],, $MYSQL_LIBS)
 
-    ssl_define=""
-    AS_IF([test "$have_openssl" = "yes"], [
-      ssl_define="#define HAVE_OPENSSL"
-    ])
-
     dnl add mysql-specific flags to the global CPPFLAGS to compile the
     dnl mysql-test programs
     tmp_CPPFLAGS="$CPPFLAGS"
     CPPFLAGS="$MYSQL_CFLAGS"
     AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-      $ssl_define
       #include <mysql.h>
     ]], [[
       mysql_ssl_set(0, 0, 0, 0, 0, 0);
@@ -104,7 +98,6 @@ AC_DEFUN([DOVECOT_WANT_MYSQL], [
     ])
 
     AC_COMPILE_IFELSE([_au_m4_changequote([,])AC_LANG_PROGRAM([[
-      $ssl_define
       #include <mysql.h>
     ]], [[
       int i = MYSQL_OPT_SSL_VERIFY_SERVER_CERT;