diff options
author | foobar <sniper@php.net> | 2001-03-10 17:33:33 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2001-03-10 17:33:33 +0000 |
commit | 3db6f55748b48ea7b3adbf94f0e0a1f2c1d31a5f (patch) | |
tree | b470a071cfe5dee3be7b557c54ad965f1515466b /ext/mysql | |
parent | adc498e70566b75c3b8df561f270debca74c3928 (diff) | |
download | php-git-3db6f55748b48ea7b3adbf94f0e0a1f2c1d31a5f.tar.gz |
This should fix the problems with not including -lz.
Diffstat (limited to 'ext/mysql')
-rw-r--r-- | ext/mysql/config.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
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" |