[Mplayer-cvslog] CVS: main configure,1.596,1.597

Richard Felker CVS rfelker at mplayerhq.hu
Tue Nov 5 08:35:15 CET 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv8214

Modified Files:
	configure 
Log Message:
check for lrintf to avoid trouble compiling lavc!


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.596
retrieving revision 1.597
diff -u -r1.596 -r1.597
--- configure	2 Nov 2002 16:55:23 -0000	1.596
+++ configure	5 Nov 2002 07:34:55 -0000	1.597
@@ -1575,6 +1575,21 @@
 echores "$_posix4"
 
 
+echocheck "lrintf"
+cat > $TMPC << EOF
+#include <math.h>
+int main(void) { (void) lrintf(0.0); return 0; }
+EOF
+_lrintf=no
+cc_check -lm && _lrintf=yes
+if test "$_lrintf" = yes ; then
+  _def_lrintf="#define HAVE_LRINTF 1"
+else
+  _def_lrintf="#undef HAVE_LRINTF"
+fi
+echores "$_lrintf"
+
+
 echocheck "nanosleep"
 # also check for nanosleep
 cat > $TMPC << EOF
@@ -4862,6 +4877,9 @@
 **       See ./configure --help for details.
 **
 *---------------------------------------------------------------------------*/
+
+/* C99 lrintf function available */
+$_def_lrintf
 
 /* nanosleep support */
 $_def_nanosleep




More information about the MPlayer-cvslog mailing list