X11 automagic dependencies

Michael kensington at astralcloak.net
Mon Apr 16 18:38:45 UTC 2012


Hi,

In kde-workspace, there are twelve optional X11 dependencies which are
automagic. I'd like to fix this by adding an option to disable at configure
time. Since macro_optional_find_package is of no use in this situation, is there
a better way to do this?

+OPTION(WITH_XSHM "X shared memory support" ON)
+OPTION(WITH_XTEST "X11 Testing Resource extension library" ON)
+
+if (NOT WITH_XSHM)
+       set(X11_XShm_FOUND FALSE)
+endif (NOT WITH_XSHM)
+if (NOT WITH_XTEST)
+       set(X11_XTest_FOUND FALSE)
+endif (NOT WITH_XTEST)
+
 # ...and so on 
 macro_bool_to_01(X11_XShm_FOUND HAVE_XSHM) # kwin, ksplash
 macro_bool_to_01(X11_XTest_FOUND HAVE_XTEST) # khotkeys, kxkb, kdm

Best regards,
Michael



More information about the Kde-buildsystem mailing list