Use mysql_config --libs_r instead of mysql_config --libs | sed.

This commit is contained in:
Alexey Kopytov
2015-11-03 00:11:51 +03:00
parent c3b0aa04e2
commit 5ede7f5b28

View File

@ -86,8 +86,7 @@ ERROR: cannot find MySQL libraries. If you want to compile with MySQL support,
if test [ -z "$ac_cv_mysql_libs" ]
then
AC_MSG_CHECKING(MySQL linker flags)
MYSQL_LIBS=`${mysqlconfig} --libs | sed -e \
's/-lmysqlclient /-lmysqlclient_r /' -e 's/-lmysqlclient$/-lmysqlclient_r/'`
MYSQL_LIBS=`${mysqlconfig} --libs_r`
AC_MSG_RESULT($MYSQL_LIBS)
fi
fi