http://bugs.winehq.org/show_bug.cgi?id=6463
------- Additional Comments From wine.dev@web.de 2006-18-10 23:25 ------- I ran into this linking-problem after I reinstalled my system and it ended in Patches, that display additional Packaged with "./configure --verbose".
"-lSM" is added to "configure" by m4/autoconf, when checking for "libICE" and the check for "libICE" is introducd by "AC_PATH_XTRA" in our "configure.ac".
I spotted that on #winehackers but had no time to add a bug-report to autoconf or m4 yet.
We can add a check for "libSM" to work-around this autoconf/m4 - bug, but IMHO, autoconf is the correct place for the fix.