- # Oracle support
- if use oci8-instant-client ; then
- my_conf+="
- $(use_with oci8-instant-client oci8)"
- fi
-
- # PDO support
- if use pdo ; then
- my_conf+="
- $(use_with mssql pdo-dblib )
- $(use_with mysql pdo-mysql ${mysqllib})
- $(use_with postgres pdo-pgsql )
- $(use_with sqlite pdo-sqlite ${EPREFIX}/usr)
- $(use_with odbc pdo-odbc unixODBC,${EPREFIX}/usr)"
- if use oci8-instant-client ; then
- my_conf+="
- $(use_with oci8-instant-client pdo-oci)"
- fi
- fi
-
- # readline/libedit support
- my_conf+="
- $(use_with readline readline ${EPREFIX}/usr)
- $(use_with libedit libedit ${EPREFIX}/usr)"
+ # 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)"