From: George Schlossnagle Date: Wed, 19 May 2004 18:51:01 +0000 (+0000) Subject: builds on stock rh9 now X-Git-Tag: RELEASE_0_1~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee1241ab1afeb7ae815107b3ad8127b8e19c1319;p=php builds on stock rh9 now --- diff --git a/ext/pdo_mysql/config.m4 b/ext/pdo_mysql/config.m4 index 14fa4ffa6e..38e6ef4d01 100755 --- a/ext/pdo_mysql/config.m4 +++ b/ext/pdo_mysql/config.m4 @@ -18,7 +18,7 @@ PHP_ARG_WITH(pdo_mysql, for MySQL support, if test "$PHP_PDO_MYSQL" != "no"; then AC_DEFINE(HAVE_MYSQL, 1, [Whether you have MySQL]) - for i in $PHP_PDO_MYSQL /usr/local /usr; do + for i in $PHP_PDO_MYSQL /usr/local /usr ; do MYSQL_DIR=$i PDO_MYSQL_CONFIG=$MYSQL_DIR/bin/mysql_config if test -r $i/include/mysql; then @@ -26,8 +26,14 @@ if test "$PHP_PDO_MYSQL" != "no"; then else MYSQL_INC_DIR=$i/include fi - MYSQL_LIBS=$i/lib - break + if test -r $i/lib/mysql; then + MYSQL_LIBS=$i/lib/mysql + else + MYSQL_LIBS=$i/lib + fi + if test -x $PDO_MYSQL_CONFIG; then + break + fi done if test -z "$MYSQL_DIR"; then