diff options
author | Luca Longinotti <chtekk@gentoo.org> | 2006-12-16 12:34:29 +0000 |
---|---|---|
committer | Luca Longinotti <chtekk@gentoo.org> | 2006-12-16 12:34:29 +0000 |
commit | 029c15b500cc4fed1f878b823412f3d8b68673ad (patch) | |
tree | 7ab23d4f92101094703e18c5aae2c6a00d584a5a | |
parent | Stable on ppc wrt bug 158271 (diff) | |
download | historical-029c15b500cc4fed1f878b823412f3d8b68673ad.tar.gz historical-029c15b500cc4fed1f878b823412f3d8b68673ad.tar.bz2 historical-029c15b500cc4fed1f878b823412f3d8b68673ad.zip |
Fix charset support with minimal build.
-rw-r--r-- | eclass/mysql.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass index 15738b214070..bf238960058e 100644 --- a/eclass/mysql.eclass +++ b/eclass/mysql.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.49 2006/12/13 11:11:26 vivo Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.50 2006/12/16 12:34:29 chtekk Exp $ # Author: Francesco Riosa <vivo@gentoo.org> # Maintainer: Luca Longinotti <chtekk@gentoo.org> @@ -174,6 +174,14 @@ configure_minimal() { else myconf="${myconf} --enable-shared --enable-static" fi + + if mysql_version_is_at_least "4.01.00.00" && ! useq "latin1" ; then + myconf="${myconf} --with-charset=utf8" + myconf="${myconf} --with-collation=utf8_general_ci" + else + myconf="${myconf} --with-charset=latin1" + myconf="${myconf} --with-collation=latin1_swedish_ci" + fi } configure_common() { |