autogen.sh is producing wrong path to aclocal: autogen.sh[83]: /bin/../share/aclocal: not found/libtool.m4 not found (try setting the LIBTOOL_M4 environment variable) I have checked autogen.sh:below line determine location of libtoolize :libtoolize="`./build/PrintPath glibtoolize libtoolize glibtoolize1 libtoolize15 libtoolize14`" which in my system is /bin/libtoolize and it is symlinked to /opt/freeware/bin/libtoolize
then below line set ltpath to bin rather than /opt/freeware/binltpath="`dirname $libtoolize`" and below line:if [ -d "$ltpath/../share/aclocal/." ]; then ltm4=`cd "$ltpath/../share/aclocal" && pwd` throws below error:autogen.sh[83]: /bin/../share/aclocal: not found/libtool.m4 not found (try setting the LIBTOOL_M4 environment variable) how can I fix this ?Do I need to change the autogen or I can pass a variable to autogen.sh ? Thanks