mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
Fixed issue for compiling mysql plugin on Solaris
On Solaris, in the case where the mysql libraries were compiled using a non-gcc compiler, but the plugins are being compiled with gcc, the configure process would incorrectly determine the MYSQLCFLAGS. This has been corrected in the m4/np_mysqlclient.m4 file.
This commit is contained in:
parent
5532dbe48a
commit
55fb4097cd
1 changed files with 6 additions and 0 deletions
|
|
@ -42,6 +42,12 @@ AC_DEFUN([np_mysqlclient],
|
|||
fi
|
||||
np_mysql_libs="`$np_mysql_config --libs`"
|
||||
np_mysql_cflags="`$np_mysql_config --cflags`"
|
||||
# On Solaris, cflags may contain -xstrconst, which is not acceptable to the
|
||||
# gcc compiler. In this case, use the include flags as the cflags
|
||||
echo $np_mysql_cflags | grep -- -xstrconst > /dev/null 2> /dev/null
|
||||
if test $? -eq 0 -a "$CC" = "gcc" ; then
|
||||
np_mysql_cflags="`$np_mysql_config --include`"
|
||||
fi
|
||||
|
||||
dnl Test a mysql_init. Some systems have mysql_config, but no headers
|
||||
_savedcppflags="$CPPFLAGS"
|
||||
|
|
|
|||
Loading…
Reference in a new issue