Created attachment 3109 configure.in.in patch I have found that when building xfce4-session-4.7.0 with consolekit enabled and policykit disabled, the configure script results in consolekit disabled and policykit enabled. After poking around in the configure.in, I found 2 problems: 1) There's a typo in the policykit test ("x$ac_cv_enable_polkit" = !"xyes" should be "x$ac_cv_enable_polkit" != "xyes"). 2) The AC_ARG_ENABLE macros and following tests use a custom variable name, which is undefined when the configure flag is present.
Thanks a lot for your patch, I just pushed it to git master.