I had some problems when compiling faac/faad on my machine (Macbook Pro, Leopard, Xcode 3.1). Could just be my luck, but here's what was wrong / the fixes incase it happened to someone else.<p>On faac, I had errors like<p><pre><code> ../libtool: line 792: X--tag=CC: command not found
../libtool: line 792: X--mode=compile: command not found"
</code></pre>
After googling around, turns out it was a problem with ltmain.sh - which ./bootstrap creates. It checks to see if the OS is Darwin, and then runs glibtoolize instead of libtoolize (Apple includes glibtoolize it seems, its in my /usr/bin). However glibtoolize isn't generating the correct file for some reason. Not sure why this is. I've got autoconf/automake/libtool installed from a past project so I used those instead of figuring out exactly what was wrong.<p>To get FAAC to compile, I ran "aclocal -I .; autoheader; libtoolize --automake; automake --add-missing; autoconf" manually instead. This one worked properly and was able to install.<p>FAAD was had more wrong then just glibtoolize generating a wrong file. It would generate a configure file, however it wasn't complete. The README here didn't help install for OS X, and the only INSTALL file i could find was for the xmms plugin. So I read the *nix README. Which said to run autoreconf -vif first. That brought up:<p><pre><code> /usr/local/share/automake-1.10/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL
/usr/local/share/automake-1.10/am/depend2.am: The usual way to define `am__fastdepCXX' is to add `AC_PROG_CXX'
/usr/local/share/automake-1.10/am/depend2.am: to `configure.in' and run `aclocal' and `autoconf' again.
</code></pre>
To fix this, open up configure.in and find the only mention of AC_PROG_CXX. Change that line from "dnl AC_PROG_CXX" to just "AC_PROG_CXX" Then rerun "aclocal -I .; autoheader; libtoolize --automake; automake --add-missing; autoconf" instead of relying on ./boostrap. Then it compiled correctly for me.<p>If anyone wants, I could just toss together a quick .pkg that would install faac 1.26 and faad 2.61. lame (3.98) and ffmpeg's (latest svn, 14469) installs were straightforward enough and didn't have issues so those shouldn't need a pkg. Though ffmpeg was missing a ton of libraries. Suppose thats what I get (along with fixing problems like the one above) for not using fink or macports.