The autotools support from Eclipse does not work in Gentoo due to the way it calls external tools. It executes for example `sh autoconf`. By doing this, the $0 variable within the ac-wrapper.sh script is not set to /usr/bin/autoconf, as expected, but simply reads "autoconf". The script is not able to handle this. Reproducible: Always Steps to Reproduce: 1. Use Eclipse CDT with Eclipse Linux Tools 2. Create a new project from the Hello "World C++ Autotools Project" template 3. Try to build it. Actual Results: Invoking autoconf in /home/lars/workspace/testAutotools sh autoconf ac-wrapper: Unable to locate any usuable version of autoconf. I tried these versions: 2.99:2.5 2.98:2.5 2.97:2.5 2.96:2.5 2.95:2.5 2.94:2.5 2.93:2.5 2.92:2.5 2.91:2.5 2.90:2.5 2.89:2.5 2.88:2.5 2.87:2.5 2.86:2.5 2.85:2.5 2.84:2.5 2.83:2.5 2.82:2.5 2.81:2.5 2.80:2.5 2.79:2.5 2.78:2.5 2.77:2.5 2.76:2.5 2.75:2.5 2.74:2.5 2.73:2.5 2.72:2.5 2.71:2.5 2.70:2.5 2.69:2.5 2.68:2.5 2.67:2.5 2.66:2.5 2.65:2.5 2.64:2.5 2.63:2.5 2.62:2.5 2.61:2.5 2.60:2.5 2.59:2.5 2.13:2.1 With a base name of 'autoconf'.
Created attachment 288447 [details, diff] Patch for ac-wrapper.sh
should be all set now in the tree; thanks for the report! Commit message: Optimize version lookup a bit, and handle the case where $0 is not a full path http://sources.gentoo.org/sys-devel/autoconf-wrapper/autoconf-wrapper-12.ebuild?rev=1.1 http://sources.gentoo.org/sys-devel/autoconf-wrapper/files/ac-wrapper-12.sh?rev=1.1
should be all set now in the tree; thanks for the report! Commit message: Optimize version lookup a bit, and handle the case where $0 is not a full path http://sources.gentoo.org/sys-devel/automake-wrapper/automake-wrapper-6.ebuild?rev=1.1 http://sources.gentoo.org/sys-devel/automake-wrapper/files/am-wrapper-6.sh?rev=1.1