Mercurial > dovecot > original-hg > dovecot-1.2
diff configure.in @ 2369:189a6de6b166 HEAD
Added MySQL SSL support.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 26 Jul 2004 20:06:34 +0300 |
parents | 203938a7f45e |
children | 8f5be0be3199 |
line wrap: on
line diff
--- a/configure.in Mon Jul 26 19:39:18 2004 +0300 +++ b/configure.in Mon Jul 26 20:06:34 2004 +0300 @@ -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)