summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-26 03:16:48 +0000
committeral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-12-26 03:16:48 +0000
commitfa2d1c9a69ced48a070320857df2298b795ae0c4 (patch)
tree611d3d52b025fed8ac05a6c9c311931637e594d0 /configure
parent74f1ad8a0ab3bf05805a2f83ca271c29a33c45cc (diff)
downloadmpv-fa2d1c9a69ced48a070320857df2298b795ae0c4.tar.bz2
mpv-fa2d1c9a69ced48a070320857df2298b795ae0c4.tar.xz
- 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17246 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 21 insertions, 0 deletions
diff --git a/configure b/configure
index bef47f069a..5e1116254e 100755
--- a/configure
+++ b/configure
@@ -3304,6 +3304,21 @@ fi
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 @@ $_def_gettimeofday
/* 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