[xiph-cvs] cvs commit: vorbis-tools acinclude.m4
Brendan
brendan at xiph.org
Sat Jan 18 14:33:08 PST 2003
brendan 03/01/18 17:33:08
Modified: . acinclude.m4
Log:
Try to see if -lm is necessary (closes #231)
Revision Changes Path
1.21 +7 -1 vorbis-tools/acinclude.m4
Index: acinclude.m4
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/acinclude.m4,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- acinclude.m4 12 Jul 2002 16:24:54 -0000 1.20
+++ acinclude.m4 18 Jan 2003 22:33:08 -0000 1.21
@@ -128,7 +128,7 @@
VORBISFILE_LIBS="$VORBIS_LIBS -lvorbisfile"
VORBISENC_LIBS="$VORBIS_LIBS -lvorbisenc"
- VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm"
+ VORBIS_LIBS="$VORBIS_LIBS -lvorbis"
if test "x$vorbis_includes" != "x" ; then
VORBIS_CFLAGS="-I$vorbis_includes"
@@ -138,6 +138,12 @@
VORBIS_CFLAGS="-I$prefix/include"
fi
+ xiph_saved_LIBS="$LIBS"
+ LIBS=""
+ AC_SEARCH_LIBS(cos, m, [VORBIS_LIBS="$VORBIS_LIBS $LIBS"], [
+ AC_MSG_WARN([cos() not found in math library, vorbis installation may not work])
+ ])
+ LIBS="$xiph_saved_LIBS"
AC_MSG_CHECKING(for Vorbis)
no_vorbis=""
<p><p>--- >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 'cvs-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 commits
mailing list