1 Adjust librt checks for glibc 2.17+:
2 Since glibc 2.17 clock interface is in libc, but timer interface remains in librt;
4 --- xen-4.2.1/tools/qemu-xen-traditional/configure.orig 2013-01-12 20:42:53.970053672 +0100
5 +++ xen-4.2.1/tools/qemu-xen-traditional/configure 2013-01-12 21:44:40.249976425 +0100
10 -int main(void) { clockid_t id; return clock_gettime(id, NULL); }
11 +int main(void) { clockid_t id; timer_t tid; (void)timer_gettime(tid, NULL); return clock_gettime(id, NULL); }
15 --- xen-4.2.1/tools/qemu-xen/configure.orig 2013-01-12 20:42:53.986720338 +0100
16 +++ xen-4.2.1/tools/qemu-xen/configure 2013-01-12 21:44:39.856643097 +0100
21 -int main(void) { clockid_t id; return clock_gettime(id, NULL); }
22 +int main(void) { clockid_t id; timer_t tid; (void)timer_gettime(tid, NULL); return clock_gettime(id, NULL); }
25 if compile_prog "" "" ; then