Navigation Menu

Skip to content

Commit

Permalink
Don't use -r option for sed
Browse files Browse the repository at this point in the history
Because BSD sed doesn't have -r option. Mac OS X ships BSD sed.
  • Loading branch information
kou committed Feb 28, 2013
1 parent b0d2656 commit dd5c06a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -168,7 +168,7 @@ AC_DEFUN([CONFIG_OPTION_MYSQL],[
MYSQL_CFLAGS="$MYSQL_CFLAGS $($ac_mysql_config --cflags)"
MYSQL_INCLUDES="$MYSQL_INCLUDES $($ac_mysql_config --include)"
MYSQL_VERSION="$($ac_mysql_config --version)"
MYSQL_MAJOR_MINOR_VERSION=`echo $MYSQL_VERSION | sed -r 's/([0-9]+)\.([0-9]+)\.([0-9]+)$/\1.\2/'`
MYSQL_MAJOR_MINOR_VERSION=`echo $MYSQL_VERSION | sed -e 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)$/\1.\2/'`
case "$MYSQL_MAJOR_MINOR_VERSION" in
5.6*)
USE_LIBMYSQLSERVICES="yes"
Expand Down

0 comments on commit dd5c06a

Please sign in to comment.