--- sourceforge.net/trunk/rdesktop/configure 2003/06/06 10:39:41 403 +++ sourceforge.net/trunk/rdesktop/configure 2003/10/04 12:24:56 477 @@ -137,7 +137,7 @@ echo "(searched for include/X11/Xlib.h in: $xdirs)" # additional helpful information for Linux users - if [ -f /etc/redhat_release ]; then + if [ -f /etc/redhat-release ]; then echo You probably need to install the XFree86-devel package elif [ -f /etc/debian_version ]; then echo You probably need to install the xlibs-dev package @@ -235,6 +235,24 @@ fi fi +# Check for OSS sound support + +if [ -f /usr/include/sys/soundcard.h ]; then + echo Sound support enabled: Open Sound System + echo + echo "SOUNDOBJ = rdpsnd.o rdpsnd_oss.o" >>Makeconf + cflags="$cflags -DWITH_RDPSND" +elif [ -f /usr/include/sys/audioio.h ]; then + echo Sound support enabled: Sun + echo + echo "SOUNDOBJ = rdpsnd.o rdpsnd_sun.o" >>Makeconf + cflags="$cflags -DWITH_RDPSND" +else + echo "WARNING: sound support disabled (no /usr/include/sys/soundcard.h or /usr/include/sys/audio.h)" + echo "Currently supported systems are Open Sound System and Sun" + echo +fi + # Platform-specific options