The configure script as it currently stands will not search exactly in
the specified path if you use --with-mysql-lib option to specify where
MySQL client libraries are; it always looks in subdirectories of that.
This is a problem on, for example, Fedora Core 3 on x86_64, where you
want it to look in /usr/lib64/mysql but there is no way to specify this.
Attached is a patch to configure.in which rectifies this by adding the
exactly specified path alongside the existing ones. For the sake of
completeness it also adds exactly specified path check to
--with-mysql-include.
--- mysql++-1.7.27/configure.in Wed Jan 12 16:04:05 2005
+++ mysql++-1.7.27-fixed/configure.in Fri Feb 4 16:12:31 2005
@@ -32,12 +32,12 @@
AC_ARG_WITH(mysql-lib,
[ --with-mysql-lib=<path> directory path of MySQL library installation],
- [MYSQL_lib_check="$with_mysql_lib/lib $with_mysql_lib/lib/mysql"])
+ [MYSQL_lib_check="$with_mysql_lib $with_mysql_lib/lib $with_mysql_lib/lib/mysql"])
AC_ARG_WITH(mysql-include,
[ --with-mysql-include=<path>
directory path of MySQL header installation],
- [MYSQL_inc_check="$with_mysql_include/include $with_mysql_include/include/mysql"])
+ [MYSQL_inc_check="$with_mysql_include $with_mysql_include/include $with_mysql_include/include/mysql"])
AC_MSG_CHECKING([for MySQL library directory])
MYSQL_libdir=