[vorbis-dev] alloca + configure.in
Michael Pruett
michael at 68k.org
Thu Apr 11 18:54:49 PDT 2002
The following patch against current CVS uses autoconf to detect how
to define alloca (used in vorbis-tools/oggenc/audio.c). The inclusion
of <alloca.h> is done based on the definition of HAVE_ALLOCA_H rather
than __sun. This change is necessary for compilation on IRIX.
Thanks,
Michael
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/configure.in,v
retrieving revision 1.36
diff -u -r1.36 configure.in
--- configure.in 2002/03/18 03:37:40 1.36
+++ configure.in 2002/04/12 01:52:11
@@ -102,6 +102,7 @@
dnl Check for library functions
dnl --------------------------------------------------
+AC_FUNC_ALLOCA
AM_ICONV
AC_CHECK_FUNCS(atexit on_exit)
AM_LANGINFO_CODESET
Index: oggenc/platform.h
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/platform.h,v
retrieving revision 1.7
diff -u -r1.7 platform.h
--- oggenc/platform.h 2001/09/15 15:11:03 1.7
+++ oggenc/platform.h 2002/04/12 01:52:11
@@ -1,9 +1,11 @@
#ifndef __PLATFORM_H
#define __PLATFORM_H
+#include <config.h>
+
#include <stdio.h>
-#ifdef __sun
+#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
--- >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