From xemacs-m  Sat Mar 22 04:56:34 1997
Received: from bittersweet.inetarena.com (karlheg@bittersweet.inetarena.com [206.129.216.38])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id EAA27858
	for <xemacs-beta@xemacs.org>; Sat, 22 Mar 1997 04:56:30 -0600 (CST)
Received: (from karlheg@localhost)
	by bittersweet.inetarena.com (8.8.5/8.8.5) id CAA04639;
	Sat, 22 Mar 1997 02:56:19 -0800
Date: Sat, 22 Mar 1997 02:56:19 -0800
Message-Id: <199703221056.CAA04639@bittersweet.inetarena.com>
From: "Karl M. Hegbloom" <karlheg@inetarena.com>
To: <xemacs-beta@xemacs.org>
Subject: Configure patch for Linux sound=native
X-Mailer: VM 6.21 under 19.15 XEmacs Lucid (beta103)
Comments: Hyperbole mail buttons accepted, v04.023.
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: multipart/mixed;
 boundary="Multipart_Sat_Mar_22_02:56:17_1997-1"
Content-Transfer-Encoding: 7bit

--Multipart_Sat_Mar_22_02:56:17_1997-1
Content-Type: text/plain; charset=US-ASCII


 I added a test for 'sound' in "/proc/devices" under Linux.  It will
auto-detect native sound support now.  I cannot get 'autoconf' to
build a new configure file, so I editted configure directly...  Here's
two patches, one for each of configure and configure.in.  Take your
pick.


--Multipart_Sat_Mar_22_02:56:17_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="configure-linux-sound.patch"
Content-Transfer-Encoding: 7bit

*** configure~	Fri Mar 21 23:57:09 1997
--- configure	Sat Mar 22 02:40:15 1997
***************
*** 6600,6611 ****
--- 6600,6616 ----
     :; with_sound="native"
  else
     :; 
  fi
   
      ;;
+     *-linux* )
+       if $(cat /proc/devices | grep -q 'sound') ; then
+         with_sound="native"
+       fi
+     ;;
      esac
    fi
  fi
  
  #### If the nas library doesn't contain the error jump point, then
  #### we force safer behaviour.


--Multipart_Sat_Mar_22_02:56:17_1997-1
Content-Type: application/octet-stream; type=patch
Content-Disposition: attachment; filename="configure.in-linux-sound.patch"
Content-Transfer-Encoding: 7bit

*** configure.in~	Fri Mar 21 23:57:10 1997
--- configure.in	Sat Mar 22 02:36:36 1997
***************
*** 3890,3901 ****
--- 3890,3905 ----
        *-sgi-* )
        ] AC_HAVE_LIBRARY(-laudio, with_sound="native") [
      ;;
      hppa*-hp-hpux* )
        ] AC_HAVE_LIBRARY(-lAlib, with_sound="native") [
      ;;
+     *-linux* )
+       if $(cat /proc/devices | grep -q 'sound') ; then
+         with_sound="native"
+       fi
+     ;;
      esac
    fi
  fi
  
  #### If the nas library doesn't contain the error jump point, then
  #### we force safer behaviour.


--Multipart_Sat_Mar_22_02:56:17_1997-1
Content-Type: text/plain; charset=US-ASCII

Karl M. Hegbloom <karlheg@inetarena.com>
http://www.inetarena.com/~karlheg
Portland, OR  USA
Debian GNU 1.2  Linux 2.0.29t


--Multipart_Sat_Mar_22_02:56:17_1997-1--

