[dovecot-cvs] dovecot configure.in,1.176,1.177

cras at dovecot.org cras at dovecot.org
Mon Jul 26 20:06:37 EEST 2004


Update of /home/cvs/dovecot
In directory talvi:/tmp/cvs-serv21155

Modified Files:
	configure.in 
Log Message:
Added MySQL SSL support.



Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.176
retrieving revision 1.177
diff -u -d -r1.176 -r1.177
--- configure.in	26 Jul 2004 16:21:29 -0000	1.176
+++ configure.in	26 Jul 2004 17:06:34 -0000	1.177
@@ -1119,15 +1119,33 @@
 fi
 
 if test $want_mysql = yes; then
+	mysql_header=mysql.h
 	AC_CHECK_LIB(mysqlclient, mysql_init, [
 		AC_CHECK_HEADER(mysql.h,, [
 			AC_CHECK_HEADER(mysql/mysql.h, [
+				mysql_header=mysql/mysql.h
 				AUTH_CFLAGS="$AUTH_CFLAGS -DHAVE_MYSQL_MYSQL_H"
 			], want_mysql=no)
 		])
 	], want_mysql=no)
 
 	if test $want_mysql = yes; then
+		AC_CHECK_LIB(mysqlclient, mysql_ssl_set, [
+			AC_DEFINE(HAVE_MYSQL_SSL,, Define if your MySQL library has SSL functions)
+			if test "x$have_openssl" = "yes"; then
+			  ssl_define="#define HAVE_OPENSSL"
+			else
+			  ssl_define=""
+			fi
+			AC_TRY_COMPILE([
+			  $ssl_define
+			  #include <$mysql_header>
+			], [
+			  mysql_set_ssl(0, 0, 0, 0, 0, 0);
+			], [
+				AC_DEFINE(HAVE_MYSQL_SSL_CIPHER,, Define if your MySQL library supports setting cipher)
+			])
+		])
 		AUTH_LIBS="$AUTH_LIBS -lmysqlclient"
 
         	AC_DEFINE(USERDB_MYSQL,, Build with MySQL support)



More information about the dovecot-cvs mailing list