# HG changeset patch # User jkeil # Date 1005764559 0 # Node ID 8927ef5c4870f017b59407770b1e814500a6a6d9 # Parent 26ebb636f8933be87b84ec76f27c4f3ebb40794a Add a test for 'vsscanf()' (it's missing on solaris / non iso-c99 systems) diff -r 26ebb636f893 -r 8927ef5c4870 configure --- a/configure Wed Nov 14 17:48:38 2001 +0000 +++ b/configure Wed Nov 14 19:02:39 2001 +0000 @@ -1254,6 +1254,13 @@ _sys_soundcard_h=no cc_check && _sys_soundcard_h=yes +# check for vsscanf +cat > $TMPC << EOF +int main( void ) { vsscanf(); return 0; } +EOF +_vsscanf=no +cc_check && _vsscanf=yes + # --- # try to detect type of audio supported on this machine @@ -2271,6 +2278,12 @@ _zlib='' fi +if test "$_vsscanf" = yes ; then + _have_vsscanf='#define HAVE_VSSCANF 1' +else + _have_vsscanf='#undef HAVE_VSSCANF' +fi + # Checking for CFLAGS if test "$_profile" || test "$_debug" ; then CFLAGS="-W -Wall -O2 $_march $_mcpu $_debug $_profile" @@ -2737,6 +2750,9 @@ /* Define this if you have zlib */ $_have_zlib +/* Define this if your system has vsscanf */ +$_have_vsscanf + /* LIRC (remote control, see www.lirc.org) support: */ $_lircdefs