Index: gavl-1.4.0/acinclude.m4 =================================================================== --- gavl-1.4.0.orig/acinclude.m4 +++ gavl-1.4.0/acinclude.m4 @@ -46,7 +46,9 @@ AC_DEFUN([AC_C99_FUNC_LRINT], ac_cv_c99_lrint, [ lrint_save_CFLAGS=$CFLAGS -CFLAGS="-O2 -lm" +lrint_save_LIBS=$LIBS +CFLAGS="$CFLAGS -O2" +LIBS="$LIBS -lm" AC_TRY_LINK([ #define _ISOC9X_SOURCE 1 #define _ISOC99_SOURCE 1 @@ -57,6 +59,7 @@ AC_TRY_LINK([ ], if (!lrint(3.14159)) lrint(2.7183);, ac_cv_c99_lrint=yes, ac_cv_c99_lrint=no) CFLAGS=$lrint_save_CFLAGS +LIBS=$lrint_save_LIBS ]) Index: gavl-1.4.0/configure.ac =================================================================== --- gavl-1.4.0.orig/configure.ac +++ gavl-1.4.0/configure.ac @@ -129,6 +129,7 @@ fi dnl dnl Check for library functions dnl +AC_CHECK_FUNC(m,sinf) AC_CHECK_FUNCS([memalign]) AC_CHECK_FUNCS([sched_setaffinity]) Index: gavl-1.4.0/src/Makefile.am =================================================================== --- gavl-1.4.0.orig/src/Makefile.am +++ gavl-1.4.0/src/Makefile.am @@ -30,7 +30,7 @@ benchmark_LDADD = ../gavl/libgavl.la @RT volume_test_SOURCES = volume_test.c -volume_test_LDADD = ../gavl/libgavl.la +volume_test_LDADD = ../gavl/libgavl.la -lm dump_frame_table_SOURCES = dump_frame_table.c dump_frame_table_LDADD = ../gavl/libgavl.la Index: gavl-1.4.0/src/Makefile.in =================================================================== --- gavl-1.4.0.orig/src/Makefile.in +++ gavl-1.4.0/src/Makefile.in @@ -282,7 +282,7 @@ pixelformat_penalty_LDADD = ../gavl/libg benchmark_SOURCES = benchmark.c benchmark_LDADD = ../gavl/libgavl.la @RT_LIBS@ volume_test_SOURCES = volume_test.c -volume_test_LDADD = ../gavl/libgavl.la +volume_test_LDADD = ../gavl/libgavl.la -lm dump_frame_table_SOURCES = dump_frame_table.c dump_frame_table_LDADD = ../gavl/libgavl.la colorspace_test_SOURCES = colorspace_test.c