summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-29 21:24:36 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-29 21:24:36 +0000
commitde4701d8bba611b0eacfde9cd75a935665a6528d (patch)
tree3a60f4d5b7a58e98c14e8bf9fd78897e9626e22e /configure
parentd40f8f30c206e8fc75dd9badb1f3cadd8dd21e48 (diff)
downloadmpv-de4701d8bba611b0eacfde9cd75a935665a6528d.tar.bz2
mpv-de4701d8bba611b0eacfde9cd75a935665a6528d.tar.xz
Add a configure test for the strsep function (it's missing on solaris)
Provide an implementation of strsep in libosdep.a, if it's missing in the system's libc library. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5394 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure b/configure
index afeaf420f1..fa12bf13ff 100755
--- a/configure
+++ b/configure
@@ -1573,6 +1573,21 @@ echocheck "linux devfs"
echores "$_linux_devfs"
+echocheck "strsep()"
+cat > $TMPC << EOF
+#include <string.h>
+int main (void) { char *s = "Hello, world!"; (void) strsep(&s, ","); return 0; }
+EOF
+_strsep=no
+cc_check && _strsep=yes
+if test "$_strsep" = yes ; then
+ _def_strsep='#define HAVE_STRSEP 1'
+else
+ _def_strsep='#undef HAVE_STRSEP'
+fi
+echores "$_strsep"
+
+
echocheck "vsscanf()"
cat > $TMPC << EOF
#include <stdarg.h>
@@ -3484,6 +3499,9 @@ $_def_zlib
/* Define this if you have shm support */
$_def_shm
+/* Define this if your system has strsep */
+$_def_strsep
+
/* Define this if your system has vsscanf */
$_def_vsscanf