Whoa! You all are making this too complicate. Here is some advice from a linux audio freak.
- Compiling your own audio libs on Linux is actually very easy and surprisingly simple. But you have to know a few basics to avoid some pitfalls. First, compiling software on Linux is essentially divided in two camps: The first I call the "Traditional Linux/Slackware" camp, and the other is the Debian/Ubuntu camp. Part of what make debian and it's related distributions different is that debian has a different opinion about how the file system in Linux should be layed out. When this originally came about back in around '96, it was a deliberate deliverance from "mainstream" Linux. The upshot of this is that if you compile a package on Debian/Ubuntu that is not specifically debianized, you run the risk of have the files being put in all the wrong places/config not finding installed libraries it needs etc... Thus you will have to do some plumbing with the build system.
Most software released in source form for linux tends to compile successfully with none or very little modification. This is especially true for the slackware families (Zenwalk, Arch etc...) for two reasons. First slack and it's relatives are unpretentious in that they tend to go "with the flow" of the community of upstream developers. Second is the slackbuild system. A slackbuild is a script that does all the work of turning a source code package into an installable software package optimized for your specific system. It's a system that works remarkably well.
For example, in our situation lets check out the Zenwalk slackbuild script for aotuv beta 5.5. You can find it at
http://thenktor.dyndns.org/packages/libvorbis/To compile aotuv beta 5.5 and install it on your system you only need the file build-libvorbis.sh from the above URL. Download the file and put it in a directory someware. Then do:
chmod +x build-libvorbis.sh
to make the script exacutable. Then type:
./build-libvorbis.sh
The zenbuild script will then download the source code for aotuv beta 5.5, unzip it into a tempory directory and then cofigure and compile the code. After compiling the code, it will then create an installable packable of the finished code. In this case it creates the file libvorbis-aotuv.b5.5-i486-52.2.tgz which is a "Zenpackage" file, which is just Zenwalk's version of an rpm or deb file. To install it just do a:
installpkg libvorbis-aotuv.b5.5-i486-52.2.tgz
That's it. This zenbuild script will probably work on most non-debian linux distributions. There are slackbuild scripts for just about every piece of linux software ever released. Just type slackbuild into google...
The other advantage is you tend to avoid the mistakes/unnecessary configuration that has been posted on this forum. For example, the following is a far better/correct way to compile libvorbis than has been mentioned. I've included extensive optimizations for my own personal system (an old pentium 4 hyperthreader). I did this because I have no clue where some of the posters came up with their CFLAGS lines. Please not that CFLAGS is not required at all in this case. However, properly used it will build a slightly faster binary.
----------------------------------------------
for libvorbis-aotuv:
export CFLAGS="-O3 -march=prescott"
export CXXFLAGS="-O3 -march=prescott"
chmod +x autogen.sh configure
./autogen.sh
./configure --prefix=/usr
make
make install
----------------------------------------------
You get the idea.....
QUOTE(xmixahlx @ May 23 2008, 22:25)

i just updated libvorbis-aotuv & oggenc-aotuv again for rarewares/debian so i thought i'd post the process.
it's a little more in-depth for the debian packages (i.e. patching, etc.), but you could replicate this for your own install by the following:
note: you could also change the prefix to /usr/local and use $(prefix)
for libvorbis-aotuv:
CFLAGS="-O2 -fno-strict-aliasing" ./configure \
--prefix=/usr \
--libdir=/usr/lib/libvorbis-aotuv \
--datadir=/usr/share/libvorbis-aotuv \
--includedir=/usr/include/vorbis-aotuv \
--enable-shared
(make install...)
for oggenc-aotuv (i.e. vorbis-tools):
CFLAGS="-O2" ./configure \
--prefix=/usr \
--with-vorbis-libraries=/usr/lib/libvorbis-aotuv \
--with-vorbis-includes=/usr/include/vorbis-aotuv \
--program-suffix=-aotuv \
--enable-shared \
--disable-ogg123 \
--disable-oggdec \
--disable-ogginfo \
--disable-vcut \
--disable-vorbiscomments
(make install...)
this will add libraries and a program (/usr/bin/oggenc-aotuv) selectable by any program that offers that functionality like k3b or other rippers.
later