diff options
Diffstat (limited to 'acsite.m4')
-rw-r--r-- | acsite.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -198,3 +198,18 @@ fi AC_LANG_RESTORE ])dnl ACX_PTHREAD + +AC_DEFUN([AC_CHECK_MYSQL],[ +AC_PATH_PROG(mysqlconfig,mysql_config) +if test [ -z "$mysqlconfig" ] +then + AC_MSG_ERROR([mysql_config executable not found (part of mysql dev packages)]) +else + AC_MSG_CHECKING(MYSQL includes) + MYSQL_CFLAGS=`${mysqlconfig} --cflags` + AC_MSG_RESULT($MYSQL_CFLAGS) + AC_MSG_CHECKING(MYSQL libraries) + MYSQL_LIBS=`${mysqlconfig} --libs` + AC_MSG_RESULT($MYSQL_LIBS) +fi +])dnl AC_CHECK_MYSQL |