1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

WL#1163 (to make spatial parts optional)

--without-geometry and --with-embedded-privilege-control switches
added to the configure


configure.in:
  --without-geometry and --with-embedded-privilege-control switches added
  to the configure
include/my_global.h:
  HAVE_SPATIAL should be in configure.h now
This commit is contained in:
unknown
2004-03-15 16:51:05 +04:00
parent 22657f672c
commit d367d8a5a1
2 changed files with 29 additions and 2 deletions

View File

@ -2130,6 +2130,31 @@ then
AC_DEFINE(HAVE_QUERY_CACHE)
fi
AC_ARG_WITH(geometry,
[ --without-geometry Do not build geometry-related parts.],
[with_geometry=$withval],
[with_geometry=yes]
)
if test "$with_geometry" = "yes"
then
AC_DEFINE(HAVE_SPATIAL)
AC_DEFINE(HAVE_RTREE_KEYS)
fi
AC_ARG_WITH(embedded_privilege_control,
[ --with-embedded-privilege-control
Build parts to check user's privileges.
Only affects embedded library.],
[with_embedded_privilege_control=$withval],
[with_embedded_privilege_control=no]
)
if test "$with_embedded_privilege_control" = "yes"
then
AC_DEFINE(HAVE_EMBEDDED_PRIVILEGE_CONTROL)
fi
AC_ARG_WITH(extra-tools,
[ --without-extra-tools Skip building utilites in the tools directory.],
[with_tools=$withval],

View File

@ -1169,6 +1169,8 @@ typedef union {
#define MYSQL_UNIVERSAL_CLIENT_CHARSET MYSQL_DEFAULT_CHARSET_NAME
#endif
#define HAVE_SPATIAL
#define HAVE_RTREE_KEYS
#if defined(EMBEDDED_LIBRARY) && !defined(HAVE_EMBEDDED_PRIVILEGE_CONTROL)
#define NO_EMBEDDED_ACCESS_CHECKS
#endif
#endif /* my_global_h */