diff configure.in @ 3823:c562b1a12f82 SDL-ryan-multiple-audio-device

Look for NAS libraries in normal paths (where Ubuntu installs them).
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 07 Oct 2006 06:18:15 +0000
parents da2ea0694d11
children 76c5a414b996
line wrap: on
line diff
--- a/configure.in	Sat Oct 07 06:17:54 2006 +0000
+++ b/configure.in	Sat Oct 07 06:18:15 2006 +0000
@@ -513,7 +513,14 @@
     if test x$enable_audio = xyes -a x$enable_nas = xyes; then
         AC_MSG_CHECKING(for NAS audio support)
         have_nas=no
-        if test -r /usr/X11R6/include/audio/audiolib.h; then
+        AC_CHECK_HEADER(audio/audiolib.h, have_nas_hdr=yes)
+        AC_CHECK_LIB(audio, AuOpenServer, have_nas_lib=yes)
+
+        if test x$have_nas_hdr = xyes -a x$have_nas_lib = xyes; then
+            have_nas=yes
+            NAS_LIBS="-laudio"
+
+        elif test -r /usr/X11R6/include/audio/audiolib.h; then
             have_nas=yes
             NAS_CFLAGS="-I/usr/X11R6/include/"
             NAS_LIBS="-L/usr/X11R6/lib -laudio -lXt"