Iman, when I run yaourt i give it an ignore architecture flag. "yaourt -AS packagename" That alone should not solve my first error, but it is probably the fact that it configures everything through autogen.sh and not ./configure.
...
I believe that autogen.sh mainly locates and executes the auto-tools to generate a ./configure saving you the trouble. I'd be surprised if something (e.g., yaourt which I've never used) were not executing it as a phase of the build process. But it doesn't matter all that much at this point. Glad to see that you got it going. Nice work!