I was compiling fann library under opencl, got stuck on this.

$ ./configure

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 fixed it by installing

sudo apt-get install automake autoconf libtool

and then

autoreconf -i

Thats it, it worked!