$NetBSD$

--- aclocal.m4.orig	Fri Jul 19 15:18:51 2002
+++ aclocal.m4	Sat Sep 14 18:28:40 2002
@@ -139,6 +139,7 @@
   fi
 
   VORBISFILE_LIBS="$VORBIS_LIBS -lvorbisfile"
+  IVORBISFILE_LIBS="$VORBIS_LIBS -lvorbisidec"
   VORBISENC_LIBS="$VORBIS_LIBS -lvorbisenc"
   VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
 
@@ -194,7 +195,7 @@
        LIBS="$LIBS $VORBIS_LIBS $OGG_LIBS"
        AC_TRY_LINK([
 #include <stdio.h>
-#include <vorbis/codec.h>
+#include <tremor/ivorbiscodec.h>
 ],     [ return 0; ],
        [ echo "*** The test program compiled, but did not run. This usually means"
        echo "*** that the run-time linker is not finding Vorbis or finding the wrong"
@@ -214,12 +215,14 @@
      VORBIS_CFLAGS=""
      VORBIS_LIBS=""
      VORBISFILE_LIBS=""
+     IVORBISFILE_LIBS=""
      VORBISENC_LIBS=""
      ifelse([$2], , :, [$2])
   fi
   AC_SUBST(VORBIS_CFLAGS)
   AC_SUBST(VORBIS_LIBS)
   AC_SUBST(VORBISFILE_LIBS)
+  AC_SUBST(IVORBISFILE_LIBS)
   AC_SUBST(VORBISENC_LIBS)
   rm -f conf.vorbistest
 ])
