dovecot-2.0: configure: Make sure mysql libs/cflags aren't used ...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jul 20 22:23:26 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/45b835e6f59c
changeset: 11871:45b835e6f59c
user: Timo Sirainen <tss at iki.fi>
date: Tue Jul 20 20:23:20 2010 +0100
description:
configure: Make sure mysql libs/cflags aren't used if they don't work.
diffstat:
configure.in | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r 5b3202a069fa -r 45b835e6f59c configure.in
--- a/configure.in Tue Jul 20 17:21:29 2010 +0100
+++ b/configure.in Tue Jul 20 20:23:20 2010 +0100
@@ -2142,6 +2142,7 @@
LIBS=$old_LIBS
fi
+have_mysql=no
if test $want_mysql != no; then
AC_CHECK_PROG(MYSQL_CONFIG, mysql_config, YES, NO)
if test $MYSQL_CONFIG = NO; then
@@ -2197,6 +2198,7 @@
])
])
+ have_mysql=yes
AC_DEFINE(HAVE_MYSQL,, Build with MySQL support)
found_sql_drivers="$found_sql_drivers mysql"
], [
@@ -2211,6 +2213,10 @@
fi
])
+ if test $have_mysql != yes; then
+ MYSQL_LIBS=
+ MYSQL_CFLAGS=
+ fi
LIBS=$old_LIBS
fi
More information about the dovecot-cvs
mailing list