From: Andrey Hristov Date: Wed, 17 Oct 2012 14:35:36 +0000 (+0200) Subject: fix build with libmysql on Ubuntu 12.04 x64 probably other mixed 32/64 systems X-Git-Tag: php-5.5.0alpha1~28^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d62702851ca7012cf4b635e6379cb4de383dc7ac;p=php fix build with libmysql on Ubuntu 12.04 x64 probably other mixed 32/64 systems --- diff --git a/ext/mysql/config.m4 b/ext/mysql/config.m4 index fa7a46f853..5968c43346 100644 --- a/ext/mysql/config.m4 +++ b/ext/mysql/config.m4 @@ -96,6 +96,13 @@ Note that the MySQL client library is not bundled anymore!]) MYSQL_LIB_CHK($i) done + if test -z "$MYSQL_LIB_DIR"; then + MYSQL_LIB_CHK(lib/x86_64-linux-gnu) + fi + if test -z "$MYSQL_LIB_DIR"; then + MYSQL_LIB_CHK(lib/i386-linux-gnu) + fi + if test -z "$MYSQL_LIB_DIR"; then AC_MSG_ERROR([Cannot find lib$MYSQL_LIBNAME under $MYSQL_DIR. Note that the MySQL client library is not bundled anymore!])