Hi again On 14/08/2014 14:48, Sergei Golubchik wrote:
Yes, you can compile without XtraDB. I think -DWITHOUT_XTRADB=1 will do.
I don't really know why xtradb's CMakeLists.txt uses CHECK_C_SOURCE_RUNS instead of CHECK_C_SOURCE_COMPILES. It was like this since 2009, when storage/innodb_plugin/plug.in got this check (AC_TRY_RUN back then) for the first time.
Unfortunately it seems that even if I set -DWITHOUT_XTRADB=1 the test is still run: $ cmake -DWITHOUT_XTRADB=1 .. [...] CMake Error at storage/xtradb/CMakeLists.txt:435 (MESSAGE): Percona XtraDB is not supported on this platform -- Configuring incomplete, errors occurred! [...] Is there an easy workaround? It seems to me that CONFIGURE_PLUGINS (defined in cmake/plugin.cmake) will try to configure everything in storage/*. Maybe this should be patched? Or maybe storage/xtradb/CMakeList.txt should be modified to exit silently if WITHOUT_XTRADB if set. For example the attached "quick and dirty" patch seems to do the trick for me. Regards, -- Sylvain Raybaud www.green-communications.fr