comparison configure @ 5393:cbf0fed4d211

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.
author jkeil
date Fri, 29 Mar 2002 21:24:36 +0000
parents 8a01cde9cf39
children e7034890adc5
comparison
equal deleted inserted replaced
5392:d7c586ebbacf 5393:cbf0fed4d211
1571 # XXX: FIXME, add runtime checking 1571 # XXX: FIXME, add runtime checking
1572 echocheck "linux devfs" 1572 echocheck "linux devfs"
1573 echores "$_linux_devfs" 1573 echores "$_linux_devfs"
1574 1574
1575 1575
1576 echocheck "strsep()"
1577 cat > $TMPC << EOF
1578 #include <string.h>
1579 int main (void) { char *s = "Hello, world!"; (void) strsep(&s, ","); return 0; }
1580 EOF
1581 _strsep=no
1582 cc_check && _strsep=yes
1583 if test "$_strsep" = yes ; then
1584 _def_strsep='#define HAVE_STRSEP 1'
1585 else
1586 _def_strsep='#undef HAVE_STRSEP'
1587 fi
1588 echores "$_strsep"
1589
1590
1576 echocheck "vsscanf()" 1591 echocheck "vsscanf()"
1577 cat > $TMPC << EOF 1592 cat > $TMPC << EOF
1578 #include <stdarg.h> 1593 #include <stdarg.h>
1579 int main(void) { vsscanf(); return 0; } 1594 int main(void) { vsscanf(); return 0; }
1580 EOF 1595 EOF
3482 $_def_zlib 3497 $_def_zlib
3483 3498
3484 /* Define this if you have shm support */ 3499 /* Define this if you have shm support */
3485 $_def_shm 3500 $_def_shm
3486 3501
3502 /* Define this if your system has strsep */
3503 $_def_strsep
3504
3487 /* Define this if your system has vsscanf */ 3505 /* Define this if your system has vsscanf */
3488 $_def_vsscanf 3506 $_def_vsscanf
3489 3507
3490 /* LIRC (remote control, see www.lirc.org) support: */ 3508 /* LIRC (remote control, see www.lirc.org) support: */
3491 $_def_lirc 3509 $_def_lirc