[MPlayer-cvslog] CVS: main configure,1.1113,1.1114

Alexander Strasser beastd syncmail at mplayerhq.hu
Mon Dec 26 04:16:50 CET 2005


CVS change done by Alexander Strasser (beastd)

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv10532

Modified Files:
	configure 
Log Message:
- move our setenv() fallback implementation to osdep
- assert that the override param is nonzero (zero is not implemented)
- correct return value type to int

based on a patch by Diego
fixes bugzilla bug #342


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1113
retrieving revision 1.1114
diff -u -r1.1113 -r1.1114
--- configure	25 Dec 2005 14:00:04 -0000	1.1113
+++ configure	26 Dec 2005 03:16:47 -0000	1.1114
@@ -3304,6 +3304,21 @@
 echores "$_glob"
 
 
+echocheck "setenv()"
+cat > $TMPC << EOF
+#include <stdlib.h>
+int main (void){ setenv("","",0); return 0; }
+EOF
+_setenv=no
+cc_check && _setenv=yes
+if test "$_setenv" = yes ; then
+  _def_setenv='#define HAVE_SETENV 1'
+else
+  _def_setenv='#undef HAVE_SETENV'
+fi
+echores "$_setenv"
+
+
 echocheck "sys/sysinfo.h"
 cat > $TMPC << EOF
 #include <sys/sysinfo.h>
@@ -7480,6 +7495,12 @@
 /* Define this if your system has glob */
 $_def_glob
 
+/* Define this if your system has setenv */
+$_def_setenv
+#ifndef HAVE_SETENV
+int setenv(const char *name, const char *val, int overwrite);
+#endif
+
 /* Define this if your system has pthreads */
 $_def_pthreads
 




More information about the MPlayer-cvslog mailing list