changeset 23749:f7b424ecf3f9

Add check for mkstemp Fixes compilation afrer ffmpeg commit r9596
author rtogni
date Wed, 11 Jul 2007 19:47:20 +0000
parents fb2a176224ac
children a9bf0730f6b2
files configure
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Jul 11 18:08:01 2007 +0000
+++ b/configure	Wed Jul 11 19:47:20 2007 +0000
@@ -2702,6 +2702,21 @@
 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 @@
 /* int_fastXY_t emulation */
 $_def_fast_inttypes
 
+/* mkstemp support */
+$_def_mkstemp
+
 /* nanosleep support */
 $_def_nanosleep