From: foobar Date: Sat, 10 Mar 2001 17:33:33 +0000 (+0000) Subject: This should fix the problems with not including -lz. X-Git-Tag: php-4.0.5RC1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3db6f55748b48ea7b3adbf94f0e0a1f2c1d31a5f;p=php This should fix the problems with not including -lz. --- diff --git a/ext/mysql/config.m4 b/ext/mysql/config.m4 index 5781c1dc5e..ae536c6c09 100644 --- a/ext/mysql/config.m4 +++ b/ext/mysql/config.m4 @@ -79,6 +79,11 @@ elif test "$PHP_MYSQL" != "no"; then AC_ADD_LIBRARY_WITH_PATH(mysqlclient, $MYSQL_LIB_DIR, MYSQL_SHARED_LIBADD) + dnl Check if mysql_config is found. If yes, use the LIBS provided by it.. + if test -x "$MYSQL_DIR/bin/mysql_config"; then + PHP_EVAL_LIBLINE($MYSQL_DIR/bin/mysql_config --libs) + fi + AC_ADD_INCLUDE($MYSQL_INC_DIR) else MYSQL_MODULE_TYPE="none"