Revision 5169202b configure

b/configure
1376 1376

  
1377 1377
##########################################
1378 1378
# Do we need librt
1379
CLOCKLIBS=""
1380 1379
cat > $TMPC <<EOF
1381 1380
#include <signal.h>
1382 1381
#include <time.h>
1383 1382
int main(void) { clockid_t id; return clock_gettime(id, NULL); }
1384 1383
EOF
1385 1384

  
1386
rt=no
1387 1385
if $cc $ARCH_CFLAGS -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
1388
  :
1386
  CLOCKLIBS=""
1389 1387
elif $cc $ARCH_CFLAGS -o $TMPE $TMPC -lrt > /dev/null 2> /dev/null ; then
1390
  rt=yes
1391
fi
1392

  
1393
if test "$rt" = "yes" ; then
1394 1388
  CLOCKLIBS="-lrt"
1395 1389
fi
1396 1390

  

Also available in: Unified diff