[MPlayer-cvslog] r23769 - trunk/configure

rtogni subversion at mplayerhq.hu
Wed Jul 11 21:47:20 CEST 2007


Author: rtogni
Date: Wed Jul 11 21:47:20 2007
New Revision: 23769

Log:
Add check for mkstemp
Fixes compilation afrer ffmpeg commit r9596


Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Wed Jul 11 21:47:20 2007
@@ -2702,6 +2702,21 @@ fi
 echores "$_lrintf"
 
 
+echocheck "mkstemp"
+cat > $TMPC << EOF
+#include <stdlib.h>
+int main(void) { char a;  mkstemp(&a); return 0; }
+EOF
+_mkstemp=no
+cc_check && _mkstemp=yes
+if test "$_mkstemp" = yes ; then
+  _def_mkstemp='#define HAVE_MKSTEMP 1'
+else
+  _def_mkstemp='#undef HAVE_MKSTEMP'
+fi
+echores "$_mkstemp"
+
+
 echocheck "nanosleep"
 # also check for nanosleep
 cat > $TMPC << EOF
@@ -8078,6 +8093,9 @@ $_def_lrintf
 /* int_fastXY_t emulation */
 $_def_fast_inttypes
 
+/* mkstemp support */
+$_def_mkstemp
+
 /* nanosleep support */
 $_def_nanosleep
 



More information about the MPlayer-cvslog mailing list