[vorbis-dev] Patches for NetBSD

Christian Weisgerber naddy at mips.inka.de
Sun Mar 18 16:39:12 PST 2001



Jeremy C. Reed <vorbis-dev at xiph.org> wrote:

> > --- ../vorbis-tools-1.0beta4.orig/configure	Sun Feb 25 21:51:05 2001
> > +++ configure	Thu Mar 15 09:52:40 2001
> > -  AO_LIBS="$AO_LIBS -lao -ldl"
> > +  AO_LIBS="$AO_LIBS -lao -lossaudio"
> 
> autoconf needs to detect if it is a NetBSD (or OpenBSD?)  system, because
> they don't use libdl (libdl is built-in).

Here's a workaround.  Tested on OpenBSD/powerpc (needs -ldl) and
sparc (no lib).

--- vorbis-tools/aclocal.m4.orig	Mon Feb 26 06:51:03 2001
+++ vorbis-tools/aclocal.m4	Sat Mar 17 17:06:03 2001
@@ -222,7 +222,7 @@ AC_ARG_ENABLE(aotest, [  --disable-aotes
     AO_LIBS="-L$ao_prefix/lib"
   fi
 
-  AO_LIBS="$AO_LIBS -lao -ldl"
+  AO_LIBS="$AO_LIBS -lao"
 
   AC_MSG_CHECKING(for ao)
   no_ao=""
--- vorbis-tools/configure.in.orig	Mon Feb 26 06:51:00 2001
+++ vorbis-tools/configure.in	Sun Mar 18 23:21:51 2001
@@ -56,6 +56,7 @@ dnl ------------------------------------
 dnl Check for libraries
 dnl --------------------------------------------------
 
+AC_SEARCH_LIBS(dlopen, dl)
 AM_PATH_OGG(,AC_MSG_ERROR(Ogg needed!))
 AM_PATH_VORBIS(,AC_MSG_ERROR(Vorbis needed!))
 AM_PATH_AO(,AC_MSG_ERROR(libao needed!))

-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis-dev mailing list