From: Hartmut Holzgraefe Date: Sun, 13 Feb 2005 07:15:02 +0000 (+0000) Subject: add function existance check X-Git-Tag: RELEASE_0_2_4~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e08745549365b1b6cb3b198a37de0183d8ab1992;p=php add function existance check --- diff --git a/ext/pdo_mysql/config.m4 b/ext/pdo_mysql/config.m4 index bdc3c78682..054803ad95 100755 --- a/ext/pdo_mysql/config.m4 +++ b/ext/pdo_mysql/config.m4 @@ -54,6 +54,11 @@ Note that the MySQL client library is not bundled anymore.]) PHP_SUBST_OLD(PDO_MYSQL_LIBS) fi + _SAVE_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS $PDO_MYSQL_LIBS" + AC_CHECK_FUNCS([mysql_commit mysql_rollback mysql_autocommit]) + LDFLAGS=$_SAVE_LDFLAGS + if test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then pdo_inc_path=$prefix/include/php/ext elif test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then