From: Ruben Kerkhof Date: Sat, 1 Aug 2015 17:03:34 +0000 (+0200) Subject: mysql: use mysql_config --include for include path X-Git-Tag: collectd-5.5.1~52^2~7 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=600c8b6ab8077ba5e871591bf55276f705fe520a;p=collectd.git mysql: use mysql_config --include for include path According to the mysql_config manpage, --cflags shows the compiler flags the library was compiled with. We certainly don't want to use those. --- diff --git a/configure.ac b/configure.ac index ce01b1ee..41c36cb5 100644 --- a/configure.ac +++ b/configure.ac @@ -2585,7 +2585,7 @@ AC_ARG_WITH(libmysql, [AS_HELP_STRING([--with-libmysql@<:@=PREFIX@:>@], [Path to ]) if test "x$with_libmysql" = "xyes" then - with_mysql_cflags=`$with_mysql_config --cflags 2>/dev/null` + with_mysql_cflags=`$with_mysql_config --include 2>/dev/null` mysql_config_status=$? if test $mysql_config_status -ne 0