From 4fd66d857b5e0c9cea39b48fde1b3c5e50ee687e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 12 Aug 2016 17:41:05 +0000 Subject: ... if I stop being an idiot --- configure | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/configure b/configure index ef81550..29688da 100755 --- a/configure +++ b/configure @@ -429,9 +429,14 @@ EOF echo "$socket_lib" > $sysdeps/socket.lib hasclock=true - clock_lib=`trylibs clockrt 'clock_gettime()' -lrt` || hasclock=false - echo "$clock_lib" > $sysdeps/sysclock.lib - echo "$clock_lib" > $sysdeps/tainnow.lib + sysclock_lib=`trylibs clockrt 'clock_gettime()' -lrt` || hasclock=false + if $clockrt ; then + tainnow_lib=$sysclock_lib + else + tainnow_lib= + fi + echo "$sysclock_lib" > $sysdeps/sysclock.lib + echo "$tainnow_lib" > $sysdeps/tainnow.lib if $hasclock ; then echo 'clockrt: yes' >> $sysdeps/sysdeps echo "#define ${package_macro_name}_HASCLOCKRT" >> $sysdeps/sysdeps.h -- cgit v1.2.3