The only reason kdebase looked for imake/xmkmf was for kdm's possible Imakefile build, which hasn't been used for years. Following is a patch committed to the kde 3.5 branch.
Created attachment 66118 [details, diff] kdm.patch
*** Bug 102613 has been marked as a duplicate of this bug. ***
Unfortunately imake is still used (the patch was reverted), we need to wait for another fix for this...
(In reply to comment #3) > Unfortunately imake is still used (the patch was reverted), we need to wait > for another fix for this... Actualy after I deleted the ofending lines, kdm compiled fine for me. I didn't see if the patch was like what I did, but in the bug I reported (the duplicate), I wrote what I removed.
Looking more at it, kdm compiles even with the patch, but then the entries related to X referred in the generated kdmrc configuration file are probably missing. It seems imake is used only to provide the #defines used to generate the default kdm configuration.
That's odd... Here's what I heard. 09:55 < JakubS> spyderous: that my 'fix' for imake in kdm is probably quite wrong - imake was used to find X binary dir, library dir etc. 09:56 < JakubS> but in case of particular distribution like gentoo those are fixed so you can just put it in Makefile.am and don't care anymore
So can we get this fixed please? This is quite an annoying bug. Applying the patch makes kdm compile and work for me.
Should be fixed in kdebase-3.4.3-r1/kdm-3.4.3-r1, with the patch I submitted at https://bugs.kde.org/show_bug.cgi?id=114466. Give it a try.