I was trying to compile the FANN library with OpenCL, in my mac running yosemite, i get this error. i installed Xcode, command line tools still configure fails at libtool command

 

config.status: executing libtool commands
sed: ./ltmain.sh: No such file or directory
sed: ./ltmain.sh: No such file or directory
mv: rename libtoolT to libtool: No such file or directory
cp: libtoolT: No such file or directory
chmod: libtool: No such file or directory

 

I easily fixed this by running all these commands from this stack overflow solution

 

1. Install mac ports from http://www.macports.org/
 2. sudo port install automake
 3. sudo port install autoconf
 4. sudo port install libtool
 5. sudo port install intltoo 
 6. sudo port install pkgconfig
 7. sudo port install cmake
 8. sudo glibtoolize --ltdl --force --copy
 9. sudo autoreconf

 sudo ./configure
 sudo make
 sudo make install