]> granicus.if.org Git - php/commitdiff
add function existance check
authorHartmut Holzgraefe <hholzgra@php.net>
Sun, 13 Feb 2005 07:15:02 +0000 (07:15 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Sun, 13 Feb 2005 07:15:02 +0000 (07:15 +0000)
ext/pdo_mysql/config.m4

index bdc3c786821f69d57056d83546d92caf441b43ce..054803ad95205f6dfad4e612f95e15a80ed0fe0b 100755 (executable)
@@ -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