diff options
Diffstat (limited to 'm4')
-rw-r--r-- | m4/np_mysqlclient.m4 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/np_mysqlclient.m4 b/m4/np_mysqlclient.m4 index 9bbe63c..cd36c4f 100644 --- a/m4/np_mysqlclient.m4 +++ b/m4/np_mysqlclient.m4 | |||
@@ -42,6 +42,12 @@ AC_DEFUN([np_mysqlclient], | |||
42 | fi | 42 | fi |
43 | np_mysql_libs="`$np_mysql_config --libs`" | 43 | np_mysql_libs="`$np_mysql_config --libs`" |
44 | np_mysql_cflags="`$np_mysql_config --cflags`" | 44 | np_mysql_cflags="`$np_mysql_config --cflags`" |
45 | # On Solaris, cflags may contain -xstrconst, which is not acceptable to the | ||
46 | # gcc compiler. In this case, use the include flags as the cflags | ||
47 | echo $np_mysql_cflags | grep -- -xstrconst > /dev/null 2> /dev/null | ||
48 | if test $? -eq 0 -a "$CC" = "gcc" ; then | ||
49 | np_mysql_cflags="`$np_mysql_config --include`" | ||
50 | fi | ||
45 | 51 | ||
46 | dnl Test a mysql_init. Some systems have mysql_config, but no headers | 52 | dnl Test a mysql_init. Some systems have mysql_config, but no headers |
47 | _savedcppflags="$CPPFLAGS" | 53 | _savedcppflags="$CPPFLAGS" |