How to enable php5 (php_5.5.22.bb) support for postgresql


fabatera
 

Hi all!

I´m new to yocto recipes and never posted to this mail list.

I´m trying to include postgresql PDO in PHP.

Something like what is informed using ./configure --help in php source:

-with-pdo-pgsql[=DIR]    PDO: PostgreSQL support

My recipe file is php_5.5.21.bb  and here are some default config lines: 

PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \
                        --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \
                        --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \
                        ,--without-mysql --without-mysqli --without-pdo-mysql \
                        ,mysql5"

PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \
                          --with-pdo-sqlite=${STAGING_LIBDIR}/.. \
                          , \
                          ,sqlite3"
PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_TARGET}${exec_prefix},--without-pgsql,postgresql"

Could somebody tell me how to configure this recipe?

Best regards
Fabiano

Join yocto@lists.yoctoproject.org to automatically receive all group messages.