{"action":"created","issue":{"url":"https://api.github.com/repos/meetecho/janus-gateway/issues/290","labels_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/290/labels{/name}","comments_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/290/comments","events_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/290/events","html_url":"https://github.com/meetecho/janus-gateway/issues/290","id":96568074,"number":290,"title":"autogen.sh must be run twice.","user":{"login":"yan-foto","id":1678441,"avatar_url":"https://avatars.githubusercontent.com/u/1678441?v=3","gravatar_id":"","url":"https://api.github.com/users/yan-foto","html_url":"https://github.com/yan-foto","followers_url":"https://api.github.com/users/yan-foto/followers","following_url":"https://api.github.com/users/yan-foto/following{/other_user}","gists_url":"https://api.github.com/users/yan-foto/gists{/gist_id}","starred_url":"https://api.github.com/users/yan-foto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan-foto/subscriptions","organizations_url":"https://api.github.com/users/yan-foto/orgs","repos_url":"https://api.github.com/users/yan-foto/repos","events_url":"https://api.github.com/users/yan-foto/events{/privacy}","received_events_url":"https://api.github.com/users/yan-foto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-22T13:29:00Z","updated_at":"2015-07-22T14:43:42Z","closed_at":null,"body":"For some reason the first run of `autogen.sh` does not copy `ltmain.sh` and exits with the following error message:\r\n\r\n> required file './ltmain.sh' not found\r\n\r\nAfter the first failing attempt, running `libtoolize` or `autogen.sh` copies the missing file. I have found similar issues in two different repositories ([here](https://github.com/akheron/jansson/issues/182) and [here](https://github.com/google/protobuf/issues/149)). According the the discussion of the former issue, I found out that adding `AC_CONFIG_AUX_DIR([.])` to `configure.ac` solves the problem. However, my lack of knowledge regarding `autoconf` doesn't let me know if this is a good idea or not! \r\n\r\n**UPDATE**\r\n\r\nAdding `AC_CONFIG_AUX_DIR([.])` might solve the `autogen.sh` problem but is causes `./configure` to fail with the following error:\r\n\r\n> configure: error: cannot run /bin/bash /config.sub\r\n\r\nSo I suppose running `autogen.sh` twice is still the better solution!\r\n\r\n---\r\n\r\nThe complete log (for `auotgen.sh`) is as follows:\r\n\r\n```\r\nautoreconf: Entering directory `.'\r\nautoreconf: configure.ac: not using Gettext\r\nautoreconf: running: aclocal --force -I m4\r\nautoreconf: configure.ac: tracing\r\nautoreconf: running: libtoolize --copy --force\r\nlibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.\r\nlibtoolize: copying file `m4/libtool.m4'\r\nlibtoolize: copying file `m4/ltoptions.m4'\r\nlibtoolize: copying file `m4/ltsugar.m4'\r\nlibtoolize: copying file `m4/ltversion.m4'\r\nlibtoolize: copying file `m4/lt~obsolete.m4'\r\nautoreconf: running: /usr/bin/autoconf --force\r\nautoreconf: configure.ac: not using Autoheader\r\nautoreconf: running: automake --add-missing --copy --force-missing\r\nconfigure.ac:7: installing './compile'\r\nconfigure.ac:12: installing './config.guess'\r\nconfigure.ac:12: installing './config.sub'\r\nconfigure.ac:4: installing './install-sh'\r\nconfigure.ac:12: error: required file './ltmain.sh' not found\r\nconfigure.ac:4: installing './missing'\r\nMakefile.am: installing './depcomp'\r\nautoreconf: automake failed with exit status: 1\r\n```\r\n---\r\n\r\nI am running Ubuntu 14.04 64 bit."},"comment":{"url":"https://api.github.com/repos/meetecho/janus-gateway/issues/comments/123745603","html_url":"https://github.com/meetecho/janus-gateway/issues/290#issuecomment-123745603","issue_url":"https://api.github.com/repos/meetecho/janus-gateway/issues/290","id":123745603,"user":{"login":"yan-foto","id":1678441,"avatar_url":"https://avatars.githubusercontent.com/u/1678441?v=3","gravatar_id":"","url":"https://api.github.com/users/yan-foto","html_url":"https://github.com/yan-foto","followers_url":"https://api.github.com/users/yan-foto/followers","following_url":"https://api.github.com/users/yan-foto/following{/other_user}","gists_url":"https://api.github.com/users/yan-foto/gists{/gist_id}","starred_url":"https://api.github.com/users/yan-foto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yan-foto/subscriptions","organizations_url":"https://api.github.com/users/yan-foto/orgs","repos_url":"https://api.github.com/users/yan-foto/repos","events_url":"https://api.github.com/users/yan-foto/events{/privacy}","received_events_url":"https://api.github.com/users/yan-foto/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T14:43:42Z","updated_at":"2015-07-22T14:43:42Z","body":"Those two external issued are filed by other people, so I thought there is something to be configured to get it working correctly. If the problem cannot be reproduced, you can just close the issue :dancer: \r\n\r\nIf I happen to find out the root of the problem, I'm going to reopen this issue :-)"}}