my_conf+=" $(use_with pdo-mysql pdo-mysql ${mysqllib})"
# If MySQL is enabled in any way, pass --with-mysql-sock to ./configure.
- local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock"
- my_conf+=" $(use_with mysql mysql-sock $mysqlsock)"
- my_conf+=" $(use_with mysqli mysql-sock $mysqlsock)"
- my_conf+=" $(use_with pdo-mysql mysql-sock $mysqlsock)"
+ if use mysql || use mysqli || use pdo-mysql ; then
+ my_conf+=" --with-mysql-sock=${EPREFIX}/var/run/mysqld/mysqld.sock"
+ fi
# Session support
if use session ; then