Mercurial > mplayer.hg
changeset 37125:1236e38abf90
Add clock_gettime() detection in configure.
author | iive |
---|---|
date | Tue, 10 Jun 2014 13:37:20 +0000 |
parents | a36b0cb6090a |
children | 6db1f7a10803 |
files | configure |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Fri Jun 06 15:30:03 2014 +0000 +++ b/configure Tue Jun 10 13:37:20 2014 +0000 @@ -4174,6 +4174,14 @@ echores "$gettimeofday" +echocheck "clock_gettime()" +clock_gettime=no +def_clock_gettime='#undef HAVE_CLOCK_GETTIME' +statement_check_broken stddef.h time.h 'struct timespec tp; clock_gettime(CLOCK_MONOTONIC, &tp)' -lrt && + { clock_gettime=yes ; def_clock_gettime='#define HAVE_CLOCK_GETTIME 1' ; extra_ldflags="$extra_ldflags -lrt" ; } +echores "$clock_gettime" + + echocheck "glob()" # glob_win disables a Windows-specific glob() replacement. glob=yes @@ -8835,6 +8843,7 @@ /* system functions */ $def_gethostbyname2 $def_gettimeofday +$def_clock_gettime $def_glob $def_langinfo $def_map_memalign