autotools: allow builds outside source tree (thanks to Joegen Baclor for the patch via github pull request)

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10108 ddefafc4-47db-0310-ae44-fa13212b10f2