Navigation Menu

Skip to content

Commit

Permalink
mariadb10.0.5: follow regular expression engine directory name change
Browse files Browse the repository at this point in the history
Regular expresssion engine directory is changed since MariaDB 10.0.5:

regex/ ->
pcre/

fixes #2066

Reported by Kazuhiko Shiozaki. Thanks!!!
  • Loading branch information
kou committed Nov 13, 2013
1 parent f4335f3 commit 2f10768
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Expand Up @@ -103,11 +103,17 @@ else()
endif()
find_path(MYSQL_CONFIG "${MYSQL_CONFIG}")

if(EXISTS "${MYSQL_SOURCE_DIR}/pcre")
set(MYSQL_REGEX_INCLUDE_DIR "${MYSQL_SOURCE_DIR}/pcre")
else()
set(MYSQL_REGEX_INCLUDE_DIR "${MYSQL_SOURCE_DIR}/regex")
endif()

set(MYSQL_INCLUDE_DIRS
"${MYSQL_BUILD_DIR}/include"
"${MYSQL_SOURCE_DIR}/sql"
"${MYSQL_SOURCE_DIR}/include"
"${MYSQL_SOURCE_DIR}/regex"
"${MYSQL_REGEX_INCLUDE_DIR}"
"${MYSQL_SOURCE_DIR}"
CACHE INTERNAL "MySQL include directories")

Expand Down
7 changes: 6 additions & 1 deletion configure.ac
Expand Up @@ -166,7 +166,12 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[
MYSQL_INCLUDES="$MYSQL_INCLUDES -I$ac_mysql_build_dir/include"
MYSQL_INCLUDES="$MYSQL_INCLUDES -I$ac_mysql_source_dir/sql"
MYSQL_INCLUDES="$MYSQL_INCLUDES -I$ac_mysql_source_dir/include"
MYSQL_INCLUDES="$MYSQL_INCLUDES -I$ac_mysql_source_dir/regex"
if test -d "$ac_mysql_source_dir/pcre"; then
mysql_regex_include_dir="$ac_mysql_source_dir/pcre"
else
mysql_regex_include_dir="$ac_mysql_source_dir/regex"
fi
MYSQL_INCLUDES="$MYSQL_INCLUDES -I$mysql_regex_include_dir"
MYSQL_INCLUDES="$MYSQL_INCLUDES -I$ac_mysql_source_dir"
MYSQL_INCLUDES="$MYSQL_INCLUDES $($ac_mysql_config --include)"
AC_SUBST(MYSQL_INCLUDES)
Expand Down

0 comments on commit 2f10768

Please sign in to comment.