diff options
author | Rene Engelhard <rene@debian.org> | 2012-04-09 15:37:03 +0200 |
---|---|---|
committer | Rene Engelhard <rene@debian.org> | 2012-04-09 15:37:54 +0200 |
commit | 6cc3499c777bfe07438a24b23bf79ea5c4c2cd74 (patch) | |
tree | f8d93a93addd8d5427070ddd9d8dafa486a4a5e9 /configure.in | |
parent | 28f6fedd11aff6bf3b3579d9101e39560f83113f (diff) |
fix mysqlcppconn version check
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 090c4eb213b8..24d55e428da9 100644 --- a/configure.in +++ b/configure.in @@ -6493,6 +6493,8 @@ if test "$ENABLE_MYSQLC" = "YES"; then [AC_MSG_ERROR(mysql_driver.h not found. install MySQL C++ Connectivity)], []) AC_CHECK_LIB([mysqlcppconn], [main], [:], [AC_MSG_ERROR(MySQL C++ Connectivity lib not found or functional)], []) + save_LDFLAGS=$LDFLAGS + LDFLAGS="$LDFLAGS -lmysqlcppconn" AC_MSG_CHECKING([version]) AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <mysql_driver.h> @@ -6510,7 +6512,7 @@ int main(int argc, char **argv) { ]])],[AC_MSG_RESULT(OK)],[AC_MSG_ERROR([not suitable, we need >= 1.0.6])],[]) AC_LANG_POP([C++]) - + LDFLAGS=$save_LDFLAGS else AC_MSG_RESULT([internal]) AC_MSG_CHECKING([for mysqlcppconn module]) |