From 3db6f55748b48ea7b3adbf94f0e0a1f2c1d31a5f Mon Sep 17 00:00:00 2001 From: foobar Date: Sat, 10 Mar 2001 17:33:33 +0000 Subject: [PATCH] This should fix the problems with not including -lz. --- ext/mysql/config.m4 | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.40.0