VERSION="41041"
PREFIX="/usr/local/mysql/$VERSION"
# InnoDB is included by default as of MySQL 4:
# - prior to 4.x, include InnoDB with --with-innodb
# - from 4.x on, exclude InnoDB with --without-innodb
HANDLERS="--with-berkeley-db"
OTHER="--enable-assembler --with-mysqld-ldflags=-all-static --with-charset=ujis --with-extra-charsets=all"
rm -f config.cache
./configure \
	--prefix=$PREFIX \
	--localstatedir=$PREFIX/data \
	--with-unix-socket-path=$PREFIX/mysql.sock \
	--with-tcp-port=$VERSION \
	$HANDLERS $OTHER
