Hey guys,
I'm trying to modify my configure.in file so that devs who run ./configure without the --enable-mysql option won't have to install the mysql headers because it still checks for the headers but doesn't use them...
here is the relevant code:
Code:
AC_ARG_ENABLE(
[mysql],
[AS_HELP_STRING(
[--enable-mysql],
[Enables the mysql database plugin @<:@default=no@:>@])],
[
case $enableval in
yes|ye|y) enablemysql=yes
;;
no|n) enablemysql=no
;;
*) AC_MSG_ERROR([Invalid option '$enableval' - must be yes or no])
;;
esac
],
[enablemysql=no])
AM_CONDITIONAL(MYSQL, test "x$enablemysql" = "xyes")
here is the trouble spot:
Code:
if MYSQL
AC_CHECK_HEADER(mysql/mysql.h, , AC_MSG_ERROR(unable to find mysql header))
fi
this of course doesn't work. Any ideas?