summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authortim@cane.mysql.fi <>2001-01-19 02:46:13 +0200
committertim@cane.mysql.fi <>2001-01-19 02:46:13 +0200
commit08d36171a9e535fac9d33e7cbb9a2770a72bfd0b (patch)
tree05ccbd701e51555fe5537ef3f344c7862d54f5f9 /configure.in
parent1dd577041b6801f9426acb7d740ef5494ac1c071 (diff)
downloadmariadb-git-08d36171a9e535fac9d33e7cbb9a2770a72bfd0b.tar.gz
Add --with-server-suffix (MYSQL_SERVER_SUFFIX).
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 923a10211f5..fe81a5a39ea 100644
--- a/configure.in
+++ b/configure.in
@@ -389,6 +389,14 @@ then
AC_MSG_ERROR([MySQL requiers a ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual.])
fi
+AC_ARG_WITH(server-suffix,
+ [ --with-server-suffix Append value to the version string.],
+ # I heard that 'cut' isn't portable. Isn't there a better way?
+ [ MYSQL_SERVER_SUFFIX=`echo "$withval" | sed -e 's/^\(...................................\)..*$/\1/'` ],
+ [ MYSQL_SERVER_SUFFIX= ]
+ )
+AC_SUBST(MYSQL_SERVER_SUFFIX)
+
# Set flags if we wants to have MIT threads.
AC_ARG_WITH(mit-threads,
[ --with-mit-threads Always use included thread lib.],