From: Kern Sibbald Date: Tue, 1 Dec 2009 14:58:45 +0000 (+0100) Subject: Fix include MySQL libs to use shared object. Fixes bug #1427 X-Git-Tag: Release-7.0.0~2545 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4cab57eff0a94c3818cbc73b2c85cd31ff749f4e;p=bacula%2Fbacula Fix include MySQL libs to use shared object. Fixes bug #1427 --- diff --git a/bacula/autoconf/bacula-macros/db.m4 b/bacula/autoconf/bacula-macros/db.m4 index ac27d5f034..da18207543 100644 --- a/bacula/autoconf/bacula-macros/db.m4 +++ b/bacula/autoconf/bacula-macros/db.m4 @@ -420,7 +420,11 @@ AC_HELP_STRING([--with-mysql@<:@=DIR@:>@], [Include MySQL support. DIR is the My AC_DEFINE(HAVE_THREAD_SAFE_MYSQL) fi SQL_BINDIR=$MYSQL_BINDIR - SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a + if test -f $MYSQL_LIBDIR/libmysqlclient_r.so; then + SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.so + else + SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a + fi AC_DEFINE(HAVE_MYSQL) AC_MSG_RESULT(yes) diff --git a/bacula/configure b/bacula/configure index a007d7bcc4..9ff994a1bb 100755 --- a/bacula/configure +++ b/bacula/configure @@ -28268,7 +28268,11 @@ _ACEOF fi SQL_BINDIR=$MYSQL_BINDIR - SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a + if test -f $MYSQL_LIBDIR/libmysqlclient_r.so; then + SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.so + else + SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a + fi cat >>confdefs.h <<\_ACEOF #define HAVE_MYSQL 1