diff options
author | Stef Walter <stef@memberwebs.com> | 2004-08-17 20:59:21 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-08-17 20:59:21 +0000 |
commit | be3808480b56e33331dcc2fac79bd847a3d8c77b (patch) | |
tree | 20d8b94d80bfa1b19efe0b22f7d0b18f501debc7 | |
parent | d92564c87818157b09ddfbf3314406b765ca390a (diff) |
- Added mysql support
-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 |