diff -Naur libzdb-2.3.orig/configure.ac libzdb-2.3/configure.ac --- libzdb-2.3.orig/configure.ac 2008-10-03 14:25:37.000000000 +0100 +++ libzdb-2.3/configure.ac 2008-12-14 19:41:38.000000000 +0000 @@ -136,13 +136,13 @@ else svd_LDFLAGS=$LDFLAGS svd_CPPFLAGS=$CPPFLAGS - LDFLAGS="-L$with_mysql/lib $LDFLAGS" - CPPFLAGS="-I$with_mysql/include $CPPFLAGS" + LDFLAGS="-L$with_mysql/lib/mysql $LDFLAGS" + CPPFLAGS="-I$with_mysql/include/mysql $CPPFLAGS" AC_CHECK_HEADERS([mysql.h], [ mysql="yes" - if test -r "$with_mysql/lib/libmysqlclient.a"; then - DBCPPFLAGS="$DBCPPFLAGS -I$with_mysql/include" - DBLDFLAGS="$DBLDFLAGS -L$with_mysql/lib/ -lmysqlclient" + if test -r "$with_mysql/lib/mysql/libmysqlclient.a"; then + DBCPPFLAGS="$DBCPPFLAGS -I$with_mysql/include/mysql" + DBLDFLAGS="$DBLDFLAGS -L$with_mysql/lib/mysql -lmysqlclient" else mysql="no" fi