Navigation Menu

Skip to content

Commit

Permalink
configure script recognizes mysql major version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Nov 4, 2010
1 parent 6009dee commit 6825868
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile.am
@@ -1,7 +1,6 @@
AUTOMAKE_OPTIONS = 1.9.7

AM_CPPFLAGS = $(MYSQL_INC) $(GROONGA_CFLAGS) $(MECAB_INCLUDES)
AM_INCLUDES = -l. -l..
AM_CPPFLAGS = $(MYSQL_INC) $(GROONGA_CFLAGS) $(MECAB_INCLUDES) $(MYSQL51)
ACLOCAL_AMFLAGS = $$ACLOCAL_ARGS

noinst_HEADERS = mrnsys.h ha_mroonga.h
Expand Down
5 changes: 5 additions & 0 deletions configure.ac
Expand Up @@ -71,6 +71,11 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[
AC_MSG_ERROR([failed to run "$ac_mysql_config": $plugindir])
fi
MYSQL_INC="$MYSQL_INC $($ac_mysql_config --include)"
ac_mysql_major_version="`$ac_mysql_config --version | cut -b 1-3`"
if test "$ac_mysql_major_version" = "5.1"; then
MYSQL51="-DMYSQL51"
AC_SUBST(MYSQL51)
fi
AC_SUBST(plugindir)
])

Expand Down

0 comments on commit 6825868

Please sign in to comment.